summaryrefslogtreecommitdiff
path: root/lisp/replace.el
Commit message (Collapse)AuthorAgeFilesLines
* (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
|
* (query-replace-map): Bind f1 and help.Karl Heuer1995-06-071-0/+2
|
* (occur): Provide 5 cols for line number.Richard M. Stallman1995-04-091-2/+2
|
* (occur): Copy default-directory to *Occur* buffer.Richard M. Stallman1995-03-211-0/+2
|
* (perform-replace): Don't log the repetitive prompts.Karl Heuer1995-01-271-1/+4
|
* Don't bind `return'.Richard M. Stallman1994-12-271-2/+1
|
* (occur-mode-map): Bind C-m and `return' to occur-mode-goto-occurrence.Richard M. Stallman1994-12-271-5/+7
| | | | (occur-mode): Doc fix.
* (perform-replace): Report number of replacements when done.Richard M. Stallman1994-12-141-11/+10
| | | | | (query-replace, query-replace-regexp, replace-string) (map-query-replace-regexp. replace-regexp): No message here.
* (occur): Escape newlines when printing regexp.Richard M. Stallman1994-12-131-1/+2
|
* (replace-string, query-replace): Doc fixes.Richard M. Stallman1994-12-041-0/+6
|
* (occur): Put number of matches in the header line.Richard M. Stallman1994-11-241-1/+6
|
* (query-replace-map): Define \e and escape as exit-prefix.Richard M. Stallman1994-11-231-1/+7
| | | | | (perform-replace): When exiting and rereading, set this-command to mode-exit.
* (query-replace-map): Bind Y and N like y and n.Richard M. Stallman1994-11-141-0/+2
|
* (perform-replace): Set help-mode in *Help* buffer.Karl Heuer1994-11-091-1/+4
|
* (query-replace-interactive): New user option.Richard M. Stallman1994-09-201-11/+37
| | | | | | | | (query-replace-read-args): Obey that option--fetch from search-ring or regexp-search-ring. New arg regexp-flag. (query-replace, query-replace-regexp, replace-string) (replace-regexp): Pass new arg to query-replace-read-args. (map-query-replace-regexp): Obey query-replace-interactive.