emacs-devel
[Top][All Lists]
Advanced

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

Re: /etc/TODO: define-minor-mode & minor-mode-list


From: Juanma Barranquero
Subject: Re: /etc/TODO: define-minor-mode & minor-mode-list
Date: Wed, 1 Feb 2012 03:32:48 +0100

On Wed, Feb 1, 2012 at 03:05, William Stevenson <address@hidden> wrote:

> I'm confused about minor-mode-list. Why are some minor-modes added in
> the definition even though they are defined with define-minor-mode?

Likely because these minor modes were converted to use
define-minor-mode, but not removed from minor-mode-list.

> I also found that abbrev-mode remained in the list if it was removed
> from this definition.

define-minor-mode (conditionally) calls add-minor-mode, which does

  (unless (memq toggle minor-mode-list)
    (push toggle minor-mode-list))

so minor modes defined with define-minor-mode will end in the list.
For preloaded minor modes, that's already so:

 emacs -Q --batch --eval "(princ (length minor-mode-list))"  => 30

> Also is this todo considered todone?

There are 300+ instances of "(defun .*-mode " in the sources. Not all
are really modes, and many are major modes, but surely there are still
unconverted minor modes.

    Juanma



reply via email to

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