emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

isearch-query-replace-regexp and stuff


From: David Kastrup
Subject: isearch-query-replace-regexp and stuff
Date: 02 Jul 2004 01:18:36 +0200
User-agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.3.50

As far as I am able to judge from the current code that is just
checked in, if one types M-% from within a regexp isearch or C-M-%
from within an ordinary isearch, the history variable of the last
irrelevant search type gets consulted.

That seems weird.  I think that M-% from within a regexp isearch
should probably use the currently matched string, and C-M-% from
within an ordinary isearch should probably use regexp-quote of the
current search string.

I have no brilliant idea of what to do if we type M-% in a regexp
isearch and there is no currently matched string.  Probably just beep
and refuse, which would also be the sanest option if the regexp is
currently incomplete.  Of course, if query-replace-interactive is
'initial, one might possibly just provide an empty string as initial
value (leaving the history in peace), and if it is nil, we need not
bother anyhow.

-- 
David Kastrup, Kriemhildstr. 15, 44793 Bochum




reply via email to

[Prev in Thread] Current Thread [Next in Thread]