]> code.delx.au - gnu-emacs/blobdiff - lisp/hilit-chg.el
(insert-directory): If the df output does not look right,
[gnu-emacs] / lisp / hilit-chg.el
index f2467f55ff44ca5177459a3d0f4654ba0732d99f..357b39b5b45f98be10c4447cc3c50b05d1e8a212 100644 (file)
@@ -7,12 +7,12 @@
 
 ;; 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.
@@ -22,7 +22,6 @@
 ;; Free Software Foundation, Inc., 59 Temple Place - Suite 330,
 ;; Boston, MA 02111-1307, USA.
 
-
 ;;; Commentary:
 
 ;; A minor mode: "Highlight Changes mode".
@@ -293,7 +292,7 @@ t means the buffer is suitable if its name does not begin with ` ' nor
 `*' 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)
@@ -590,7 +589,6 @@ This allows you to manually remove highlighting from uninteresting changes."
     (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 ()
@@ -854,11 +852,11 @@ changes are made, so \\[highlight-changes-next-change] and
     (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)))