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

164 Commits

Author SHA1 Message Date
Richard M. Stallman
2f2f7e58d4 (query-replace-read-args): Use save-excursion.
(map-query-replace-regexp): Use prefix-numeric-value.
2003-03-05 20:51:33 +00:00
Richard M. Stallman
10784bace4 (query-replace-read-args): Return just 3 values.
(query-replace, query-replace-regexp)
(query-replace-regexp-eval, map-query-replace-regexp)
(replace-string, replace-regexp): Read the start and end args
separately so that the expressions are recorded in command-history.
2003-02-24 16:45:47 +00:00
Juanma Barranquero
f1180544bb Trailing whitespace deleted. 2003-02-04 12:29:42 +00:00
Kenichi Handa
5cb4031d8f (occur-engine): Set buffer-file-coding-system of
OUT-BUF to that of one of BUFFERS if they locally bind that
variable.
2002-11-13 07:06:07 +00:00
Richard M. Stallman
446d9629b9 (query-replace, query-replace-regexp): Doc fixes. 2002-11-06 05:08:16 +00:00
Juanma Barranquero
123d55481b (occur-find-match): New function.
(occur-next, occur-prev): Use it.
2002-09-24 08:35:43 +00:00
Richard M. Stallman
261cca8832 (occur-engine-add-prefix): Use 7 spaces.
(occur-engine): Use 7 digits to align tabs in the data.
2002-09-18 16:03:58 +00:00
Richard M. Stallman
fbefbe33e0 (occur-mode): Add font-lock-defontify to change-major-mode-hook. 2002-09-10 16:44:17 +00:00
Kim F. Storm
52698d459a (multi-occur): Made "ido-aware":
Changed prompt to use C-j instead of RET to end.
Set ido-ignore-item-temp-list to the selected buffers so far, so
they are automatically excluded from the list of choices.
Use add-to-list instead of push.
2002-09-02 10:41:25 +00:00
Juanma Barranquero
ce8b7b9ff6 (occur-mode): Add interactive declaration. 2002-08-30 11:51:42 +00:00
Juanma Barranquero
c9ae8cbb21 (occur-mode-hook): New hook.
(occur-mode): Use it.
(occur-hook): Set default to nil.
2002-08-29 21:40:28 +00:00
Juanma Barranquero
2fb79329b5 (occur-hook): Renamed from `occur-mode-hook'.
(occur-mode): Remove call to `occur-mode-hook'.
(occur-rename-buffer): Fix reference to `occur-mode-hook' in docstring.
(occur-1): Add call to `occur-hook'.
2002-08-28 15:21:33 +00:00
Sam Steingold
d99118b044 (occur-rename-buffer): New command.
(occur-mode-map): Bind "r" to it.  Added keybindings for
`kill-this-buffer', `clone-buffer' and `quit-window'.
2002-07-25 19:31:25 +00:00
Richard M. Stallman
98faf1bb41 (keep-lines, flush-lines): Interactively report
read-only error	before reading regexp argument.
2002-07-18 15:00:56 +00:00
Richard M. Stallman
119831da31 (flush-lines, keep-lines): Convert REND to a marker. 2002-07-12 23:28:15 +00:00
Andreas Schwab
b2043e7bf3 (occur-1): Avoid invalid message format string. 2002-06-25 09:54:26 +00:00
Colin Walters
ce0e1de2ab (occur-mode): Don't set `font-lock-defaults'. 2002-06-12 04:55:34 +00:00
Colin Walters
f53f6a1e0c (occur-mode): Do set `font-lock-defaults',
and be sure to set `font-lock-core-only'.
2002-06-09 00:17:17 +00:00
Colin Walters
506a6d7e1b (occur-mode): Don't set up categories.
(occur-1): Pass `list-matching-lines-face' and
`list-matching-lines-buffer-name-face'.
(occur-engine): Use `font-lock-face' instead of categories.
2002-06-08 20:44:42 +00:00
Colin Walters
588c915a8e (perform-replace): Document return value. Use `pop'. 2002-05-26 20:42:51 +00:00
Colin Walters
e8e2a88cbd (occur-engine): Include all text properties except mouse-face on the
newline at the end of occurences.
2002-05-24 00:56:46 +00:00
Colin Walters
daae70bf8c (occur-engine): Increment globalcount all at once after searching a buffer.
(occur-mode-map): Don't escape plain "o".

(occur-mode-hook): New variable.
(occur-fontify-region-function): Deleted.
(occur-mode): Don't use it.  Set up `font-lock-category-alist' instead.
(occur-fontify-on-property): Deleted.
(occur-engine): Use categories from `font-lock-category-alist'.
2002-05-21 21:01:14 +00:00
Colin Walters
bda1925e34 (occur-read-primary-args): Handle a bare 'C-u' correctly. 2002-05-15 19:35:54 +00:00
Colin Walters
e16907837c (occur-1): New optional argument `buf-name'.
(occur-revert-function): Use it.

(occur-1): Handle plurals.

(occur-engine): If there are no more matches, then finish
searching the current buffer.
2002-05-13 03:46:56 +00:00
Eli Zaretskii
89e7ad5946 Change all post-21.1 :version attributes to 21.4. 2002-05-12 17:30:42 +00:00
Colin Walters
b052308724 (occur-unfontify-region-function): Delete.
(occur-mode): Don't use it.
(occur-engine): Respect `keep-props'.
(occur-accumulate-lines): If we're moving forward, decrement; don't
increment, and vice versa.
2002-05-08 03:53:19 +00:00
Colin Walters
70ed2a7630 (occur-mode-map): Bind "q" to `delete-window'.
(occur-1): If one of the buffers we're searching is the *Occur* buffer
itself, handle it by creating a temporary buffer.  If any of the
buffers being searched are killed, note that in the search result
message.  Also, set local variables before we possibly kill the
buffer.
2002-05-02 21:22:56 +00:00
Pavel Janík
307645975c Follow coding conventions. 2002-05-02 05:41:46 +00:00
Richard M. Stallman
46b3d18ef0 (occur-accumulate-lines): Avoid incf and decf.
(occur-engine-add-prefix): New function.
(occur-engine): Avoid using macrolet, incf and decf.
Use occur-engine-add-prefix instead.
Rename `l' to `lines' and `c' to `matches'.

(occur-engine, occur-mode-mouse-goto)
(occur-mode-find-occurrence, occur-mode-goto-occurrence)
(occur-mode-goto-occurrence-other-window)
(occur-mode-display-occurrence): A position is just a marker,
not a list.

(occur-revert-arguments):
Renamed from occur-revert-properties.  All uses changed.
2002-04-28 17:48:31 +00:00
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