summaryrefslogtreecommitdiff
path: root/lisp/replace.el
Commit message (Collapse)AuthorAgeFilesLines
* (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.
* (perform-replace): When matching lookahead, use markers rather thanPaul Eggert1997-06-251-2/+2
| | | | integers, since a replacement may invalidate integers.
* (perform-replace): When matching regexps, if the next match isPaul Eggert1997-06-241-29/+40
| | | | | | adjacent to this one, record the next match before replacing this one. This fixes a bug where (replace-regexp "\\ba " "c") replaced "a a a " with "ca c" instead of "ccc".
* (perform-replace): Restore match data after read-event.Richard M. Stallman1997-05-231-0/+3
|
* Use defgroup and defcustom.Richard M. Stallman1997-05-051-6/+12
|
* (occur-mode): Add a mode-class property.Richard M. Stallman1997-05-051-3/+5
| | | | (occur): Doc fix.
* (occur): If regexp has uppercase in it, match it case-sensitively.Richard M. Stallman1997-05-041-1/+6
|
* (replace-string): Doc fix.Richard M. Stallman1997-03-221-1/+3
|
* (occur): Pay attention to multibyte characters.Karl Heuer1997-02-201-1/+1
|
* (occur-mode-map): Bind g to revert-buffer.Richard M. Stallman1997-01-131-2/+17
| | | | | | | (occur-mode): Locally bind revert-buffer-function. (occur-command-arguments): New variable. (occur-revert-function): New function. (occur): Set occur-command-arguments.
* (occur): Minor cleanups.Erik Naggum1997-01-031-3/+2
|
* (list-matching-lines-face): New variable.Richard M. Stallman1997-01-031-3/+24
| | | | (occur): Highlight the actual matching characters.
* (perform-replace): Request integers from match-data,Richard M. Stallman1996-12-271-6/+1
| | | | instead of asking for markers and converting them.
* (perform-replace): Undo previous change.Richard M. Stallman1996-12-181-3/+17
| | | | Instead, use the new match-data features to avoid consing.
* (perform-replace): Delete the code that checkedRichard M. Stallman1996-12-181-16/+3
| | | | | whether the regexp could match again right after this match. It made the loop too slow.
* Change some defconsts to defvars.Richard M. Stallman1996-12-161-1/+1
|
* (perform-replace): Obey minibuffer-auto-raise.Richard M. Stallman1996-12-071-0/+2
|
* (perform-replace): Increment replace-countRichard M. Stallman1996-09-041-5/+11
| | | | in the places where we do the replacement.
* (occur): Avoid "1 lines" in echo area.Richard M. Stallman1996-06-041-5/+7
|
* (occur): Fix up interactive code.Richard M. Stallman1996-04-171-14/+18
| | | | Strip text properties from regexp.
* (occur): If no matches, just display in echo area.Richard M. Stallman1996-03-171-90/+96
|
* Update FSF's address.Erik Naggum1996-01-141-2/+3
|
* (occur): Indent better for matches that contain newlines.Richard M. Stallman1995-09-241-3/+8
|