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

190 Commits

Author SHA1 Message Date
Teodor Zlatanov
5f9e0ca5da simple.el (next-error-buffer-p): allow for inclusive and
exclusive tests for finding a buffer
(next-error-find-buffer): pass the exclusive and inclusive tests
to next-error-buffer-p

replace.el (occur-next-error): switch to the Occur buffer when
appropriate, and use the exclusive filter to
next-error-find-buffer to do it.  Use the absolute value of the
motion amount.
2004-11-29 18:44:29 +00:00
Richard M. Stallman
bbe9f1755c (query-replace-read-to, query-replace-read-from):
Specify t for KEEP-ALL in read-from-minibuffer.
2004-11-20 22:09:50 +00:00
Juri Linkov
b938735a66 (perform-replace): Use `query-replace-descr'.
(occur-mode-map): Rename `next-error-follow-mode' to `next-error-follow-minor-mode'.
2004-09-08 20:24:12 +00:00
Eli Zaretskii
0ad1044791 (occur-mode-map): Bind toggle-next-error-follow-mode. 2004-09-04 12:50:17 +00:00
David Kastrup
78629844c6 (query-replace-read-from): Use
`query-replace-compile-replacement'.
(query-replace-compile-replacement): New function.
(query-replace-read-to): Use `query-replace-compile-replacement'
for repeating the last command.
2004-08-01 12:59:09 +00:00
Richard M. Stallman
f22a74063c (occur-next-error): Call set-window-point.
(occur-engine): Handle negative NLINES.
2004-07-24 21:34:47 +00:00
Richard M. Stallman
442a68c7f1 (occur-read-primary-args): Pass default to read-from-minibuffer. 2004-07-17 14:34:42 +00:00
Stefan Monnier
cc0aea1a20 (query-replace-regexp-eval): Fix last change. 2004-07-06 12:31:24 +00:00
Stefan Monnier
6f1df6d9d6 (query-replace-descr): New fun.
(query-replace-read-from, query-replace-read-args): Default to the last from&to.
(query-replace-read-to): Quote the `from' string when displaying it.
(query-replace-regexp-eval): Immediately check read-only status.
Use query-replace-read-from to get the \n checking.
Quote the `from' string when displaying it.
(map-query-replace-regexp, occur-read-primary-args):
Quote the `from' string when displaying it.
2004-07-06 00:06:05 +00:00
Stefan Monnier
1606466a39 (query-replace-read-from, query-replace-read-to): New funs extracted
from query-replace-read-args.
(query-replace-read-args): Use them.
2004-07-05 23:12:28 +00:00
Stefan Monnier
5291cbca50 (query-replace-interactive, query-replace-read-args):
Remove the `initial' special value.
(query-replace-regexp-eval, map-query-replace-regexp): Simplify.
(occur-engine): Remove unused var `matchend'.
2004-07-05 22:50:46 +00:00
Juri Linkov
f1f6079c82 (query-replace-read-args): Swallow space after 'foo,
not after (quote foo).  Match space only immediately after symbol,
not anywhere in the whole string.
2004-07-03 05:18:38 +00:00
Richard M. Stallman
9e5d1b634e (query-replace-read-args): Swallow space after symbols, not after
closeparens.  But avoid error if string ends there.
2004-07-02 23:52:14 +00:00
Juri Linkov
0ec4febda2 (query-replace-interactive): Change type from boolean
to choice.  Add value `initial'.
(query-replace-read-args): Handle value `initial' of
query-replace-interactive.
2004-07-01 10:01:32 +00:00
Juri Linkov
da6eb51ce4 (query-replace-read-args): Swallow a space after
everything except )]" which in most cases means after a symbol.
2004-06-28 23:03:06 +00:00
David Kastrup
cb05ca25df (perform-replace): Highlight the match even in
non-query mode if there is potential replace string editing.
2004-06-26 18:35:18 +00:00
Richard M. Stallman
ba8d15f972 (query-replace-read-args): Swallow space after \,SYMBOL. 2004-06-24 23:33:59 +00:00
David Kastrup
7c1c02ac6e (query-replace-read-args): Implement \,' and \#'
replacements here.
(query-replace-regexp): Doc string explaining this and the new
`\?' replacement.  Remove `\,' and `\#' implementation here, as it
is better placed in `query-replace-read-args'.
(replace-regexp): Explain `\,', `\#' and `\?'.
(replace-match-data): New function for thorough reuse/destruction
of old match-data.
(replace-match-maybe-edit): Function for implementing `\?'
editing.
(perform-replace): Fix maintaining of the match stack including
already matched regions, implement `\?', fix various problems
with regions while editing and other stuff.
(replace-highlight): Simplified.
2004-06-24 10:26:24 +00:00
David Kastrup
2f57bf8593 (query-replace-read-args): Only warn about use of \n
and \t when we are doing a regexp replacement and the actual
escaped character is n or t.
(query-replace-regexp): Add \, and \# interpretation to
interactive call and document it.
(query-replace-regexp-eval, replace-match-string-symbols): add \#
as shortkey for replace-count.
(replace-quote): New function for doubling backslashes.
2004-06-17 14:44:02 +00:00
Juri Linkov
22a76778db (perform-replace): Use `limit' to terminate the while-loop explicitly. 2004-06-10 04:21:14 +00:00
Luc Teirlinck
1f3ade4f4d (query-replace-interactive): Convert defvar into defcustom. 2004-05-30 21:50:35 +00:00
Kim F. Storm
423e4de7c1 From: Teodor Zlatanov <tzz@lifelogs.com>
(occur-next-error, occur-1): Hook into the next-error framework.
2004-04-21 21:36:42 +00:00
John Paul Wallington
dbed3cd3c0 * replace.el (occur-engine): Distinguish between one and several
matches in the matches per buffer heading.
2004-04-11 04:57:44 +00:00
Richard M. Stallman
74ce1b11e9 (occur-engine): Change message for count of matches. 2004-03-12 10:11:16 +00:00
David Kastrup
d83a97ab5f (perform-replace): Allow 'literal argument in
regexp-flag to indicate literal replacement.
(query-replace-regexp-eval): Use it.
2004-02-02 12:50:49 +00:00
Miles Bader
ab5796a9f9 Add arch taglines 2003-09-01 15:45:59 +00:00
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