Commit 34befa9a authored by Stefan Monnier's avatar Stefan Monnier
Browse files

(easy-mmode-define-global-mode): Only turn mode off if it's on.

parent ba22aeff
......@@ -270,7 +270,7 @@ in which `%s' turns it on."
;; Go through existing buffers.
(dolist (buf (buffer-list))
(with-current-buffer buf
(if ,global-mode (,turn-on) (,mode -1)))))
(if ,global-mode (,turn-on) (when ,mode (,mode -1))))))
;; Autoloading easy-mmode-define-global-mode
;; autoloads everything up-to-here.
......
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