`*' and the buffer has a filename.
A value of nil means no buffers are suitable for `global-highlight-changes'
-(effectively disabling the mode).
+\(effectively disabling the mode).
Examples:
(c-mode c++-mode)
(or buffer-read-only
(hilit-chg-hide-changes)))
(force-mode-line-update)
- (make-local-hook 'after-change-functions)
(add-hook 'after-change-functions 'hilit-chg-set-face-on-change nil t))
(defun hilit-chg-clear ()
(if (buffer-modified-p buf-a)
(if (y-or-n-p (format "OK to save %s? " file-a))
(save-buffer buf-a)
- (error "Buffer must be saved before comparing with a file.")))
+ (error "Buffer must be saved before comparing with a file")))
(if (and existing-buf (buffer-modified-p buf-b))
(if (y-or-n-p (format "OK to save %s? " file-b))
(save-buffer buf-b)
- (error "Cannot compare with a file in an unsaved buffer.")))
+ (error "Cannot compare with a file in an unsaved buffer")))
(highlight-changes-mode 'active)
(if existing-buf (with-current-buffer buf-b
(highlight-changes-mode 'active)))