describe-mode's definition (in
help.el), there's the following piece of code:
;; Older packages do not register in minor-mode-list but only in ;; minor-mode-alist. (dolist (x minor-mode-alist) (setq x (car x)) (unless (memq x minor-mode-list) (push x minor-mode-list)))
How big a concern is this? If I wanted to get a canonical, comprehensive list of minor modes, is it enough to check
minor-mode-list, or is doing the above really necessary?
It's fine to be "on the safe side", but
describe-mode already makes some powerful assumptions, such as that the control variable for a minor mode has the same name as its toggle command (see
define-minor-mode) for more information, so it's a probably not getting "everything" to begin with.