comparison lisp/font-lock.el @ 24641:93b7e7e88a80

(global-font-lock-mode): Doc fix.
author Dave Love <fx@gnu.org>
date Tue, 27 Apr 1999 18:55:02 +0000
parents d0b40f823255
children 3bd2587c0639
comparison
equal deleted inserted replaced
24640:885873f5d65b 24641:93b7e7e88a80
833 (buffer-list)))) 833 (buffer-list))))
834 (when message 834 (when message
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.
843 When Global Font Lock mode is enabled, Font Lock mode is automagically 843 When Global Font Lock mode is enabled, Font Lock mode is automagically
844 turned on in a buffer if its major mode is one of `font-lock-global-modes'. 844 turned on in a buffer if its major mode is one of `font-lock-global-modes'.
845 This variable should be set only with \\[customize], which is equivalent 845 Setting this variable directly does not take effect;
846 to using the function `global-font-lock-mode'." 846 use 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
850 :group 'font-lock 850 :group 'font-lock
851 :require 'font-lock) 851 :require 'font-lock)