GNU bug report logs - #52751
27.1; Go back to editing the from part in query replace

Previous Next

Package: emacs;

Reported by: ndame <laszlomail <at> protonmail.com>

Date: Thu, 23 Dec 2021 06:56:01 UTC

Severity: wishlist

Found in version 27.1

Full log


View this message in rfc822 format

From: Daniel Martín <mardani29 <at> yahoo.es>
To: ndame <laszlomail <at> protonmail.com>
Cc: 52751 <at> debbugs.gnu.org
Subject: bug#52751: 27.1; Go back to editing the from part in query replace
Date: Sun, 26 Dec 2021 01:08:36 +0100
ndame <laszlomail <at> protonmail.com> writes:

> I often run into the situation of doing a complicated query
> replace/regexp, submitting the FROM part and then during editing the
> TO part I notice an error in FROM. But I cannot go back there to fix
> it, I can either cancel the replace which deletes the FROM part,
> because it did not yet go into history [...]

The FROM value is stored in history even if you abort the query and
replace without completing it:

emacs -Q
M-% foo RET
C-g
M-% M-p (this should recover "foo").

There's room for improvement, though.  If there are complete query
replace items of the form FROM -> TO, then they are placed before the
FROM entries in the history.  Perhaps there should be a mechanism to
recover those FROM entries from history more quickly.




This bug report was last modified 3 years and 171 days ago.

Previous Next


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