add-minor-mode doc string clarification

* lisp/subr.el (add-minor-mode): Clarify that this function isn't
only about XEmacs compat stuff.
This commit is contained in:
Lars Ingebrigtsen 2021-02-13 12:46:34 +01:00
parent 06639a4ab2
commit aefdde9636

View file

@ -2318,7 +2318,8 @@ tho trying to avoid AVOIDED-MODES."
(defun add-minor-mode (toggle name &optional keymap after toggle-fun)
"Register a new minor mode.
This is an XEmacs-compatibility function. Use `define-minor-mode' instead.
This function shouldn't be used directly -- use `define-minor-mode'
instead (which will then call this function).
TOGGLE is a symbol that is the name of a buffer-local variable that
is toggled on or off to say whether the minor mode is active or not.