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


View this message in rfc822 format

From: Jambunathan K <kjambunathan <at> gmail.com>
To: Ben A. <ben.a <at> gmx.us>
Cc: 14979 <at> debbugs.gnu.org
Subject: bug#14979: 24.3; Feature Request: query-replace-backward
Date: Mon, 29 Jul 2013 12:42:49 +0530
Ben A. <ben.a <at> gmx.us> writes:

> Hi,
>
> A feature request: I often make use of query-replace and
> query-replace-regexp.  It would be useful to have a
> query-replace-backward and a query-replace-regexp-backward.  The
> backward variant would be executed when the forward variant is given a
> negative argument.

One way of achieving this with the existing scheme of things is:

  1. M-<
  2. C-x n n
  3. C-M-%
  4. M->
  6. C-x n w

Narrow from beginning of buffer (or a defun or wherever) to point, do
replacement and widen.

(I think) forward searches are more efficient than backward searches
through the buffer.

May I know what is your specific usage scenario?  Are you editing a text
file or a program source?  Why is that you want only backward
replacements and STRICTLY AVOID forward replacements.

>
> Much Appreciation,
> Ben




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.