GNU bug report logs - #78038
26.3; query-replace

Previous Next

Package: emacs;

Reported by: Niclas Olsson <olsson_lund <at> yahoo.com>

Date: Thu, 24 Apr 2025 14:41:03 UTC

Severity: normal

Found in version 26.3

Done: Eli Zaretskii <eliz <at> gnu.org>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: Niclas Olsson <olsson_lund <at> yahoo.com>
To: 78038 <at> debbugs.gnu.org, manuel <at> ledu-giraud.fr
Subject: bug#78038: 26.3; query-replace
Date: Fri, 25 Apr 2025 08:10:40 +0000 (UTC)
[Message part 1 (text/plain, inline)]
 Hi gnu/emacs!
Thanks a lot for the quick reply I got. I have tried out both:
(setq query-replace-read-from-default (lambda () ""))
and the 
(setq query-replace-read-from-default (lambda () (make-string 0 32)))
Unfortunately the irritating (default FROM -> TO) still shows...I also did try to read and follow the code but limited in LISP knowledge and I didn't find anything which I didn't already try.
It is rather strange a simple disable variable was missed to implement.
This show another aspect of the problem with the current and rather strange implementation:https://emacs.stackexchange.com/questions/19844/how-to-cancel-the-default-in-replace-string
It is like emacs is leaving the unix way to keep things simple.
/Regards Niclas Olsson, Sweden
    Den torsdag 24 april 2025 kl. 18:13:43 CEST, Manuel Giraud <manuel <at> ledu-giraud.fr> skrev:  
 
 Niclas Olsson via "Bug reports for GNU Emacs, the Swiss army knife of
text editors" <bug-gnu-emacs <at> gnu.org> writes:

> Hi gnu/emacs,

[...]

> I have tried all setq on the:

[...]

Hi,

It seems that setting the following does what you want:

(setq query-replace-read-from-default (lambda () ""))

I found this by reading the code since it is not a well documented
custom.  Maybe, we should have one (?)
-- 
Manuel Giraud
  
[Message part 2 (text/html, inline)]

This bug report was last modified 52 days ago.

Previous Next


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