bug-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#47012: xref copies keymap properties to minibuffer


From: Dmitry Gutov
Subject: bug#47012: xref copies keymap properties to minibuffer
Date: Wed, 24 Mar 2021 23:57:06 +0200
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.7.1

On 24.03.2021 22:38, Juri Linkov wrote:
Actually, can't do this without feature request,
and can't use it as is, because never use regexp
while searching in project, whereas it pollutes
the regexp history for commands where I really
use regexps, not just strings.

A simple patch could be a saver to use with e.g.
(setq project-regexp-history-variable 'minibuffer-history):

Hi!

The idea makes sense, but perhaps we shouldn't add one more way of doing this and just copy what grep-read-regexp does. Meaning, define a project-specific var and then use it. We could use 'grep-regexp-history there too, as another alternative.

But having a var called project-regexp-history seems more powerful, and even no less powerful than your suggested approach, because one can always turn that variable into a defalias, if they so wish.

(I often use regexps when searching in project, but this change doesn't seem problematic for this usage either.)





reply via email to

[Prev in Thread] Current Thread [Next in Thread]