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: Fri, 26 Mar 2021 00:12:21 +0200
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.7.1

On 25.03.2021 23:28, Juri Linkov wrote:
Some commands already use variable *-history-variable, so adding
project-regexp-history-variable wouldn't cause a new precedent.
Could you give an example?
What I tried is C-h v *-history-variable TAB

   minibuffer-history-variable
   query-replace-from-history-variable
   query-replace-to-history-variable
   y-or-n-p-history-variable

Maybe other commands use another suffix (probably not).

That's what my search has shown, too: a few instances, all from pretty high-level features.

And ideally, we should be also able to answer the question why some
packages have their own variables, and others have "-variable variables".
I don't know.

If it's just historical reasons, as it often is, maybe

   (defvar project-regexp-history-variable 'grep-regexp-history)

will be good enough.
This would a good thing to do.

Let's go with this one, then. At least for now.

Meaning, your patch plus a change of the default value to 'grep-regexp-history.

Thank you.





reply via email to

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