GNU bug report logs - #14979
24.3; Feature Request: query-replace-backward

Previous Next

Package: emacs;

Reported by: Ben A. <ben.a <at> gmx.us>

Date: Mon, 29 Jul 2013 06:32:01 UTC

Severity: wishlist

Found in version 24.3

Done: Juri Linkov <juri <at> jurta.org>

Bug is archived. No further changes may be made.

Full log


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

From: Drew Adams <drew.adams <at> oracle.com>
To: "Ben A." <ben.a <at> gmx.us>, Juri Linkov <juri <at> jurta.org>
Cc: Jambunathan K <kjambunathan <at> gmail.com>, 14979 <at> debbugs.gnu.org
Subject: RE: bug#14979: 24.3; Feature Request: query-replace-backward
Date: Sat, 3 Aug 2013 14:24:35 -0700 (PDT)
> > no prefix M-% - normal non-word replacement forwards
> > C-u M-% - word replacement forwards
> > M-- M-% (negative argument) - normal non-word replacement backwards
> > ??? - word replacement backwards
> 
> no prefix M-% - normal non-word replacement forwards
> C-u M-% - word replacement forwards
> M-0 M-% - normal non-word replacement backwards
> M-- M-% - word replacement backwards

I vote against using a prefix arg for anything like this.  There are
better things to use a prefix arg for.

Instead, either choose a different key altogether for backward q-r or
do not bind a key for it at all.

Just one opinion.


FWIW, I bind `M-%' to a command that rolls together these q-r
behaviors:

* No prefix arg: string q-r (like vanilla `query-replace')
* Negative prefix arg: regexp q-r
* Non-negative prefix arg: word q-r (like vanilla `query-replace')




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

Previous Next


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