Function: highlight-changes-mode-turn-on
highlight-changes-mode-turn-on is a byte-compiled function defined in
hilit-chg.el.gz.
Signature
(highlight-changes-mode-turn-on)
Documentation
See if Highlight Changes mode should be turned on for this buffer.
This is called when global-highlight-changes-mode(var)/global-highlight-changes-mode(fun) is turned on.
Source Code
;; Defined in /usr/src/emacs/lisp/hilit-chg.el.gz
(defun highlight-changes-mode-turn-on ()
"See if Highlight Changes mode should be turned on for this buffer.
This is called when `global-highlight-changes-mode' is turned on."
(or highlight-changes-mode ; do nothing if already on
(if
(cond
((null highlight-changes-global-modes)
nil)
((functionp highlight-changes-global-modes)
(funcall highlight-changes-global-modes))
((listp highlight-changes-global-modes)
(if (eq (car-safe highlight-changes-global-modes) 'not)
(not (memq major-mode (cdr highlight-changes-global-modes)))
(memq major-mode highlight-changes-global-modes)))
(t
(and
(not (string-match "^[ *]" (buffer-name)))
(buffer-file-name))))
(highlight-changes-mode 1))))