comparison lisp/subr.el @ 28730:f97e04a68f9f

(add-minor-mode): Use `set' instead of `setq'.
author Gerd Moellmann <gerd@gnu.org>
date Thu, 27 Apr 2000 10:40:58 +0000
parents 6a62e5ca503e
children 6a79bbe8bf72
comparison
equal deleted inserted replaced
28729:466ad2113a59 28730:f97e04a68f9f
1491 SYMBOL is the name of a buffer-local variable that is toggled on 1491 SYMBOL is the name of a buffer-local variable that is toggled on
1492 or off to say whether the minor mode is active or not. NAME is the 1492 or off to say whether the minor mode is active or not. NAME is the
1493 string that will appear in the mode line when the minor mode is 1493 string that will appear in the mode line when the minor mode is
1494 active. Optional MAP is the keymap for the minor mode." 1494 active. Optional MAP is the keymap for the minor mode."
1495 (make-local-variable symbol) 1495 (make-local-variable symbol)
1496 (setq symbol t) 1496 (set symbol t)
1497 (unless (assq symbol minor-mode-alist) 1497 (unless (assq symbol minor-mode-alist)
1498 (add-to-list 'minor-mode-alist (list symbol name))) 1498 (add-to-list 'minor-mode-alist (list symbol name)))
1499 (when (and map (not (assq symbol minor-mode-map-alist))) 1499 (when (and map (not (assq symbol minor-mode-map-alist)))
1500 (add-to-list 'minor-mode-map-alist (cons symbol map)))) 1500 (add-to-list 'minor-mode-map-alist (cons symbol map))))
1501 1501