* bug#15530: swapping replace queries - feature request
@ 2013-10-05 6:51 Andreas Röhler
2013-10-05 14:11 ` Drew Adams
0 siblings, 1 reply; 2+ messages in thread
From: Andreas Röhler @ 2013-10-05 6:51 UTC (permalink / raw)
To: 15530
http://stackoverflow.com/questions/19189213/emacs-swapping-replace-queries
Calling query-replace with C-u could swap the expressions presented initially.
^ permalink raw reply [flat|nested] 2+ messages in thread
* bug#15530: swapping replace queries - feature request
2013-10-05 6:51 bug#15530: swapping replace queries - feature request Andreas Röhler
@ 2013-10-05 14:11 ` Drew Adams
0 siblings, 0 replies; 2+ messages in thread
From: Drew Adams @ 2013-10-05 14:11 UTC (permalink / raw)
To: Andreas Röhler, 15530
> http://stackoverflow.com/questions/19189213/emacs-swapping-replace-queries
> Calling query-replace with C-u could swap the expressions presented
> initially.
Please don't. As was pointed out at that URL: YAGNI. Just use `M-p' a
couple of times. And you only need to reverse them once, to be able to
reuse the reversed order.
Using `C-u' just to reverse previous inputs would be a waste. One can
easily dream up more important uses for a prefix arg for `M-%' here.
(What I do for `M-%' is combine regular q-r, regexp q-r, and word q-r,
distinguishing by prefix arg (regular: none, regexp: 0/+, word: -). Not
saying that's what vanilla Emacs should do - just one example of better
uses for the prefix arg here.)
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2013-10-05 14:11 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-10-05 6:51 bug#15530: swapping replace queries - feature request Andreas Röhler
2013-10-05 14:11 ` Drew Adams
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).