1
0
mirror of https://git.savannah.gnu.org/git/emacs.git synced 2024-11-24 07:20:37 +00:00
Commit Graph

135 Commits

Author SHA1 Message Date
Colin Walters
ba485f2e7c (occur-engine): Pad digits to the right. 2002-04-25 21:45:49 +00:00
Colin Walters
ac76acf7fb (occur-engine): Make nlines argument actually mean number of context
lines.  Handle it.
2002-04-25 21:12:09 +00:00
Colin Walters
04fe158afa (multi-occur-by-filename-regexp): Doc fix.
(occur-engine): Go to `point-min'.
2002-04-25 19:02:46 +00:00
Colin Walters
9e2b2e3071 (occur-accumulate-lines): Add optional argument `no-props'. Handle it.
(occur-engine): Use it.
2002-04-24 23:28:53 +00:00
Colin Walters
68608d9c9f (toplevel): Require `cl' while compiling.
(occur-buffer, occur-nlines): Delete.
(occur-revert-properties): Rename to `occur-revert-properties'.
(occur-mode): Handle it.  Set up font lock.
(occur-revert-function): Simply apply `occur-1'.
(occur-mode-find-occurence, occur-mode-mouse-goto)
(occur-mode-goto-occurrence-other-window)
(occur-mode-display-occurrence): Handle buffer property.
(list-matching-lines-face): Use defcustom.
(list-matching-lines-buffer-name-face): New variable.
(occur-accumulate-lines): Renamed from `ibuffer-accumulate-lines',
in ibuffer.el.
(occur-read-primary-args): Move out of `occur'.
(occur): Delete.  Now simply call `occur-1'.
(multi-occur, multi-occur-by-filename-regexp): New functions.
(occur-1): New function.
(occur-engine): Renamed from `ibuffer-occur-engine' to replace the
previous implementation of `occur'; taken from ibuf-ext.el.
(occur-fontify-on-property): New function.
(occur-fontify-region-function, occur-unfontify-region-function):
New functions.
2002-04-23 20:34:58 +00:00
Richard M. Stallman
86914dcca2 (query-replace-read-args): New optional arg NOERROR.
(perform-replace): Use save-window-excursion around recursive edit.
2002-03-25 00:38:46 +00:00
Andreas Schwab
653479ad87 (query-replace-regexp-eval): Doc fix. 2002-02-18 20:30:58 +00:00
Richard M. Stallman
75f70c1ce1 *** empty log message *** 2002-01-25 05:06:27 +00:00
Richard M. Stallman
029024e25b (occur-mode-goto-occurrence-other-window): New command.
(occur-mode-map): Bind `o' to that.
2002-01-08 06:12:37 +00:00
Richard M. Stallman
3e5c509173 (query-replace-read-args): Immediate error if read-only. 2001-12-30 19:37:47 +00:00
Richard M. Stallman
365486d69e (occur-mode-display-occurrence): New function.
(occur-mode-map): Bind C-o to it.
2001-12-24 16:27:20 +00:00
Richard M. Stallman
d9291fa3df (query-replace-read-args): Display message if FROM contains \n' or \t'. 2001-12-02 04:45:54 +00:00
Richard M. Stallman
505847d461 (occur-mode): Undo 2001-5-20 change. 2001-11-20 23:28:57 +00:00
Richard M. Stallman
1c4fe319c9 (query-replace-skip-read-only): New variable.
(perform-replace): If that variable is non-nil, ignore matches
that have a read-only property.
2001-11-11 20:05:39 +00:00
Gerd Moellmann
99a7559fb3 (perform-replace): Move START and END parameters
to the end of the argument list and make them optional.
2001-10-24 12:35:48 +00:00
Miles Bader
43744cb9bd (query-replace-regexp-eval): Return args from `interactive' form in
correct order.
2001-08-28 09:00:21 +00:00
Gerd Moellmann
ae13fc3c6f (occur): Bind inhibit-read-only to t. 2001-08-16 11:48:56 +00:00
Gerd Moellmann
698665d1ac (perform-replace): Doc fix. 2001-08-03 11:57:27 +00:00
Pavel Janík
60370d4073 Some fixes to follow coding conventions. 2001-07-15 19:53:53 +00:00
Eli Zaretskii
2ddf19dfe0 (occur): Add help-echo to mouse-highlighted text. 2001-06-17 11:23:17 +00:00
Richard M. Stallman
2ced751f95 (keep-lines-read-args): Return just a regexp.
Provide nil for the region args.
(keep-lines, flush-lines, how-many):
Calculate the defaults for the region here, when args are nil.
2001-06-14 20:54:34 +00:00
Eli Zaretskii
f54701d1c3 (case-replace, query-replace-from-history-variable)
(query-replace-to-history-variable, keep-lines-read-args)
(occur-revert-function, query-replace-help): Dox fix.
2001-06-14 08:17:19 +00:00
Stefan Monnier
f601efb0f6 (keep-lines-read-args): Use `copy-marker'.
(how-many): Save excursion properly.
(occur-mode): Use define-derived-mode.
(perform-replace): Use with-current-buffer.
2001-05-20 16:10:39 +00:00
Gerd Moellmann
470bbe9bbe (query-replace-regexp-eval): Doc fix. 2001-05-02 11:29:57 +00:00
Stefan Monnier
dd4e0e557d (occur): Stop at end of buffer. 2001-02-13 20:08:37 +00:00
Gerd Moellmann
fa257eefd2 (perform-replace): Don't use an empty match adjacent
to a non-empty match when computing the next match before the
replacement is performed.
2000-12-12 14:13:13 +00:00
Gerd Moellmann
9043c1c307 (occur): Make line-number-width 1 smaller for the
colon following the line number.
2000-12-06 17:14:38 +00:00
Gerd Moellmann
e32eb3e641 (keep-lines-read-args): New function.
(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.
2000-09-30 16:00:54 +00:00
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