(easy-mmode-define-global-mode): Only turn mode off if it's on.
This commit is contained in:
parent
ba22aeff64
commit
34befa9a5b
1 changed files with 1 additions and 1 deletions
|
@ -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.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue