aboutsummaryrefslogtreecommitdiffstats
path: root/lisp/replace.el
Commit message (Collapse)AuthorAgeFilesLines
* (query-replace-lazy-highlight): Doc fix.Richard M. Stallman2005-01-041-2/+2
| | | | | | | These were installed in the previous revision: (replace-dehighlight): Use lazy-highlight-cleanup. (query-replace-highlight, query-replace-lazy-highlight) (query-replace): Definitions moved up.
* (occur-1): If the output buffer is also an input, don't kill it, rename it.Richard M. Stallman2005-01-011-36/+36
|
* (occur-accumulate-lines, occur-engine):Juri Linkov2004-12-171-4/+4
| | | | Make forcing deferred font-lock fontification jit-specific.
* (occur-accumulate-lines, occur-engine):Juri Linkov2004-12-161-30/+36
| | | | | | | | | | Fontify unfontified matching lines in the source buffer before copying them. (occur-engine): Don't put mouse-face on context lines. (occur-next-error): Set point to line beginning/end before searching for prev/next property to skip multiple matches on a line (not supported by occur engine). Remove redundant prefix-numeric-value.
* (match): New face.Juri Linkov2004-12-161-1/+15
| | | | (list-matching-lines-face): Change default from `bold' to `match'.
* (perform-replace): Add isearch-case-fold-search.Juri Linkov2004-12-151-36/+48
| | | | | | | | | | | | | | | Use delimited-flag for isearch-regexp. Reset isearch-lazy-highlight-last-string to force lazy highlighting when called from isearch mode. (query-replace-highlight): Revert defcustom type to boolean. (query-replace-lazy-highlight): New defcustom. (query-replace): New face. (perform-replace, replace-highlight, replace-dehighlight): Test query-replace-lazy-highlight instead of special value `isearch' of query-replace-highlight. (replace-dehighlight): Don't call isearch-dehighlight. (replace-highlight): Don't call isearch-highlight. Use face `query-replace' unconditionally.
* * replace.el (query-replace-highlight): Add new value `isearch'Juri Linkov2004-12-121-15/+39
| | | | | | | that allows query replacement to use isearch highlighting. Change type from `boolean' to `choice'. Doc fix. (replace-highlight, replace-dehighlight, perform-replace): Use isearch highlighting if query-replace-highlight eq `isearch'.
* (replace-match-maybe-edit): Doc fix.Juri Linkov2004-12-121-2/+2
| | | | | | | (perform-replace): Don't call `replace-highlight' when automatic replacement is requested in literal mode, since it is intended only to highlight words during entering a new replacement string for \? in non-literal mode.
* (occur-1): Specify t for KEEP-PROPS to occur-engine.Richard M. Stallman2004-12-031-7/+10
| | | | | | (occur-engine): Use `face' prop rather than `font-lock-face' when specifying use of `match-face'. (occur-accumulate-lines): Change arg from NO-PROPS to KEEP-PROPS.
* simple.el (next-error-buffer-p): allow for inclusive andTeodor Zlatanov2004-11-291-11/+17
| | | | | | | | | | | exclusive tests for finding a buffer (next-error-find-buffer): pass the exclusive and inclusive tests to next-error-buffer-p replace.el (occur-next-error): switch to the Occur buffer when appropriate, and use the exclusive filter to next-error-find-buffer to do it. Use the absolute value of the motion amount.
* (query-replace-read-to, query-replace-read-from):Richard M. Stallman2004-11-201-2/+2
| | | | Specify t for KEEP-ALL in read-from-minibuffer.
* (perform-replace): Use `query-replace-descr'.Juri Linkov2004-09-081-2/+4
| | | | (occur-mode-map): Rename `next-error-follow-mode' to `next-error-follow-minor-mode'.
* (occur-mode-map): Bind toggle-next-error-follow-mode.Eli Zaretskii2004-09-041-0/+1
|
* (query-replace-read-from): UseDavid Kastrup2004-08-011-16/+25
| | | | | | | `query-replace-compile-replacement'. (query-replace-compile-replacement): New function. (query-replace-read-to): Use `query-replace-compile-replacement' for repeating the last command.
* (occur-next-error): Call set-window-point.Richard M. Stallman2004-07-241-2/+6
| | | | (occur-engine): Handle negative NLINES.
* (occur-read-primary-args): Pass default to read-from-minibuffer.Richard M. Stallman2004-07-171-1/+2
|
* (query-replace-regexp-eval): Fix last change.Stefan Monnier2004-07-061-1/+2
|
* (query-replace-descr): New fun.Stefan Monnier2004-07-061-28/+48
| | | | | | | | | | (query-replace-read-from, query-replace-read-args): Default to the last from&to. (query-replace-read-to): Quote the `from' string when displaying it. (query-replace-regexp-eval): Immediately check read-only status. Use query-replace-read-from to get the \n checking. Quote the `from' string when displaying it. (map-query-replace-regexp, occur-read-primary-args): Quote the `from' string when displaying it.
* (query-replace-read-from, query-replace-read-to): New funs extractedStefan Monnier2004-07-051-22/+31
| | | | | from query-replace-read-args. (query-replace-read-args): Use them.
* (query-replace-interactive, query-replace-read-args):Stefan Monnier2004-07-051-30/+17
| | | | | | Remove the `initial' special value. (query-replace-regexp-eval, map-query-replace-regexp): Simplify. (occur-engine): Remove unused var `matchend'.
* (query-replace-read-args): Swallow space after 'foo,Juri Linkov2004-07-031-3/+4
| | | | | not after (quote foo). Match space only immediately after symbol, not anywhere in the whole string.
* (query-replace-read-args): Swallow space after symbols, not afterRichard M. Stallman2004-07-021-8/+12
| | | | closeparens. But avoid error if string ends there.
* (query-replace-interactive): Change type from booleanJuri Linkov2004-07-011-11/+20
| | | | | | to choice. Add value `initial'. (query-replace-read-args): Handle value `initial' of query-replace-interactive.
* (query-replace-read-args): Swallow a space afterJuri Linkov2004-06-281-15/+10
| | | | everything except )]" which in most cases means after a symbol.
* (perform-replace): Highlight the match even inDavid Kastrup2004-06-261-1/+5
| | | | non-query mode if there is potential replace string editing.
* (query-replace-read-args): Swallow space after \,SYMBOL.Richard M. Stallman2004-06-241-14/+23
|
* (query-replace-read-args): Implement `\,' and `\#'David Kastrup2004-06-241-101/+207
| | | | | | | | | | | | | | | | replacements here. (query-replace-regexp): Doc string explaining this and the new `\?' replacement. Remove `\,' and `\#' implementation here, as it is better placed in `query-replace-read-args'. (replace-regexp): Explain `\,', `\#' and `\?'. (replace-match-data): New function for thorough reuse/destruction of old match-data. (replace-match-maybe-edit): Function for implementing `\?' editing. (perform-replace): Fix maintaining of the match stack including already matched regions, implement `\?', fix various problems with regions while editing and other stuff. (replace-highlight): Simplified.
* (query-replace-read-args): Only warn about use of \nDavid Kastrup2004-06-171-21/+83
| | | | | | | | | | and \t when we are doing a regexp replacement and the actual escaped character is n or t. (query-replace-regexp): Add \, and \# interpretation to interactive call and document it. (query-replace-regexp-eval, replace-match-string-symbols): add \# as shortkey for replace-count. (replace-quote): New function for doubling backslashes.
* (perform-replace): Use `limit' to terminate the while-loop explicitly.Juri Linkov2004-06-101-2/+5
|
* (query-replace-interactive): Convert defvar into defcustom.Luc Teirlinck2004-05-301-2/+4
|
* From: Teodor Zlatanov <[email protected]>Kim F. Storm2004-04-211-1/+19
| | | | (occur-next-error, occur-1): Hook into the next-error framework.
* * replace.el (occur-engine): Distinguish between one and severalJohn Paul Wallington2004-04-111-2/+3
| | | | matches in the matches per buffer heading.
* (occur-engine): Change message for count of matches.Richard M. Stallman2004-03-121-1/+1
|
* (perform-replace): Allow 'literal argument inDavid Kastrup2004-02-021-2/+2
| | | | | regexp-flag to indicate literal replacement. (query-replace-regexp-eval): Use it.
* Add arch taglinesMiles Bader2003-09-011-0/+1
|
* (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
|