[Top][All Lists]
[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/
- Re: isearch hooks, (continued)
- Re: isearch hooks, Richard Stallman, 2004/06/22
- Re: isearch hooks, Juri Linkov, 2004/06/25
- Re: isearch hooks, Richard Stallman, 2004/06/27
- Re: isearch hooks, Juri Linkov, 2004/06/27
- Re: isearch hooks, Richard Stallman, 2004/06/28
- Re: isearch hooks (was: query-replace-interactive not documented), Stefan, 2004/06/28
- Re: isearch hooks, Juri Linkov, 2004/06/28
Re: query-replace-interactive not documented, Juri Linkov, 2004/06/11
- Re: query-replace-interactive not documented, Kim F. Storm, 2004/06/11
- Re: query-replace-interactive not documented, David Kastrup, 2004/06/11
- Re: query-replace-interactive not documented,
Juri Linkov <=
- Re: query-replace-interactive not documented, Richard Stallman, 2004/06/11
- Re: query-replace-interactive not documented, Juri Linkov, 2004/06/12
- Re: query-replace-interactive not documented, Richard Stallman, 2004/06/12
- Re: query-replace-interactive not documented, Miles Bader, 2004/06/12
- Re: query-replace-interactive not documented, David Kastrup, 2004/06/13
- Re: query-replace-interactive not documented, Richard Stallman, 2004/06/14
- Re: query-replace-interactive not documented, Kim F. Storm, 2004/06/14
- Re: query-replace-interactive not documented, David Kastrup, 2004/06/14
- Re: query-replace-interactive not documented, Juri Linkov, 2004/06/15
- Re: query-replace-interactive not documented, David Kastrup, 2004/06/15