1
0
mirror of https://git.savannah.gnu.org/git/emacs.git synced 2024-12-19 10:22:27 +00:00
Commit Graph

282 Commits

Author SHA1 Message Date
Juanma Barranquero
3f2372cbcb * replace.el (how-many): Fix typo in docstring.
Reported by Leo Liu <sdl.web@gmail.com>.
2008-10-22 11:11:01 +00:00
Juri Linkov
04ff2deeb3 (query-replace, query-replace-regexp)
(replace-string, replace-regexp, perform-replace): Add "word"
indicatiors to the prompt for word delimited replacements.
2008-10-19 22:34:35 +00:00
Juri Linkov
10965505b4 (read-regexp): Rename arg default' to default-value'. Doc fix. 2008-10-19 22:04:59 +00:00
Chong Yidong
f2e7b9ef88 (perform-replace): Don't set inhibit-read-only using
query-replace-skip-read-only (bug#956).
2008-09-12 00:37:41 +00:00
Juri Linkov
714da75728 (read-regexp): Add second arg `default'. Doc fix.
(occur-read-primary-args): Use `(car regexp-history)'
as the second arg of `read-regexp'.
2008-07-29 14:44:35 +00:00
Juri Linkov
b591f3387a (multi-query-replace-map): New variable.
(perform-replace): Add processing of new multi-buffer keys bound
to `automatic-all' and `exit-current'.  Set `query-flag' to nil
if last input char was `automatic-all'.  Set new local variable
`multi-buffer' to t when one of new two keys were typed.  Return
non-nil value of `multi-buffer' that tells to calling functions
to continue replacement on the next file.
2008-07-23 01:18:39 +00:00
Juri Linkov
96f606c5e6 (read-regexp): New function.
(keep-lines-read-args, occur-read-primary-args):
Call `read-regexp' instead of code moved to new function.
(keep-lines, flush-lines, how-many): Remove parenthesis and colon
from the end of prompt.
(replace-re-search-function): Doc fix.
2008-06-29 16:10:11 +00:00
Chong Yidong
c35a09fc44 (replace-search-function, replace-re-search-function): New vars.
(perform-replace): Use them.
2008-06-06 20:32:11 +00:00
Glenn Morris
eb3fa2cfcf Switch to recommended form of GPLv3 permissions notice. 2008-05-06 08:06:51 +00:00
Juri Linkov
360289a661 (occur-read-primary-args): Set default to the car of
regexp-history and display it in the prompt, but don't add to the
list of minibuffer defaults.  Bind history-add-new-input to nil to
not add automatically `default'.  For empty input return `default'.
Otherwise, add `input' to regexp-history and return it.
(occur-1): Signal an error for the empty regexp.
2008-05-01 23:55:44 +00:00
Dan Nicolaescu
a22f42ace8 (occur-mode-map): Add :help. 2008-03-21 06:12:35 +00:00
Carsten Dominik
8e62d5e855 * replace.el (occur-mode-find-occurrence-hook): New hook that can
be used to reveal or highlight the location of a match.
	(occur-mode-goto-occurrence)
	(occur-mode-goto-occurrence-other-window)
	(occur-mode-display-occurrence): Run
	`occur-mode-find-occurrence-hook'.
2008-01-23 10:49:31 +00:00
Miles Bader
59ce725a3b Merge from emacs--rel--22
Revision: emacs@sv.gnu.org/emacs--devo--0--patch-987
2008-01-08 20:46:54 +00:00
Glenn Morris
409cc4a3ea Add 2008 to copyright years. 2008-01-07 02:45:14 +00:00
Richard M. Stallman
f8edc67ee2 (occur-context-lines): New subroutine, broken out of occur-engine.
(occur-engine): Call it.
2008-01-03 09:52:45 +00:00
Miles Bader
b17f53abc2 Merge from emacs--rel--22
Revision: emacs@sv.gnu.org/emacs--devo--0--patch-966
2007-12-28 22:26:14 +00:00
Eli Zaretskii
fae97ed8b8 (regexp-history): Add reference to `history-length' in the doc string. 2007-12-22 17:10:17 +00:00
Juri Linkov
3be42fcdfb (keep-lines, flush-lines, how-many): Doc fix.
Check search-upper-case before calling isearch-no-upper-case-p
to set case-fold-search.
(occur): Doc fix.
(occur-1, perform-replace): Check search-upper-case before calling
isearch-no-upper-case-p to set case-fold-search.
2007-12-09 23:47:04 +00:00
Dan Nicolaescu
85ea5b19e4 (occur-mode-map): Add a major mode menu with entries
for all occur operations.
2007-11-22 03:01:36 +00:00
Juanma Barranquero
0ae03f1a09 (map-query-replace-regexp): Doc fix (revert part of 2000-05-21T17:04:47Z!fx@gnu.org
made with no ChangeLog entry).
2007-11-19 12:47:03 +00:00
Juanma Barranquero
d8f1d2f3a3 (map-query-replace-regexp): Doc fix (revert part of 2000-05-21T17:04:47Z!fx@gnu.org
made on 2000-05-21 with no ChangeLog entry).
2007-11-19 12:10:41 +00:00
Juri Linkov
7dc5b46da5 (keep-lines-read-args, occur-read-primary-args):
Use a list of default values for DEFAULT arg of read-from-minibuffer.
2007-11-16 01:20:20 +00:00
Juri Linkov
7abe68aa19 (query-replace-show-replacement): New defcustom.
(perform-replace): Use `match-substitute-replacement' if
`query-replace-show-replacement' is non-nil.
2007-11-10 21:49:19 +00:00
Miles Bader
9aecacd08a Merge from emacs--rel--22
Patches applied:

 * emacs--rel--22  (patch 70-73)

   - Update from CVS

2007-07-25  Glenn Morris  <rgm@gnu.org>

   * Relicense all FSF files to GPLv3 or later.

Revision: emacs@sv.gnu.org/emacs--devo--0--patch-828
2007-07-26 05:28:10 +00:00
Glenn Morris
b4aa60262c Switch license to GPLv3 or later. 2007-07-25 04:50:21 +00:00
Stefan Monnier
26cc71affc (perform-replace): Use isearch-no-upper-case-p. 2007-07-23 21:32:32 +00:00
Dan Nicolaescu
5183d4c9a9 * replace.el (match): Use yellow1 instead of yellow.
* progmodes/gdb-ui.el (breakpoint-enabled): Use red1 instead of
red.

* pcvs-info.el (cvs-unknown): Likewise.
2007-07-13 02:50:19 +00:00
David Kastrup
fc6a22502e * NEWS: Mention `query-replace-regexp-eval' being deprecated.
* replace.el (query-replace-regexp-eval): Deprecate.
2007-04-17 23:24:13 +00:00
Stefan Monnier
084c41ca0a (occur-next-error): *Occur* might not be displayed in the
selected frame.  Reported by David Hansen <david.hansen@gmx.net>.
2007-03-26 15:09:52 +00:00
Richard M. Stallman
330167fce8 (match): Use yellow background on light-bg terminals. 2007-03-11 23:53:38 +00:00
Chong Yidong
8121414a6a (occur-engine): buffer-undo-list binding moved...
(occur-1): ...to here.
2007-03-08 15:17:42 +00:00
Kim F. Storm
cde6fe5cd0 2007-03-01 Lennart Borgman <lennart.borgman.073@student.lu.se>
* replace.el (perform-replace): Propertize message.
2007-03-01 13:43:48 +00:00
Chong Yidong
b3aad29e46 (perform-replace): Undo forward-char immediately if non-adjacent
search fails.
2007-02-28 18:54:43 +00:00
Chong Yidong
0b60cc0908 (replace-highlight): Bind search-whitespace-regexp to nil. 2007-02-15 16:54:24 +00:00
Glenn Morris
d7a0267c8d Add 2007 to copyright years. 2007-01-21 03:53:13 +00:00
Juanma Barranquero
2f857176eb (perform-replace): Remove leftover code. 2007-01-13 14:03:39 +00:00
Richard M. Stallman
fbea9ee830 (perform-replace): Don't clear NODENT when computing the replacement string. 2007-01-12 22:33:09 +00:00
Juanma Barranquero
107173cf00 (replace-regexp): Fix typo in docstring. 2007-01-07 18:45:28 +00:00
Juanma Barranquero
6a964bb153 (replace-match-data, replace-match-maybe-edit): Doc fix. 2006-12-10 23:47:52 +00:00
Richard M. Stallman
f72f9f1a58 (replace-match-string-symbols): Handle dotted lists. 2006-07-24 16:52:57 +00:00
Juri Linkov
2bf2b94705 (query-replace-read-from, query-replace-read-to):
Bind `history-add-new-input' to nil.  Call `add-to-history'.
2006-05-31 22:48:31 +00:00
Chong Yidong
5dae4b1156 Fix last change. 2006-05-28 17:05:38 +00:00
Chong Yidong
6b59b13027 * replace.el (query-replace-defaults): New variable.
(query-replace-read-from): Use `query-replace-defaults' for
	default value, instead of history list.
	(query-replace-read-to): Update `query-replace-defaults'.
2006-05-28 17:02:37 +00:00
Juri Linkov
311f8bac68 (query-replace-read-from, query-replace-read-to):
Remove 8th arg KEEP-ALL in read-from-minibuffer.
2006-05-25 21:57:12 +00:00
Miles Bader
bc16bf5eb3 Revision: emacs@sv.gnu.org/emacs--devo--0--patch-261
lisp/replace.el (occur-engine): Bind `inhibit-field-text-motion' to t
2006-05-02 23:14:55 +00:00
Thien-Thi Nguyen
aaef169dc6 Update years in copyright notice; nfc. 2006-02-06 15:23:23 +00:00
Richard M. Stallman
689f439402 (multi-occur-in-matching-buffers): Fix prev change. 2006-02-02 04:20:36 +00:00
Richard M. Stallman
191b577e11 (multi-occur): Doc fix.
(multi-occur-in-matching-buffers): Renamed from
multi-occur-by-filename-regexp.  Prefix arg says match
buffer names instead of file names.
2006-01-31 18:09:24 +00:00
Richard M. Stallman
c0b457636e (perform-replace): Calculate match-again
before skipping read-only matches.
2005-12-27 04:31:21 +00:00
Juri Linkov
a46961def2 (replace-highlight): Change overlay priority from 1 to 1001. 2005-12-09 09:46:16 +00:00