emacs-devel
[Top][All Lists]
Advanced

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

Re: History for query replace pairs


From: Stefan Monnier
Subject: Re: History for query replace pairs
Date: Tue, 21 Oct 2014 14:23:04 -0400
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/25.0.50 (gnu/linux)

> But the main question in both cases which key to use to browse FROM-TO pairs
> from the minibuffer's history?  It seems both M-p and <up> should still get
> either FROM or TO from the history one by one, so it would be easy to reuse
> a previous TO for the FROM part (to invert replacements).  What about <M-up>?

The only thing that makes sense is to get the pairs via M-p/M-n and
up/down.  Of course, that clashes with the current behavior and hence
prevents access to "TO-history" in the FROM case and to "FROM-history"
in the TO case.

But if we only do that for the FROM prompt (which is already a "FROM or
FROM/TO pair" because of the behavior in case you just hit RET, and
would turn even more clearly into a "FROM or FROM/TO pair"), I don't
think it's that bad:
- You still have access to the "TO-history" in the FROM case, indirectly
  (by browsing the corresponding FROM/TO pair and erasing the FROM and
  the separator).
- You still have access to the FROM-history in the TO case, just as before.


        Stefan



reply via email to

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