branch: master
commit 3858a4e4cd4fa1adb4f5e13362453d5d43c79e5e
Author: mas <mas>
Commit: mas <mas>
(mmm-mode-on-maybe): Conditioned font-lock updating on mmm-mode.
---
mmm-auto.el | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/mmm-auto.el b/mmm-auto.el
index a21b198..115ce7f 100644
--- a/mmm-auto.el
+++ b/mmm-auto.el
@@ -3,7 +3,7 @@
;; Copyright (C) 2000 by Michael Abraham Shulman
;; Author: Michael Abraham Shulman <[email protected]>
-;; Version: $Id: mmm-auto.el,v 1.10 2000/06/30 02:43:01 mas Exp $
+;; Version: $Id: mmm-auto.el,v 1.11 2000/06/30 03:26:48 mas Exp $
;;{{{ GPL
@@ -120,7 +120,8 @@ to apply, or always if `global-mmm-mode' is t."
(cond ((eq mmm-global-mode t) (mmm-mode-on))
((not mmm-global-mode))
((mmm-get-all-classes nil) (mmm-mode-on)))
- (mmm-update-font-lock-buffer))
+ (when mmm-mode
+ (mmm-update-font-lock-buffer)))
(add-hook 'mmm-major-mode-hook 'mmm-mode-on-maybe)