summaryrefslogtreecommitdiff
path: root/lisp/replace.el
Commit message (Collapse)AuthorAgeFilesLines
* (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.
* (query-replace-regexp-eval)Richard M. Stallman1999-08-031-13/+113
| | | | | | | (replace-eval-replacement, replace-loop-through-replacements) (replace-match-string-symbols): New functions. (perform-replace): Allow REPLACEMENTS to be (FUNCTION . DATA). Use replace-loop-through-replacements.
* (perform-replace): Turn off case-fold-searchKarl Heuer1999-07-211-0/+3
| | | | if FROM-STRING argument has uppercase in it.
* (keep-lines, flush-lines, how-many):Richard M. Stallman1998-10-141-13/+29
| | | | Don't ignore case if arg has upper case letters.
* (perform-replace): Position point properlyKarl Heuer1998-10-061-4/+7
| | | | before and after the recursive edit of C-r.
* Whitespace change.Richard M. Stallman1998-08-101-3/+3
|
* (occur): Set buffer-read-only.Karl Heuer1998-06-201-1/+2
|
* (esc-map): Bind C-M-% to query-replace-regexp.Karl Heuer1998-06-041-0/+1
|
* *** empty log message ***Dan Nicolaescu1998-04-201-2/+4
|
* (perform-replace): Before recursive edit,Richard M. Stallman1998-03-261-3/+5
| | | | get the match data as markers, and set real-match-data.
* (perform-replace): store-match-data => set-match-data.Richard M. Stallman1998-03-141-6/+6
|
* (occur): Apply default by hand after read-from-minibuffer.Richard M. Stallman1998-02-081-3/+4
| | | | | | No need to clear text props from the result. (query-replace-read-args, map-query-replace-regexp): Offer the FROM arg as the default for the TO arg.
* (query-replace-from-history-variable): New variable.Richard M. Stallman1998-01-301-2/+19
| | | | | (query-replace-to-history-variable): New variable. (query-replace-read-args): Use them.
* (occur): If the matching line has no final newline,Karl Heuer1998-01-181-4/+17
| | | | insert one anyway. Compensate for that when inserting line nums.
* (occur): Pass default to read-from-minibuffer so thatRichard M. Stallman1998-01-031-6/+4
| | | | M-n can insert default value into minibuffer.
* (perform-replace): In Transient Mark mode, ifKarl Heuer1997-11-111-1/+27
| | | | | region is active, only search the region. (query-replace, etc.): Doc fixes.
* (query-replace-highlight): Change default to t.Karl Heuer1997-11-111-1/+1
|
* (query-replace-read-args): Locally bindKenichi Handa1997-08-261-10/+10
| | | | | | | minibuffer-inherit-input-method to t to make a minibuffer inherit the current input method. (map-query-replace-regexp, keep-lines, flush-lines): Likewise. (how-many, occur): Likewise.
* (occur): Local variable line-start redundant.Richard M. Stallman1997-07-251-28/+70
| | | | `occur-marker' extends to the end of the line rather than one char before end.
* (occur): Use text property `occur' to store theRichard M. Stallman1997-07-231-51/+81
| | | | | | | | | | | | marker for the occurrence in the source buffer. This replaces the list `occur-pos-list', and fixes the bug for multi-line matches. Set up `occur-point' text property for occur-next and occur-prev. (occur): occur-num-matches stores the number of matches found. (occur-mode-find-occurrence): Use `occur' text property to find marker for locus of the occurrence. (occur-next, occur-prev): New commands. (occur): Fixed bug preventing line number being displayed if line number is less than the number of lines of context.