emacs-devel
[Top][All Lists]
Advanced

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

Re: Smarter M-x that filters on major-mode


From: Robert Pluim
Subject: Re: Smarter M-x that filters on major-mode
Date: Fri, 12 Feb 2021 11:47:04 +0100

>>>>> On Fri, 12 Feb 2021 11:29:19 +0100, Lars Ingebrigtsen <larsi@gnus.org> 
>>>>> said:
    Lars> On the other hand, this could go into the `command' spec, if only we 
had
    Lars> a way to distinguish minor modes from major modes, which...  we don't
    Lars> seem to have?  But we could have: `define-minor-mode' could `put' some
    Lars> property on the mode symbol to say that, indeed, it's a minor mode.

'minor-mode-list'?

    Lars> Which could also conceivably be useful in other situations.

If you make changes here, could you arrange for some (buffer-local?)
symbol somewhere to be updated when a minor mode is activated?
Figuring out which minor modes are in effect is currently non-trivial.

Robert



reply via email to

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