[Top][All Lists]

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

Re: isearch-query-replace-regexp and stuff

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

David Kastrup <address@hidden> writes:

> 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.


While we are at it: maybe M-s should turn an ordinary search into a
regexp search (while regexp-quoting the current search string to make
it fitting for a regexp search), and vice versa (by using the
currently matched string, if any, as search string).

David Kastrup, Kriemhildstr. 15, 44793 Bochum

reply via email to

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