emacs-devel
[Top][All Lists]
Advanced

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

Re: query-replace-interactive not documented


From: Juri Linkov
Subject: Re: query-replace-interactive not documented
Date: Sat, 12 Jun 2004 11:21:35 +0300
User-agent: Gnus/5.110002 (No Gnus v0.2) Emacs/21.3.50 (gnu/linux)

David Kastrup <address@hidden> writes:
> Juri Linkov <address@hidden> writes:
>> How about typing a special key (say, `M-e', where "e" stands for
>> "eval" or "expression") in the second prompt for a replacement string
>> to switch it to expression reading mode, and after typing RET
>> to call `query-replace-regexp-eval' instead of `query-replace-regexp'.
>> Actually, this means typing:
>> 
>> C-M-% from-string RET M-e to-expr RET
>
> This has the advantage that if one starts out with a replacement, and
> then figures that the replacement string needs to be as complicated
> as to have to be specified in Lisp, one does not need to abandon the
> already started replacement.
>
> Actually, I find myself doing this sort of starting over from M-% not
> too rarely.  So perhaps we should apply this
> switch-type-of-replacement keybinding idea also to query-replace.

The most natural keybinding for this would be M-r (like in isearch mode),
but unfortunately it can't be used because this key is already bound
in the minibuffer to the command that finds the previous history element.

-- 
Juri Linkov
http://www.jurta.org/emacs/





reply via email to

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