aboutsummaryrefslogtreecommitdiffstats
path: root/lisp/replace.el
Commit message (Collapse)AuthorAgeFilesLines
...
* (occur-1): Avoid invalid message format string.Andreas Schwab2002-06-251-16/+8
|
* (occur-mode): Don't set `font-lock-defaults'.Colin Walters2002-06-121-2/+0
|
* (occur-mode): Do set `font-lock-defaults',Colin Walters2002-06-091-1/+2
| | | | and be sure to set `font-lock-core-only'.
* (occur-mode): Don't set up categories.Colin Walters2002-06-081-13/+7
| | | | | | (occur-1): Pass `list-matching-lines-face' and `list-matching-lines-buffer-name-face'. (occur-engine): Use `font-lock-face' instead of categories.
* (perform-replace): Document return value. Use `pop'.Colin Walters2002-05-261-4/+6
|
* (occur-engine): Include all text properties except mouse-face on theColin Walters2002-05-241-4/+5
| | | | newline at the end of occurences.
* (occur-engine): Increment globalcount all at once after searching a buffer.Colin Walters2002-05-211-33/+16
| | | | | | | | | | (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-read-primary-args): Handle a bare 'C-u' correctly.Colin Walters2002-05-151-1/+2
|
* (occur-1): New optional argument `buf-name'.Colin Walters2002-05-131-11/+20
| | | | | | | | | (occur-revert-function): Use it. (occur-1): Handle plurals. (occur-engine): If there are no more matches, then finish searching the current buffer.
* Change all post-21.1 :version attributes to 21.4.Eli Zaretskii2002-05-121-1/+1
|
* (occur-unfontify-region-function): Delete.Colin Walters2002-05-081-9/+4
| | | | | | | (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-mode-map): Bind "q" to `delete-window'.Colin Walters2002-05-021-10/+34
| | | | | | | | (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.
* Follow coding conventions.Pavel Janík2002-05-021-0/+2
|
* (occur-accumulate-lines): Avoid incf and decf.Richard M. Stallman2002-04-281-151/+142
| | | | | | | | | | | | | | | | (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.
* (occur-engine): Pad digits to the right.Colin Walters2002-04-251-1/+1
|
* (occur-engine): Make nlines argument actually mean number of contextColin Walters2002-04-251-4/+4
| | | | lines. Handle it.
* (multi-occur-by-filename-regexp): Doc fix.Colin Walters2002-04-251-3/+2
| | | | (occur-engine): Go to `point-min'.
* (occur-accumulate-lines): Add optional argument `no-props'. Handle it.Colin Walters2002-04-241-4/+6
| | | | (occur-engine): Use it.
* (toplevel): Require `cl' while compiling.Colin Walters2002-04-231-260/+291
| | | | | | | | | | | | | | | | | | | | | | | (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.
* (query-replace-read-args): New optional arg NOERROR.Richard M. Stallman2002-03-251-3/+6
| | | | (perform-replace): Use save-window-excursion around recursive edit.
* (query-replace-regexp-eval): Doc fix.Andreas Schwab2002-02-181-3/+3
|
* *** empty log message ***Richard M. Stallman2002-01-251-1/+1
|
* (occur-mode-goto-occurrence-other-window): New command.Richard M. Stallman2002-01-081-0/+8
| | | | (occur-mode-map): Bind `o' to that.
* (query-replace-read-args): Immediate error if read-only.Richard M. Stallman2001-12-301-0/+1
|
* (occur-mode-display-occurrence): New function.Richard M. Stallman2001-12-241-0/+14
| | | | (occur-mode-map): Bind C-o to it.
* (query-replace-read-args): Display message if FROM contains `\n' or `\t'.Richard M. Stallman2001-12-021-1/+11
|
* (occur-mode): Undo 2001-5-20 change.Richard M. Stallman2001-11-201-2/+9
|
* (query-replace-skip-read-only): New variable.Richard M. Stallman2001-11-111-150/+161
| | | | | (perform-replace): If that variable is non-nil, ignore matches that have a read-only property.
* (perform-replace): Move START and END parametersGerd Moellmann2001-10-241-8/+8
| | | | to the end of the argument list and make them optional.
* (query-replace-regexp-eval): Return args from `interactive' form inMiles Bader2001-08-281-1/+1
| | | | correct order.
* (occur): Bind inhibit-read-only to t.Gerd Moellmann2001-08-161-0/+1
|
* (perform-replace): Doc fix.Gerd Moellmann2001-08-031-2/+6
|
* Some fixes to follow coding conventions.Pavel Janík2001-07-151-1/+1
|
* (occur): Add help-echo to mouse-highlighted text.Eli Zaretskii2001-06-171-3/+4
|
* (keep-lines-read-args): Return just a regexp.Richard M. Stallman2001-06-141-26/+33
| | | | | | Provide nil for the region args. (keep-lines, flush-lines, how-many): Calculate the defaults for the region here, when args are nil.
* (case-replace, query-replace-from-history-variable)Eli Zaretskii2001-06-141-8/+9
| | | | | (query-replace-to-history-variable, keep-lines-read-args) (occur-revert-function, query-replace-help): Dox fix.
* (keep-lines-read-args): Use `copy-marker'.Stefan Monnier2001-05-201-37/+30
| | | | | | (how-many): Save excursion properly. (occur-mode): Use define-derived-mode. (perform-replace): Use with-current-buffer.
* (query-replace-regexp-eval): Doc fix.Gerd Moellmann2001-05-021-4/+4
|
* (occur): Stop at end of buffer.Stefan Monnier2001-02-131-1/+1
|
* (perform-replace): Don't use an empty match adjacentGerd Moellmann2000-12-121-2/+7
| | | | | to a non-empty match when computing the next match before the replacement is performed.
* (occur): Make line-number-width 1 smaller for theGerd Moellmann2000-12-061-8/+8
| | | | colon following the line number.
* (keep-lines-read-args): New function.Gerd Moellmann2000-09-301-30/+80
| | | | | | (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.
* (occur): Set tab-width in the *Occur* buffer to theGerd Moellmann2000-08-021-38/+49
| | | | | | 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.
* (query-replace-map): Bind `e' like `E'.Gerd Moellmann2000-06-281-0/+1
|
* (perform-replace): Undo change of 2000-04-04.Gerd Moellmann2000-06-261-10/+14
| | | | | Instead, move backward 1 character At the end of the loop when necessary.
* Doc and error message fixes.Dave Love2000-05-211-27/+29
| | | | (replace-highlight): Use facep, not internal-find-face.
* (query-replace-map): Add binding for `E'.Gerd Moellmann2000-05-031-1/+13
| | | | | (query-replace-help): Extend help text. (perform-replace): Allow editing the replacement string.
* (perform-replace): Add parameters START and END. UseGerd Moellmann2000-04-251-28/+46
| | | | | | | | | | 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.
* (perform-replace): Don't move forward one charGerd Moellmann2000-04-041-4/+13
| | | | | | 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.
* (query-replace): Rename last arg to DELIMITED.Richard M. Stallman2000-01-221-8/+9
| | | | | (map-query-replace-regexp, query-replace-regexp-eval): Likewise. (query-replace-regexp): Likewise.