diff options
author | Stefan Monnier <monnier@iro.umontreal.ca> | 2005-03-24 22:17:43 +0000 |
---|---|---|
committer | Stefan Monnier <monnier@iro.umontreal.ca> | 2005-03-24 22:17:43 +0000 |
commit | ffc30f4fa15b023a72bec92df6a54a74a34c094a (patch) | |
tree | 9ae48f246139da2d763a0f319e949742984b6076 /lisp/hilit-chg.el | |
parent | 781da985a74078e9c9178d1fe03557de957e6333 (diff) | |
download | emacs-ffc30f4fa15b023a72bec92df6a54a74a34c094a.tar.gz |
find-file-hooks -> find-file-hook.
Diffstat (limited to 'lisp/hilit-chg.el')
-rw-r--r-- | lisp/hilit-chg.el | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/lisp/hilit-chg.el b/lisp/hilit-chg.el index f670079e7d7..8e84bbf68e2 100644 --- a/lisp/hilit-chg.el +++ b/lisp/hilit-chg.el @@ -993,12 +993,12 @@ changes are made, so \\[highlight-changes-next-change] and ;; Global Highlight Changes mode is modeled after Global Font-lock mode. ;; Three hooks are used to gain control. When Global Changes Mode is -;; enabled, `find-file-hooks' and `change-major-mode-hook' are set. -;; `find-file-hooks' is called when visiting a file, the new mode is +;; enabled, `find-file-hook' and `change-major-mode-hook' are set. +;; `find-file-hook' is called when visiting a file, the new mode is ;; known at this time. ;; `change-major-mode-hook' is called when a buffer is changing mode. ;; This could be because of finding a file in which case -;; `find-file-hooks' has already been called and has done its work. +;; `find-file-hook' has already been called and has done its work. ;; However, it also catches the case where a new mode is being set by ;; the user. However, it is called from `kill-all-variables' and at ;; this time the mode is the old mode, which is not what we want. @@ -1080,18 +1080,18 @@ variable `highlight-changes-global-changes-existing-buffers' is non-nil). (setq global-highlight-changes t) (message "Turning ON Global Highlight Changes mode in %s state" highlight-changes-global-initial-state) - (add-hook 'hilit-chg-major-mode-hook 'hilit-chg-major-mode-hook) - (add-hook 'find-file-hooks 'hilit-chg-check-global) + ;; FIXME: Not sure what this was intended to do. --Stef + ;; (add-hook 'hilit-chg-major-mode-hook 'hilit-chg-major-mode-hook) + (add-hook 'find-file-hook 'hilit-chg-check-global) (if highlight-changes-global-changes-existing-buffers (hilit-chg-update-all-buffers highlight-changes-global-initial-state))) (message "Turning OFF global Highlight Changes mode") - (remove-hook 'hilit-chg-major-mode-hook 'hilit-chg-major-mode-hook) - (remove-hook 'find-file-hooks 'hilit-chg-check-global) - (remove-hook 'post-command-hook - 'hilit-chg-post-command-hook) - (remove-hook 'find-file-hooks 'hilit-chg-check-global) + ;; FIXME: Not sure what this was intended to do. --Stef + ;; (remove-hook 'hilit-chg-major-mode-hook 'hilit-chg-major-mode-hook) + (remove-hook 'post-command-hook 'hilit-chg-post-command-hook) + (remove-hook 'find-file-hook 'hilit-chg-check-global) (if highlight-changes-global-changes-existing-buffers (hilit-chg-update-all-buffers nil)))) |