;; This file is part of GNU Emacs.
-;; This program is free software; you can redistribute it and/or modify
+;; GNU Emacs is free software; you can redistribute it and/or modify
;; it under the terms of the GNU General Public License as published by
;; the Free Software Foundation; either version 2, or (at your option)
;; any later version.
-;; This program is distributed in the hope that it will be useful,
+;; GNU Emacs is distributed in the hope that it will be useful,
;; but WITHOUT ANY WARRANTY; without even the implied warranty of
;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
;; GNU General Public License for more details.
;; Free Software Foundation, Inc., 59 Temple Place - Suite 330,
;; Boston, MA 02111-1307, USA.
-
;;; Commentary:
;; A minor mode: "Highlight Changes mode".
`*' 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)))