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: Lars Ingebrigtsen
Subject: Re: Smarter M-x that filters on major-mode
Date: Sat, 13 Feb 2021 12:44:09 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux)

Robert Pluim <rpluim@gmail.com> writes:

> I think that docstring is misleading: define-minor-mode calls
> add-minor-mode, and thus ends up updating minor-mode-list. It would be
> nice if we could rely on that.

Right.  I'll fix up the doc string.

>     Lars> That does sound like a useful thing...  Since the major mode is
>     Lars> determined by the `major-mode' variable, what about a new
>     Lars> permanently-local variable `minor-modes'?
>     Lars> `define-minor-mode' would be
>     Lars> responsible for adding/removing itself to the variable.
>
> You mean the enable/disable function for the minor mode created by
> define-minor-mode?

Yup.

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no



reply via email to

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