GNU bug report logs - #15530
swapping replace queries - feature request

Previous Next

Package: emacs;

Reported by: Andreas Röhler <andreas.roehler <at> easy-emacs.de>

Date: Sat, 5 Oct 2013 06:50:01 UTC

Severity: wishlist

Tags: wontfix

Done: Lars Ingebrigtsen <larsi <at> gnus.org>

Bug is archived. No further changes may be made.

Full log


Message #8 received at 15530 <at> debbugs.gnu.org (full text, mbox):

From: Drew Adams <drew.adams <at> oracle.com>
To: Andreas Röhler <andreas.roehler <at> easy-emacs.de>,
 15530 <at> debbugs.gnu.org
Subject: RE: bug#15530: swapping replace queries - feature request
Date: Sat, 5 Oct 2013 07:11:57 -0700 (PDT)
> 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.)




This bug report was last modified 11 years and 117 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.