1
0
mirror of https://git.savannah.gnu.org/git/emacs.git synced 2024-12-04 08:47:11 +00:00
Commit Graph

232 Commits

Author SHA1 Message Date
Richard M. Stallman
e09d403394 (occur): Local variable line-start redundant.
`occur-marker' extends to the end of the line rather than one char before end.
1997-07-25 22:21:49 +00:00
Richard M. Stallman
8d15583ff5 (occur): Use text property `occur' to store the
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.
1997-07-23 02:52:57 +00:00
Paul Eggert
937ab68f83 (perform-replace): When matching lookahead, use markers rather than
integers, since a replacement may invalidate integers.
1997-06-25 05:30:02 +00:00
Paul Eggert
5632eb272c (perform-replace): When matching regexps, if the next match is
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".
1997-06-24 10:48:10 +00:00
Richard M. Stallman
f5e52cd303 (perform-replace): Restore match data after read-event. 1997-05-23 17:34:11 +00:00
Richard M. Stallman
9d325ebf0d Use defgroup and defcustom. 1997-05-05 15:00:53 +00:00
Richard M. Stallman
de3c9b09b4 (occur-mode): Add a mode-class property.
(occur): Doc fix.
1997-05-05 01:11:30 +00:00
Richard M. Stallman
9483d601ec (occur): If regexp has uppercase in it, match it case-sensitively. 1997-05-04 01:20:08 +00:00
Richard M. Stallman
87532fbe3c (replace-string): Doc fix. 1997-03-22 03:51:36 +00:00
Karl Heuer
742d416fcc (occur): Pay attention to multibyte characters. 1997-02-20 05:48:39 +00:00
Richard M. Stallman
a41284da64 (occur-mode-map): Bind g to revert-buffer.
(occur-mode): Locally bind revert-buffer-function.
(occur-command-arguments): New variable.
(occur-revert-function): New function.
(occur): Set occur-command-arguments.
1997-01-13 08:45:17 +00:00
Erik Naggum
81fa866c4a (occur): Minor cleanups. 1997-01-03 11:59:39 +00:00
Richard M. Stallman
c9daced0fa (list-matching-lines-face): New variable.
(occur): Highlight the actual matching characters.
1997-01-03 03:11:11 +00:00
Richard M. Stallman
141aa68cfc (perform-replace): Request integers from match-data,
instead of asking for markers and converting them.
1996-12-27 00:44:57 +00:00
Richard M. Stallman
ae4eb03ccb (perform-replace): Undo previous change.
Instead, use the new match-data features to avoid consing.
1996-12-18 23:36:24 +00:00
Richard M. Stallman
965fea6398 (perform-replace): Delete the code that checked
whether the regexp could match again right after this match.
It made the loop too slow.
1996-12-18 02:22:34 +00:00
Richard M. Stallman
1781e0210b Change some defconsts to defvars. 1996-12-16 01:33:54 +00:00
Richard M. Stallman
1c1dadabf3 (perform-replace): Obey minibuffer-auto-raise. 1996-12-07 21:23:37 +00:00
Richard M. Stallman
3043b0b490 (perform-replace): Increment replace-count
in the places where we do the replacement.
1996-09-04 17:13:24 +00:00
Richard M. Stallman
65b4665c1f (occur): Avoid "1 lines" in echo area. 1996-06-04 15:31:01 +00:00
Richard M. Stallman
a5dfed3e36 (occur): Fix up interactive code.
Strip text properties from regexp.
1996-04-17 17:30:51 +00:00
Richard M. Stallman
016c214fea (occur): If no matches, just display in echo area. 1996-03-17 17:58:42 +00:00
Erik Naggum
b578f267af Update FSF's address. 1996-01-14 07:34:30 +00:00
Richard M. Stallman
91c6bdc0d1 (occur): Indent better for matches that contain newlines. 1995-09-24 23:25:06 +00:00
Karl Heuer
e731045a34 (query-replace-map): Bind f1 and help. 1995-06-07 20:54:21 +00:00
Richard M. Stallman
bcccd65d3f (occur): Provide 5 cols for line number. 1995-04-09 03:07:01 +00:00
Richard M. Stallman
bdd610b25e (occur): Copy default-directory to *Occur* buffer. 1995-03-21 19:57:36 +00:00
Karl Heuer
c006b215fa (perform-replace): Don't log the repetitive prompts. 1995-01-27 19:19:23 +00:00
Richard M. Stallman
cffe0c02fb Don't bind `return'. 1994-12-27 03:45:46 +00:00
Richard M. Stallman
0081c8a112 (occur-mode-map): Bind C-m and `return' to occur-mode-goto-occurrence.
(occur-mode): Doc fix.
1994-12-27 03:41:48 +00:00
Richard M. Stallman
4d33492ad6 (perform-replace): Report number of replacements when done.
(query-replace, query-replace-regexp, replace-string)
(map-query-replace-regexp. replace-regexp): No message here.
1994-12-14 03:44:51 +00:00
Richard M. Stallman
d10ad24f45 (occur): Escape newlines when printing regexp. 1994-12-13 22:13:40 +00:00
Richard M. Stallman
9b0bf2b6bd (replace-string, query-replace): Doc fixes. 1994-12-04 12:52:52 +00:00
Richard M. Stallman
e6d63effab (occur): Put number of matches in the header line. 1994-11-24 08:39:41 +00:00
Richard M. Stallman
d9121bc0e6 (query-replace-map): Define \e and escape as exit-prefix.
(perform-replace): When exiting and rereading, set
this-command to mode-exit.
1994-11-23 09:10:36 +00:00
Richard M. Stallman
633a305a22 (query-replace-map): Bind Y and N like y and n. 1994-11-14 01:35:08 +00:00
Karl Heuer
b905ac3333 (perform-replace): Set help-mode in *Help* buffer. 1994-11-09 05:48:05 +00:00
Richard M. Stallman
151270f331 (query-replace-interactive): New user option.
(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.
1994-09-20 04:26:12 +00:00
Richard M. Stallman
301a9d1797 (perform-replace): Restore match data before highlighting. 1994-08-30 07:07:39 +00:00
Richard M. Stallman
02d95a278d (perform-replace): Call substitute-command-keys just once
and only if querying.
1994-05-01 22:56:54 +00:00
Karl Heuer
880f22a14a (replace-regexp): Fix misbalanced quotes. 1994-04-07 04:37:03 +00:00
Richard M. Stallman
118a01c922 Doc fixes. 1994-04-06 21:19:48 +00:00
Richard M. Stallman
f81ed6cfac (occur): Add mouse-face property to each line. 1994-04-01 19:31:15 +00:00
Richard M. Stallman
121e2227f1 (occur-mode-goto-occurrence): Delete excess close paren. 1994-03-31 16:38:57 +00:00
Richard M. Stallman
26649bdf29 (occur-mode): Doc fix. 1994-03-31 16:37:20 +00:00
Richard M. Stallman
78bead7366 (occur-mode-find-occurrence): New subroutine.
(occur-mode-goto-occurrence): Use that.
(occur-mode-mouse-goto): New command.
(occur-mode-map): Bind mouse-2.
(occur-mode-find-occurrence): Error if point is on first line.
1994-03-30 17:54:38 +00:00
Roland McGrath
eab6999727 (perform-replace): Set match-data markers to nil before discarding them. 1994-03-18 12:16:08 +00:00
Karl Heuer
237e6ab056 (perform-replace): Check for empty stack. 1994-02-11 21:07:59 +00:00
Richard M. Stallman
e782e9f271 (query-replace-highlight): New variable.
(replace-overlay): New variable.
(replace-highlight, replace-dehighlight): New functions.
(perform-replace): Use them.
1993-12-31 15:04:23 +00:00
Richard M. Stallman
be44f62cfb (query-replace-map): Don't bind ESC.
(query-replace-help): Changed accordingly.
1993-12-24 22:55:03 +00:00
Richard M. Stallman
a1c7dec409 (perform-replace): Prompt now says how to get help. 1993-12-23 04:40:13 +00:00
Richard M. Stallman
4baf56205b (occur-mode): Run occur-mode-hook. 1993-11-11 02:48:26 +00:00
Richard M. Stallman
43549f18f5 (occur-mode-goto-occurrence): Give meaningful error
message if there's nowhere useful to go.
1993-08-03 01:07:55 +00:00
Richard M. Stallman
166aaf6fb5 (occur): If no default, don't mention one. 1993-07-24 18:42:33 +00:00
Jim Blandy
384c7da487 * replace.el (query-replace-map): Fix typo in binding for [return]. 1993-06-22 08:12:10 +00:00
Jim Blandy
919592c00e * replace.el (query-replace-map): Make return exit query-replace,
just like escape.
1993-06-21 00:45:17 +00:00
Richard M. Stallman
679f7f7eb7 (query-replace-map): Bind [escape] like "\e". 1993-05-09 18:03:20 +00:00
Richard M. Stallman
72f21cdfe3 (flush-lines, keep-lines, how-many):
Delete spurious `s' from prompt arg to read-from-minibuffer.
1993-05-06 22:21:12 +00:00
Eric S. Raymond
31e1d9206b All fsets changed to defaliases. 1993-04-23 06:51:44 +00:00
Richard M. Stallman
4c53bd2bb0 (regexp-history): New history list.
(occur, flush-lines, keep-lines, how-many): Use it.
(occur): Don't insert previous string in minibuffer gratuitously.
Just use it if input is empty.
Use save-match-data around count-lines.
1993-03-28 20:17:39 +00:00
Richard M. Stallman
9275e5e3e9 (query-replace-map): Define backspace like delete. 1993-03-23 02:26:42 +00:00
Eric S. Raymond
d9ecc911ff Added or corrected Commentary headers 1993-03-22 16:53:22 +00:00
Richard M. Stallman
43ab8ca406 (query-replace-map): New keymap.
(perform-replace): Use query-replace-map.
(query-replace, query-replace-regexp, map-query-replace-regexp):
(replace-string, replace-regexp): Don't print `done' if unread chars.
1993-03-12 12:04:55 +00:00
Richard M. Stallman
bc6312e108 (query-replace-map): Add `quit' bindings. Delete default binding. 1993-03-09 21:18:31 +00:00
Richard M. Stallman
81bdc14db5 (query-replace-map): New keymap.
(perform-replace): Use query-replace-map.

(query-replace, query-replace-regexp, map-query-replace-regexp):
(replace-string, replace-regexp): Don't print `done' if unread chars.
1993-03-09 19:51:29 +00:00
Jim Blandy
7276614481 JimB's changes from January 18 to present 1993-01-26 01:56:29 +00:00
Jim Blandy
f4c7ad34be * bytecomp.el: Declare unread-command-char an obsolete variable.
* vip.el (vip-escape-to-emacs, vip-prefix-arg-value,
	vip-prefix-arg-com): Use unread-command-event instead of
	unread-command-char; respect its new semantics.
	* replace.el (perform-replace): Same.
1992-11-16 01:40:51 +00:00
Richard M. Stallman
99976f85b7 (occur): Always search entire buffer. 1992-10-18 01:06:40 +00:00
Richard M. Stallman
85b5fe0789 entered into RCS 1992-07-24 20:13:03 +00:00
Richard M. Stallman
770970cbad *** empty log message *** 1992-07-24 08:17:31 +00:00
Richard M. Stallman
ba343182c2 *** empty log message *** 1992-07-24 06:09:27 +00:00
Eric S. Raymond
3a801d0c71 *** empty log message *** 1992-07-22 04:22:42 +00:00
Eric S. Raymond
4821e2af02 *** empty log message *** 1992-07-15 23:29:10 +00:00
Eric S. Raymond
4f4b8effc3 *** empty log message *** 1992-07-15 22:39:32 +00:00
Jim Blandy
e5d77022e8 *** empty log message *** 1992-06-30 13:54:21 +00:00
Eric S. Raymond
c88ab9ce4a *** empty log message *** 1992-05-30 21:11:25 +00:00
Jim Blandy
79c2e52b7c *** empty log message *** 1991-07-13 06:29:10 +00:00
Brian Preble
73fa834646 *** empty log message *** 1991-05-13 22:05:10 +00:00
Roland McGrath
77176e7388 *** empty log message *** 1991-05-11 18:07:11 +00:00
Roland McGrath
da44e78441 *** empty log message *** 1991-05-10 19:36:23 +00:00
root
f1c9e14711 *** empty log message *** 1990-07-26 02:44:32 +00:00
Richard M. Stallman
698e1804b8 Initial revision 1990-05-11 20:07:49 +00:00