aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDave Love1999-04-27 18:55:02 +0000
committerDave Love1999-04-27 18:55:02 +0000
commita775a63e073631a2b99e897af6f56c394eb9e18d (patch)
treeb889be69eda6254b5f6881f1b510a8973734285b
parent735cb9a35e9b051df64ed86336093c227cce75f0 (diff)
downloademacs-a775a63e073631a2b99e897af6f56c394eb9e18d.tar.gz
emacs-a775a63e073631a2b99e897af6f56c394eb9e18d.zip
(global-font-lock-mode): Doc fix.
-rw-r--r--lisp/font-lock.el6
1 files changed, 3 insertions, 3 deletions
diff --git a/lisp/font-lock.el b/lisp/font-lock.el
index 48c69183ee1..d3498a888a5 100644
--- a/lisp/font-lock.el
+++ b/lisp/font-lock.el
@@ -835,15 +835,15 @@ turned on in a buffer if its major mode is one of `font-lock-global-modes'."
835 (message "Global Font Lock mode %s." (if on-p "enabled" "disabled"))) 835 (message "Global Font Lock mode %s." (if on-p "enabled" "disabled")))
836 (setq global-font-lock-mode on-p))) 836 (setq global-font-lock-mode on-p)))
837 837
838;; Naughty hack. This variable was originally a `defvar' to keep track of 838;; This variable was originally a `defvar' to keep track of
839;; whether Global Font Lock mode was turned on or not. As a `defcustom' with 839;; whether Global Font Lock mode was turned on or not. As a `defcustom' with
840;; special `:set' and `:require' forms, we can provide custom mode control. 840;; special `:set' and `:require' forms, we can provide custom mode control.
841(defcustom global-font-lock-mode nil 841(defcustom global-font-lock-mode nil
842 "Toggle Global Font Lock mode. 842 "Toggle Global Font Lock mode.
843When Global Font Lock mode is enabled, Font Lock mode is automagically 843When Global Font Lock mode is enabled, Font Lock mode is automagically
844turned on in a buffer if its major mode is one of `font-lock-global-modes'. 844turned on in a buffer if its major mode is one of `font-lock-global-modes'.
845This variable should be set only with \\[customize], which is equivalent 845Setting this variable directly does not take effect;
846to using the function `global-font-lock-mode'." 846use either \\[customize] or the function `global-font-lock-mode'."
847 :set (lambda (symbol value) 847 :set (lambda (symbol value)
848 (global-font-lock-mode (or value 0))) 848 (global-font-lock-mode (or value 0)))
849 :type 'boolean 849 :type 'boolean