| Commit message (Collapse) | Author | Age | Files | Lines |
... | |
| |
|
| |
|
|
|
|
| |
and be sure to set `font-lock-core-only'.
|
|
|
|
|
|
| |
(occur-1): Pass `list-matching-lines-face' and
`list-matching-lines-buffer-name-face'.
(occur-engine): Use `font-lock-face' instead of categories.
|
| |
|
|
|
|
| |
newline at the end of occurences.
|
|
|
|
|
|
|
|
|
|
| |
(occur-mode-map): Don't escape plain "o".
(occur-mode-hook): New variable.
(occur-fontify-region-function): Deleted.
(occur-mode): Don't use it. Set up `font-lock-category-alist' instead.
(occur-fontify-on-property): Deleted.
(occur-engine): Use categories from `font-lock-category-alist'.
|
| |
|
|
|
|
|
|
|
|
|
| |
(occur-revert-function): Use it.
(occur-1): Handle plurals.
(occur-engine): If there are no more matches, then finish
searching the current buffer.
|
| |
|
|
|
|
|
|
|
| |
(occur-mode): Don't use it.
(occur-engine): Respect `keep-props'.
(occur-accumulate-lines): If we're moving forward, decrement; don't
increment, and vice versa.
|
|
|
|
|
|
|
|
| |
(occur-1): If one of the buffers we're searching is the *Occur* buffer
itself, handle it by creating a temporary buffer. If any of the
buffers being searched are killed, note that in the search result
message. Also, set local variables before we possibly kill the
buffer.
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
(occur-engine-add-prefix): New function.
(occur-engine): Avoid using macrolet, incf and decf.
Use occur-engine-add-prefix instead.
Rename `l' to `lines' and `c' to `matches'.
(occur-engine, occur-mode-mouse-goto)
(occur-mode-find-occurrence, occur-mode-goto-occurrence)
(occur-mode-goto-occurrence-other-window)
(occur-mode-display-occurrence): A position is just a marker,
not a list.
(occur-revert-arguments):
Renamed from occur-revert-properties. All uses changed.
|
| |
|
|
|
|
| |
lines. Handle it.
|
|
|
|
| |
(occur-engine): Go to `point-min'.
|
|
|
|
| |
(occur-engine): Use it.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
(occur-buffer, occur-nlines): Delete.
(occur-revert-properties): Rename to `occur-revert-properties'.
(occur-mode): Handle it. Set up font lock.
(occur-revert-function): Simply apply `occur-1'.
(occur-mode-find-occurence, occur-mode-mouse-goto)
(occur-mode-goto-occurrence-other-window)
(occur-mode-display-occurrence): Handle buffer property.
(list-matching-lines-face): Use defcustom.
(list-matching-lines-buffer-name-face): New variable.
(occur-accumulate-lines): Renamed from `ibuffer-accumulate-lines',
in ibuffer.el.
(occur-read-primary-args): Move out of `occur'.
(occur): Delete. Now simply call `occur-1'.
(multi-occur, multi-occur-by-filename-regexp): New functions.
(occur-1): New function.
(occur-engine): Renamed from `ibuffer-occur-engine' to replace the
previous implementation of `occur'; taken from ibuf-ext.el.
(occur-fontify-on-property): New function.
(occur-fontify-region-function, occur-unfontify-region-function):
New functions.
|
|
|
|
| |
(perform-replace): Use save-window-excursion around recursive edit.
|
| |
|
| |
|
|
|
|
| |
(occur-mode-map): Bind `o' to that.
|
| |
|
|
|
|
| |
(occur-mode-map): Bind C-o to it.
|
| |
|
| |
|
|
|
|
|
| |
(perform-replace): If that variable is non-nil, ignore matches
that have a read-only property.
|
|
|
|
| |
to the end of the argument list and make them optional.
|
|
|
|
| |
correct order.
|
| |
|
| |
|
| |
|
| |
|
|
|
|
|
|
| |
Provide nil for the region args.
(keep-lines, flush-lines, how-many):
Calculate the defaults for the region here, when args are nil.
|
|
|
|
|
| |
(query-replace-to-history-variable, keep-lines-read-args)
(occur-revert-function, query-replace-help): Dox fix.
|
|
|
|
|
|
| |
(how-many): Save excursion properly.
(occur-mode): Use define-derived-mode.
(perform-replace): Use with-current-buffer.
|
| |
|
| |
|
|
|
|
|
| |
to a non-empty match when computing the next match before the
replacement is performed.
|
|
|
|
| |
colon following the line number.
|
|
|
|
|
|
| |
(keep-lines, flush-lines, how-many): Use keep-lines-read-args to
read arguments interactively. Add parameters RSTART and REND.
Operate on the active region in Transient Mark mode.
|
|
|
|
|
|
| |
value of tab-width in the original buffer. Choose a line number
format that's a multiple of the original buffer's tab width, so
that lines appear right.
|
| |
|
|
|
|
|
| |
Instead, move backward 1 character At the end of the loop when
necessary.
|
|
|
|
| |
(replace-highlight): Use facep, not internal-find-face.
|
|
|
|
|
| |
(query-replace-help): Extend help text.
(perform-replace): Allow editing the replacement string.
|
|
|
|
|
|
|
|
|
|
| |
them instead of the check for a region in Transient Mark mode.
(query-replace-read-args): Return two more list elements for the
start and end of the region in Transient Mark mode.
(query-replace, query-replace-regexp, query-replace-regexp-eval)
(map-query-replace-regexp, replace-string, replace-regexp): Add
optional last arguments START and END and pass them to
perform-replace.
|
|
|
|
|
|
| |
when MATCH-AGAIN is nil, and REGEXP-FLAG is t. We don't want
to do that because it leaves point 1 position after the last
replacement, after everything has been replaced.
|
|
|
|
|
| |
(map-query-replace-regexp, query-replace-regexp-eval): Likewise.
(query-replace-regexp): Likewise.
|