]> git.eshelyaron.com Git - emacs.git/commitdiff
(easy-mmode-define-global-mode): Only turn mode off if it's on.
authorStefan Monnier <monnier@iro.umontreal.ca>
Fri, 3 Nov 2000 04:38:41 +0000 (04:38 +0000)
committerStefan Monnier <monnier@iro.umontreal.ca>
Fri, 3 Nov 2000 04:38:41 +0000 (04:38 +0000)
lisp/emacs-lisp/easy-mmode.el

index 4d6897fc1d51f1ff5499c4b66f1586efe9d820b1..00a941c81b9c395dfed1bed81b030e2c7a75547c 100644 (file)
@@ -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.