1
0
mirror of https://git.savannah.gnu.org/git/emacs.git synced 2024-12-17 10:06:13 +00:00
Commit Graph

243 Commits

Author SHA1 Message Date
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
Stefan Monnier
cedbd3f084 (query-replace-map): Move initialization into declaration.
(occur-engine): Use with-current-buffer.
(occur-mode-goto-occurrence): Make it work for mouse-clicks as well.
(occur-mode-mouse-goto): Replace with an alias.
2005-11-28 21:46:51 +00:00
Juri Linkov
6c6605b2cf (occur-mode-mouse-goto): Pop, don't switch.
(occur-mode-goto-occurrence): Let-bind same-window-buffer-names
and same-window-regexps.
(occur-next-error): Don't move point for arg 0.
2005-11-28 19:59:16 +00:00
Chong Yidong
7e1d31d460 * replace.el (occur-mode-goto-occurrence): Pop, don't switch. 2005-11-28 19:18:51 +00:00
Juri Linkov
8b363e6f08 (occur-excluded-properties): New defcustom.
(occur-1, occur-engine, occur-accumulate-lines): Use it.
2005-11-09 07:41:48 +00:00
Romain Francoise
61f570e290 (occur-engine): Add marker at end of line, too. 2005-11-05 14:02:18 +00:00
Richard M. Stallman
932af01bc5 (occur-mode-mouse-goto): Always go to other window.
(occur-mode-goto-occurrence): Always switch in same window.
2005-10-29 19:49:20 +00:00
Romain Francoise
1e0ab2f03b (occur-engine): Include colon in mouse-face highlight. 2005-10-27 18:22:00 +00:00
Romain Francoise
c7cad90c7e (occur-engine): Rearrange text properties. 2005-10-24 06:19:32 +00:00
Romain Francoise
344d2d87b2 (occur-engine): Add follow-link property. 2005-10-20 16:53:11 +00:00
Romain Francoise
5b76833fd5 2005-09-24 Emilio C. Lopes <eclig@gmx.net>
* woman.el (woman-file-name):
	* wid-edit.el (widget-file-prompt-value)
	(widget-coding-system-prompt-value):
	* w32-fns.el (set-w32-system-coding-system):
	* vc.el (vc-version-diff, vc-annotate):
	* textmodes/reftex-auc.el (reftex-arg-cite)
	(reftex-arg-index-tag):
	* textmodes/refer.el (refer-get-bib-files):
	* textmodes/artist.el (artist-figlet-choose-font):
	* terminal.el (terminal-emulator):
	* replace.el (occur-read-primary-args):
	* rect.el (string-rectangle, string-insert-rectangle):
	* ps-print.el (ps-print-preprint):
	* progmodes/pascal.el (pascal-goto-defun):
	* progmodes/etags.el (visit-tags-table, visit-tags-table-buffer):
	* progmodes/compile.el (compilation-find-file):
	* printing.el (pr-interactive-n-up):
	* play/animate.el (animate-birthday-present):
	* net/rcompile.el (remote-compile):
	* man.el (man, Man-goto-section, Man-follow-manual-reference):
	* mail/rmailsum.el (rmail-summary-search-backward)
	(rmail-summary-search):
	* mail/rmailout.el (rmail-output-read-rmail-file-name)
	(rmail-output-read-file-name):
	* mail/rmail.el (rmail-search, rmail-search-backwards):
	* mail/mailabbrev.el (merge-mail-abbrevs, rebuild-mail-abbrevs):
	* locate.el (locate):
	* international/quail.el (quail-show-keyboard-layout):
	* international/mule.el (set-buffer-file-coding-system)
	(revert-buffer-with-coding-system, set-file-name-coding-system)
	(set-terminal-coding-system, set-keyboard-coding-system)
	(set-next-selection-coding-system):
	* international/mule-diag.el (describe-coding-system)
	(describe-font, describe-fontset):
	* international/mule-cmds.el (universal-coding-system-argument)
	(search-unencodable-char, describe-input-method)
	(set-language-environment, describe-language-environment):
	* international/codepage.el (codepage-setup):
	* international/code-pages.el (codepage-setup):
	* info.el (Info-search, Info-follow-reference)
	(Info-search-backward):
	* emacs-lisp/advice.el (ad-read-advised-function)
	(ad-read-advice-class, ad-clear-cache, ad-activate)
	(ad-deactivate, ad-update, ad-unadvise, ad-read-advice-name)
	(ad-enable-advice, ad-disable-advice, ad-remove-advice)
	(ad-read-regexp):
	* ediff-util.el (ediff-toggle-regexp-match):
	* ediff-ptch.el (ediff-prompt-for-patch-file):
	* dired-aux.el (dired-diff):
	* diff.el (diff):
	* cus-edit.el (custom-variable-prompt):
	* calendar/timeclock.el (timeclock-ask-for-project):
	* calc/calcalg3.el (calc-get-fit-variables):
	* calc/calc-store.el (calc-edit-variable)
	(calc-permanent-variable):
	* vc-mcvs.el (vc-mcvs-register):
	* shadowfile.el (shadow-define-literal-group):
	* woman.el (woman-file-name):
	* vc.el (vc-version-diff, vc-merge):
	* textmodes/reftex-index.el (reftex-index-complete-tag):
	* format.el (format-decode-buffer, format-decode-region):
	* emulation/viper-cmd.el (viper-read-string-with-history):
	* emacs-lisp/debug.el (cancel-debug-on-entry):
	* emacs-lisp/checkdoc.el (checkdoc-this-string-valid-engine):
	* ediff.el (ediff-merge-revisions)
	(ediff-merge-revisions-with-ancestor, ediff-revision):
	* completion.el (interactive-completion-string-reader):
	* calc/calc-prog.el (calc-user-define-formula):
	Follow convention for reading with the minibuffer.
2005-09-24 13:44:02 +00:00
Juri Linkov
90c9fc2aae (query-replace-read-from, query-replace-read-to)
(query-replace-read-args): Rename arg `string' to `prompt'.
2005-08-09 21:39:09 +00:00
Richard M. Stallman
882effdb17 (occur-engine): Initial *Occur* output not undoable. 2005-08-09 11:29:18 +00:00
Thien-Thi Nguyen
0d30b33766 Update years in copyright notice; nfc. 2005-08-06 22:13:43 +00:00
Juri Linkov
4bc30b74c8 (match): Use slightly more light RoyalBlue3 instead of dark RoyalBlue4. 2005-07-19 11:41:20 +00:00
Juanma Barranquero
a653724b13 (occur-rename-buffer): Use `generate-new-buffer' also when called
non-interactively.  Doc fix.
2005-07-07 10:04:01 +00:00
Lute Kamstra
086add1519 Update FSF's address. 2005-07-04 23:32:44 +00:00
Juanma Barranquero
c7d2f2cc46 (occur-hook): Doc fix.
(occur-1): Don't call `occur-hook' if there are no matches.
2005-07-03 22:49:00 +00:00
Juanma Barranquero
1741a9162f (occur-rename-buffer): Fix docstring. 2005-07-02 18:08:49 +00:00
Juanma Barranquero
426674a851 (occur-1): Do not set the `buffer-read-only' and modified flags for the occur
buffer when no matches are found, because the buffer has already been deleted.
2005-06-30 13:04:04 +00:00
Luc Teirlinck
bace72098d (keep-lines-read-args): Add INTERACTIVE arg.
(keep-lines): Add INTERACTIVE arg.  Never delete lines only
partially contained in the active region.  Do not take active
region into account when called from Lisp, unless INTERACTIVE arg
is non-nil.  Use `forward-line' instead of `beginning-of-line' to
avoid trouble with fields.  Make marker point nowhere when no
longer used.  Always return nil.  Doc fix.
(flush-lines): Add INTERACTIVE arg.  Do not take active region
into account when called from Lisp, unless INTERACTIVE arg is
non-nil.  Use `forward-line' instead of `beginning-of-line' to
avoid trouble with fields.  Make marker point nowhere when no
longer used.  Always return nil.  Doc fix.
(how-many): Add INTERACTIVE arg.  Make RSTART and REND args
interchangeable.  Do not take active region into account when
called from Lisp, unless INTERACTIVE arg is non-nil.  Do not print
message in echo area when called from Lisp, unless INTERACTIVE arg
is non-nil.  Avoid saying "1 occurrences".  Do not use markers.
Return the number of matches.  Doc fix.
(occur): Doc fix.
(perform-replace): Make comment follow double space convention for
the sake of `outline-minor-mode'.
2005-06-26 02:38:08 +00:00
Juanma Barranquero
8346425e35 (occur-1): Set `buffer-read-only' and the buffer-modified flag before running
`occur-hook' to protect against unintentional buffer switches that can lead to
data loss.
2005-06-24 02:41:36 +00:00
Kim F. Storm
10ddc30eee (replace-match-data): Pass RESEAT arg `t' to
match-data to unchain markers in match-data.
2005-06-08 22:37:13 +00:00
Lute Kamstra
92e9557c06 (occur-mode): Use run-mode-hooks. 2005-05-26 13:08:57 +00:00
Juanma Barranquero
3981e5b5f5 Replace read-input' by read-string'. 2005-05-18 10:17:18 +00:00
Eli Zaretskii
06df7f877b (occur-1): Bind inhibit-read-only so that erase-buffer doesn't barf
on read-only text properties (likewise for add-text-properties in
occur-engine).  Mark buffer as unmodified.
(occur-engine): Don't set buffer-read-only here.
2005-05-07 13:46:42 +00:00
Juri Linkov
444697a17a (perform-replace): Remove bindings of global
variables isearch-string, isearch-regexp, isearch-case-fold-search.
Add three new arguments to `replace-highlight'.
(replace-highlight): Add arguments string, regexp, case-fold.
Let-bind isearch-string, isearch-regexp, isearch-case-fold-search
to allow isearch-lazy-highlight-new-loop to use these values
to set corresponding isearch-lazy-highlight-... internal
variables whose values lazy highlighting will use regardless of
changes to global variables isearch-string, isearch-regexp,
isearch-case-fold-search during lazy highlighting loop.
(replace-dehighlight): Rename `isearch-lazy-highlight-cleanup'
to `lazy-highlight-cleanup'.
2005-03-18 09:59:45 +00:00
Lute Kamstra
a0b497c53b (query-replace-read-from): Fix 2005-02-19 change. 2005-02-25 11:45:05 +00:00
Dan Nicolaescu
f79bdb3aa2 (query-replace, query-replace-regexp)
(replace-string, replace-regexp): When operating on region, make
the minibuffer prompt say so.
2005-02-19 21:08:43 +00:00
Eli Zaretskii
2511035dc7 (query-replace-read-from): Set the value of
query-replace-from-history-variable to handle the case of an empty
string entered to accept the suggested default.
2005-02-19 13:12:21 +00:00
Richard M. Stallman
d532160fb0 (perform-replace): Pass new args to replace-highlight.
(replace-highlight): Take region args,
and pass them to isearch-lazy-highlight-new-loop.
2005-02-16 09:49:45 +00:00
Kim F. Storm
bf247b6ed0 Change release version from 21.4 to 22.1 throughout.
Change development version from 21.3.50 to 22.0.50.
2005-02-09 15:50:47 +00:00
Richard M. Stallman
9976909669 (occur-accumulate-lines, occur-engine): Avoid warnings. 2005-01-15 18:10:59 +00:00
Juri Linkov
afd33362f4 (query-replace-lazy-highlight): Add lazy-highlight group.
(query-replace-highlight, query-replace-lazy-highlight)
(query-replace): Move definitions to the beginning of the file.
2005-01-11 23:05:16 +00:00
Richard M. Stallman
1766dac37f (query-replace-lazy-highlight): Doc fix.
These were installed in the previous revision:
(replace-dehighlight): Use lazy-highlight-cleanup.
(query-replace-highlight, query-replace-lazy-highlight)
(query-replace): Definitions moved up.
2005-01-04 02:27:16 +00:00
Richard M. Stallman
f42a241b8e (occur-1): If the output buffer is also an input, don't kill it, rename it. 2005-01-01 22:29:54 +00:00
Juri Linkov
2c13e47b06 (occur-accumulate-lines, occur-engine):
Make forcing deferred font-lock fontification jit-specific.
2004-12-17 16:58:54 +00:00
Juri Linkov
f1f007dc5b (occur-accumulate-lines, occur-engine):
Fontify unfontified matching lines in the source buffer
before copying them.
(occur-engine): Don't put mouse-face on context lines.
(occur-next-error): Set point to line beginning/end
before searching for prev/next property to skip multiple
matches on a line (not supported by occur engine).
Remove redundant prefix-numeric-value.
2004-12-16 13:17:32 +00:00
Juri Linkov
aaaecfcda1 (match): New face.
(list-matching-lines-face): Change default from `bold' to `match'.
2004-12-16 07:16:17 +00:00
Juri Linkov
ccec9764dc (perform-replace): Add isearch-case-fold-search.
Use delimited-flag for isearch-regexp.
Reset isearch-lazy-highlight-last-string to force lazy
highlighting when called from isearch mode.
(query-replace-highlight): Revert defcustom type to boolean.
(query-replace-lazy-highlight): New defcustom.
(query-replace): New face.
(perform-replace, replace-highlight, replace-dehighlight):
Test query-replace-lazy-highlight instead of special value
`isearch' of query-replace-highlight.
(replace-dehighlight): Don't call isearch-dehighlight.
(replace-highlight): Don't call isearch-highlight.
Use face `query-replace' unconditionally.
2004-12-15 10:10:54 +00:00