1
0
mirror of https://git.savannah.gnu.org/git/emacs.git synced 2024-11-30 08:09:04 +00:00

(add-minor-mode): Use set' instead of setq'.

This commit is contained in:
Gerd Moellmann 2000-04-27 10:40:58 +00:00
parent b35bd33d35
commit 5f68f6e85a

View File

@ -1493,7 +1493,7 @@ or off to say whether the minor mode is active or not. NAME is the
string that will appear in the mode line when the minor mode is
active. Optional MAP is the keymap for the minor mode."
(make-local-variable symbol)
(setq symbol t)
(set symbol t)
(unless (assq symbol minor-mode-alist)
(add-to-list 'minor-mode-alist (list symbol name)))
(when (and map (not (assq symbol minor-mode-map-alist)))