GNU bug report logs -
#78038
26.3; query-replace
Previous Next
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
On Thu, 24 Apr 2025 09:31:54 +0000 (UTC) Niclas Olsson via "Bug reports for GNU Emacs, the Swiss army knife of text editors" <bug-gnu-emacs <at> gnu.org> wrote:
[...]
> The query-replace (default FROM -> TO) is a major disaster.
> I do not want FROM -> TO suggestions and no matter what I try
> and spend on googling this crap I cant turn it off.
> Have you ever imagined to try out a very long FROM string
> and then want to do another search/replace after???
[...]
> I have tried all setq on the:
>
> query-replace-defaults
> query-replace-from-history-variable
> query-replace-from-to-separator
> query-replace-help
> query-replace-highlight
> query-replace-history
> query-replace-interactive
> query-replace-lazy-highlight
> query-replace-map
> query-replace-show-replacement
> query-replace-skip-read-only
> query-replace-to-history-variable
>
> but I simply cant get rid of the very annoying, totally unnecessary:
> (default FROM -> TO). [...]
Making query-replace-read-from-default return the empty string seems to
work; try adding this to your ~/.emacs file:
(setq query-replace-read-from-default (lambda () (make-string 0 32)))
Steve Berman
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.