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

107 Commits

Author SHA1 Message Date
Gerd Moellmann
d79dfd472e (occur): Set tab-width in the *Occur* buffer to the
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.
2000-08-02 20:21:24 +00:00
Gerd Moellmann
34724fcbab (query-replace-map): Bind e' like E'. 2000-06-28 11:58:24 +00:00
Gerd Moellmann
889617de07 (perform-replace): Undo change of 2000-04-04.
Instead, move backward 1 character At the end of the loop when
necessary.
2000-06-26 20:02:42 +00:00
Dave Love
e730be7fbb Doc and error message fixes.
(replace-highlight): Use facep, not internal-find-face.
2000-05-21 17:04:47 +00:00
Gerd Moellmann
7ce278f3ad (query-replace-map): Add binding for `E'.
(query-replace-help): Extend help text.
(perform-replace): Allow editing the replacement string.
2000-05-03 19:23:28 +00:00
Gerd Moellmann
47d722546b (perform-replace): Add parameters START and END. Use
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.
2000-04-25 19:19:31 +00:00
Gerd Moellmann
8f3ff96be4 (perform-replace): Don't move forward one char
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.
2000-04-04 21:01:53 +00:00
Richard M. Stallman
d2ce3151a3 (query-replace): Rename last arg to DELIMITED.
(map-query-replace-regexp, query-replace-regexp-eval): Likewise.
(query-replace-regexp): Likewise.
2000-01-22 19:08:48 +00:00
Richard M. Stallman
84482eb301 (query-replace-regexp-eval)
(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.
1999-08-03 17:50:44 +00:00
Karl Heuer
5a78b47103 (perform-replace): Turn off case-fold-search
if FROM-STRING argument has uppercase in it.
1999-07-21 23:01:38 +00:00
Richard M. Stallman
d2a0ee8b79 (keep-lines, flush-lines, how-many):
Don't ignore case if arg has upper case letters.
1998-10-14 12:47:18 +00:00
Karl Heuer
596235d623 (perform-replace): Position point properly
before and after the recursive edit of C-r.
1998-10-06 23:25:52 +00:00
Richard M. Stallman
b7f096eeea Whitespace change. 1998-08-10 01:44:59 +00:00
Karl Heuer
5ddf4bdac0 (occur): Set buffer-read-only. 1998-06-20 22:25:31 +00:00
Karl Heuer
cbc127de47 (esc-map): Bind C-M-% to query-replace-regexp. 1998-06-04 06:57:32 +00:00
Dan Nicolaescu
cd32a7baa4 *** empty log message *** 1998-04-20 02:34:53 +00:00
Richard M. Stallman
a9c4c78a68 (perform-replace): Before recursive edit,
get the match data as markers, and set real-match-data.
1998-03-26 06:31:26 +00:00
Richard M. Stallman
ef4aaf5f1c (perform-replace): store-match-data => set-match-data. 1998-03-14 04:45:46 +00:00
Richard M. Stallman
4a8f3b3db0 (occur): Apply default by hand after read-from-minibuffer.
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.
1998-02-08 07:34:28 +00:00
Richard M. Stallman
bdb1c08fb9 (query-replace-from-history-variable): New variable.
(query-replace-to-history-variable): New variable.
(query-replace-read-args): Use them.
1998-01-30 23:34:50 +00:00
Karl Heuer
0f0a7f7cf4 (occur): If the matching line has no final newline,
insert one anyway.  Compensate for that when inserting line nums.
1998-01-18 02:53:16 +00:00
Richard M. Stallman
aeab5be0a8 (occur): Pass default to read-from-minibuffer so that
M-n can insert default value into minibuffer.
1998-01-03 07:06:18 +00:00
Karl Heuer
7ef5c4312d (perform-replace): In Transient Mark mode, if
region is active, only search the region.
(query-replace, etc.): Doc fixes.
1997-11-11 03:26:55 +00:00
Karl Heuer
95807e688c (query-replace-highlight): Change default to t. 1997-11-11 02:54:10 +00:00
Kenichi Handa
fce31d5183 (query-replace-read-args): Locally bind
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.
1997-08-26 11:45:49 +00:00
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