[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: replace history
From: |
Juri Linkov |
Subject: |
Re: replace history |
Date: |
Thu, 27 Dec 2007 22:14:41 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/23.0.50 (gnu/linux) |
>> > In Emacs 22 it's great the way that you are given the last
>> > search/replace pair as a default for query-replace, but is there a way
>> > to get a history of pairs rather than alternating search item/replace
>> > item?
>>
>> There isn't. I would also love to have such a feature. Bound for example
>> to C-M-p and C-M-n
>
> FWIW I would also love this feature.
>
> Another idea: make `C-u M-x query-replace' *reverse* the default pair.
The prefix argument of `query-replace' is already assigned to the
delimited meaning to replace matches surrounded by word boundaries.
To reverse the last two query-replace history elements you already can use
`M-% M-p RET M-p M-p M-p RET'.
> This would be useful to undo a replacement.
Isn't the undo command a much easier way to undo the last replacement?
--
Juri Linkov
http://www.jurta.org/emacs/