Mercurial > emacs
changeset 33165:8b3f1e99c11a
(easy-mmode-define-global-mode): Only turn mode off if it's on.
author | Stefan Monnier <monnier@iro.umontreal.ca> |
---|---|
date | Fri, 03 Nov 2000 04:38:41 +0000 |
parents | 3eb6a5731562 |
children | 61e62bc5bd7f |
files | lisp/emacs-lisp/easy-mmode.el |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/lisp/emacs-lisp/easy-mmode.el Fri Nov 03 04:32:33 2000 +0000 +++ b/lisp/emacs-lisp/easy-mmode.el Fri Nov 03 04:38:41 2000 +0000 @@ -270,7 +270,7 @@ ;; 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.