From: Lars Ingebrigtsen Date: Sat, 13 Feb 2021 11:46:34 +0000 (+0100) Subject: add-minor-mode doc string clarification X-Git-Tag: emacs-28.0.90~3773 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=aefdde96367ba38dbff8fa1761f44d5534fccaba;p=emacs.git add-minor-mode doc string clarification * lisp/subr.el (add-minor-mode): Clarify that this function isn't only about XEmacs compat stuff. --- diff --git a/lisp/subr.el b/lisp/subr.el index 70ee281fe6e..d215bd29a91 100644 --- a/lisp/subr.el +++ b/lisp/subr.el @@ -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.