Commit 5f68f6e8 authored by Gerd Moellmann's avatar Gerd Moellmann
Browse files

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

parent b35bd33d
......@@ -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)))
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment