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

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

Re: List of major modes?


From: David Reitter
Subject: Re: List of major modes?
Date: Fri, 11 Nov 2005 17:56:14 +0000

       (not (assq symbol minor-mode-alist))))

Good idea, but unfortunately minor-mode-alist contains stuff to be shown in the mode-line, so we're not excluding minor modes that don't display anything in the mode line (mouse-wheel-mode for example).

Searching the documentation string (Kevin's idea) won't be reliable, obviously.

Looking for (kill-all-local-variables) in the definition would be another possibility, but who guarantees that this will occur in the mode function definition directly, and not in some function called from there.

The only solution I can see is to patch define-minor-mode - as a last resort.

- D




reply via email to

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