summaryrefslogtreecommitdiff
path: root/lisp/replace.el
Commit message (Collapse)AuthorAgeFilesLines
* (query-replace-read-args): Use save-excursion.Richard M. Stallman2003-03-051-8/+15
| | | | (map-query-replace-regexp): Use prefix-numeric-value.
* (query-replace-read-args): Return just 3 values.Richard M. Stallman2003-02-241-17/+51
| | | | | | | (query-replace, query-replace-regexp) (query-replace-regexp-eval, map-query-replace-regexp) (replace-string, replace-regexp): Read the start and end args separately so that the expressions are recorded in command-history.
* Trailing whitespace deleted.Juanma Barranquero2003-02-041-1/+1
|
* (occur-engine): Set buffer-file-coding-system ofKenichi Handa2002-11-131-1/+12
| | | | | OUT-BUF to that of one of BUFFERS if they locally bind that variable.
* (query-replace, query-replace-regexp): Doc fixes.Richard M. Stallman2002-11-061-7/+14
|
* (occur-find-match): New function.Juanma Barranquero2002-09-241-21/+13
| | | | (occur-next, occur-prev): Use it.
* (occur-engine-add-prefix): Use 7 spaces.Richard M. Stallman2002-09-181-2/+3
| | | | (occur-engine): Use 7 digits to align tabs in the data.
* (occur-mode): Add font-lock-defontify to change-major-mode-hook.Richard M. Stallman2002-09-101-0/+1
|
* (multi-occur): Made "ido-aware":Kim F. Storm2002-09-021-6/+11
| | | | | | | Changed prompt to use C-j instead of RET to end. Set ido-ignore-item-temp-list to the selected buffers so far, so they are automatically excluded from the list of choices. Use add-to-list instead of push.
* (occur-mode): Add interactive declaration.Juanma Barranquero2002-08-301-0/+1
|
* (occur-mode-hook): New hook.Juanma Barranquero2002-08-291-3/+9
| | | | | (occur-mode): Use it. (occur-hook): Set default to nil.
* (occur-hook): Renamed from `occur-mode-hook'.Juanma Barranquero2002-08-281-5/+5
| | | | | | (occur-mode): Remove call to `occur-mode-hook'. (occur-rename-buffer): Fix reference to `occur-mode-hook' in docstring. (occur-1): Add call to `occur-hook'.
* (occur-rename-buffer): New command.Sam Steingold2002-07-251-9/+28
| | | | | (occur-mode-map): Bind "r" to it. Added keybindings for `kill-this-buffer', `clone-buffer' and `quit-window'.
* (keep-lines, flush-lines): Interactively reportRichard M. Stallman2002-07-181-2/+6
| | | | read-only error before reading regexp argument.
* (flush-lines, keep-lines): Convert REND to a marker.Richard M. Stallman2002-07-121-2/+6
|
* (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.