diff options
| author | Stefan Monnier | 2002-08-15 00:48:20 +0000 |
|---|---|---|
| committer | Stefan Monnier | 2002-08-15 00:48:20 +0000 |
| commit | 1a4914f3407207b69a7ec96cec337fdc5125f3cf (patch) | |
| tree | a726f7d2779720159849d180df96572837440789 | |
| parent | 067723639234bf58eeb593b7e38e6e7bb43af9d3 (diff) | |
| download | emacs-1a4914f3407207b69a7ec96cec337fdc5125f3cf.tar.gz emacs-1a4914f3407207b69a7ec96cec337fdc5125f3cf.zip | |
Use find-file-hook instead of find-file-hooks.
| -rw-r--r-- | lisp/elide-head.el | 4 | ||||
| -rw-r--r-- | lisp/font-core.el | 2 | ||||
| -rw-r--r-- | lisp/obsolete/hilit19.el | 2 | ||||
| -rw-r--r-- | lisp/play/meese.el | 2 | ||||
| -rw-r--r-- | lisp/saveplace.el | 2 | ||||
| -rw-r--r-- | lisp/smerge-mode.el | 4 | ||||
| -rw-r--r-- | lisp/uniquify.el | 2 | ||||
| -rw-r--r-- | lisp/which-func.el | 4 |
8 files changed, 11 insertions, 11 deletions
diff --git a/lisp/elide-head.el b/lisp/elide-head.el index 9a23e622c45..cae63481d14 100644 --- a/lisp/elide-head.el +++ b/lisp/elide-head.el | |||
| @@ -33,7 +33,7 @@ | |||
| 33 | ;; elision. | 33 | ;; elision. |
| 34 | 34 | ||
| 35 | ;; You might add `elide-head' to appropriate major mode hooks or to | 35 | ;; You might add `elide-head' to appropriate major mode hooks or to |
| 36 | ;; `find-file-hooks'. Please do not do this in site init files. If | 36 | ;; `find-file-hook'. Please do not do this in site init files. If |
| 37 | ;; you do, information may be hidden from users who don't know it | 37 | ;; you do, information may be hidden from users who don't know it |
| 38 | ;; already. | 38 | ;; already. |
| 39 | 39 | ||
| @@ -78,7 +78,7 @@ cdr." | |||
| 78 | The header is made invisible with an overlay. With a prefix arg, show | 78 | The header is made invisible with an overlay. With a prefix arg, show |
| 79 | an elided material again. | 79 | an elided material again. |
| 80 | 80 | ||
| 81 | This is suitable as an entry on `find-file-hooks' or appropriate mode hooks." | 81 | This is suitable as an entry on `find-file-hook' or appropriate mode hooks." |
| 82 | (interactive "P") | 82 | (interactive "P") |
| 83 | (if arg | 83 | (if arg |
| 84 | (elide-head-show) | 84 | (elide-head-show) |
diff --git a/lisp/font-core.el b/lisp/font-core.el index cf5e29d9eef..ff0bec65902 100644 --- a/lisp/font-core.el +++ b/lisp/font-core.el | |||
| @@ -290,7 +290,7 @@ Sets various variables using `font-lock-defaults' (or, if nil, using | |||
| 290 | ;; hook is run, the major mode is in the process of being changed and we do not | 290 | ;; hook is run, the major mode is in the process of being changed and we do not |
| 291 | ;; know what the final major mode will be. So, `font-lock-change-major-mode' | 291 | ;; know what the final major mode will be. So, `font-lock-change-major-mode' |
| 292 | ;; only (a) notes the name of the current buffer, and (b) adds our function | 292 | ;; only (a) notes the name of the current buffer, and (b) adds our function |
| 293 | ;; `turn-on-font-lock-if-enabled' to the hook variables `find-file-hooks' and | 293 | ;; `turn-on-font-lock-if-enabled' to the hook variables `find-file-hook' and |
| 294 | ;; `post-command-hook' (for buffers that are not visiting files). By the time | 294 | ;; `post-command-hook' (for buffers that are not visiting files). By the time |
| 295 | ;; the functions on the first of these hooks to be run are run, the new major | 295 | ;; the functions on the first of these hooks to be run are run, the new major |
| 296 | ;; mode is assumed to be in place. This way we get a Font Lock function run | 296 | ;; mode is assumed to be in place. This way we get a Font Lock function run |
diff --git a/lisp/obsolete/hilit19.el b/lisp/obsolete/hilit19.el index 305838eea26..bc06583c694 100644 --- a/lisp/obsolete/hilit19.el +++ b/lisp/obsolete/hilit19.el | |||
| @@ -956,7 +956,7 @@ the entire buffer is forced." | |||
| 956 | 956 | ||
| 957 | (global-set-key [?\C-\S-l] 'hilit-repaint-command) | 957 | (global-set-key [?\C-\S-l] 'hilit-repaint-command) |
| 958 | 958 | ||
| 959 | (add-hook 'find-file-hooks 'hilit-find-file-hook t) | 959 | (add-hook 'find-file-hook 'hilit-find-file-hook t) |
| 960 | 960 | ||
| 961 | (eval-when-compile (require 'gnus)) ; no compilation gripes | 961 | (eval-when-compile (require 'gnus)) ; no compilation gripes |
| 962 | 962 | ||
diff --git a/lisp/play/meese.el b/lisp/play/meese.el index 30793af6db7..d811dacb9bc 100644 --- a/lisp/play/meese.el +++ b/lisp/play/meese.el | |||
| @@ -31,7 +31,7 @@ | |||
| 31 | (insert-file-contents buffer-file-name t)) | 31 | (insert-file-contents buffer-file-name t)) |
| 32 | (rename-buffer (file-name-nondirectory buffer-file-name)))))) | 32 | (rename-buffer (file-name-nondirectory buffer-file-name)))))) |
| 33 | 33 | ||
| 34 | (add-hook 'find-file-hooks 'protect-innocence-hook) | 34 | (add-hook 'find-file-hook 'protect-innocence-hook) |
| 35 | (provide 'meese) | 35 | (provide 'meese) |
| 36 | 36 | ||
| 37 | ;;; meese.el ends here | 37 | ;;; meese.el ends here |
diff --git a/lisp/saveplace.el b/lisp/saveplace.el index 2b4a8184640..f3b99e6cdd8 100644 --- a/lisp/saveplace.el +++ b/lisp/saveplace.el | |||
| @@ -230,7 +230,7 @@ To save places automatically in all files, put this in your `.emacs' file: | |||
| 230 | (if save-place-loaded | 230 | (if save-place-loaded |
| 231 | (save-place-alist-to-file))) | 231 | (save-place-alist-to-file))) |
| 232 | 232 | ||
| 233 | (add-hook 'find-file-hooks 'save-place-find-file-hook t) | 233 | (add-hook 'find-file-hook 'save-place-find-file-hook t) |
| 234 | 234 | ||
| 235 | (add-hook 'kill-emacs-hook 'save-place-kill-emacs-hook) | 235 | (add-hook 'kill-emacs-hook 'save-place-kill-emacs-hook) |
| 236 | 236 | ||
diff --git a/lisp/smerge-mode.el b/lisp/smerge-mode.el index 5ce9328048d..83c2d6cb1ca 100644 --- a/lisp/smerge-mode.el +++ b/lisp/smerge-mode.el | |||
| @@ -4,7 +4,7 @@ | |||
| 4 | 4 | ||
| 5 | ;; Author: Stefan Monnier <monnier@cs.yale.edu> | 5 | ;; Author: Stefan Monnier <monnier@cs.yale.edu> |
| 6 | ;; Keywords: merge diff3 cvs conflict | 6 | ;; Keywords: merge diff3 cvs conflict |
| 7 | ;; Revision: $Id: smerge-mode.el,v 1.14 2001/07/31 08:28:43 gerd Exp $ | 7 | ;; Revision: $Id: smerge-mode.el,v 1.15 2001/11/15 01:25:35 monnier Exp $ |
| 8 | 8 | ||
| 9 | ;; This file is part of GNU Emacs. | 9 | ;; This file is part of GNU Emacs. |
| 10 | 10 | ||
| @@ -38,7 +38,7 @@ | |||
| 38 | ;; (goto-char (point-min)) | 38 | ;; (goto-char (point-min)) |
| 39 | ;; (when (re-search-forward "^<<<<<<< " nil t) | 39 | ;; (when (re-search-forward "^<<<<<<< " nil t) |
| 40 | ;; (smerge-mode 1)))) | 40 | ;; (smerge-mode 1)))) |
| 41 | ;; (add-hook 'find-file-hooks 'sm-try-smerge t) | 41 | ;; (add-hook 'find-file-hook 'sm-try-smerge t) |
| 42 | 42 | ||
| 43 | ;;; Todo: | 43 | ;;; Todo: |
| 44 | 44 | ||
diff --git a/lisp/uniquify.el b/lisp/uniquify.el index 88f513de32c..de5a2a231f2 100644 --- a/lisp/uniquify.el +++ b/lisp/uniquify.el | |||
| @@ -352,7 +352,7 @@ in `uniquify-list-buffers-directory-modes', otherwise returns nil." | |||
| 352 | ;; generate-new-buffer, which is called only by Lisp functions | 352 | ;; generate-new-buffer, which is called only by Lisp functions |
| 353 | ;; create-file-buffer and rename-uniquely. Rename-uniquely generally | 353 | ;; create-file-buffer and rename-uniquely. Rename-uniquely generally |
| 354 | ;; isn't used for buffers visiting files, so it's sufficient to hook | 354 | ;; isn't used for buffers visiting files, so it's sufficient to hook |
| 355 | ;; rename-buffer and create-file-buffer. (Setting find-file-hooks isn't | 355 | ;; rename-buffer and create-file-buffer. (Setting find-file-hook isn't |
| 356 | ;; sufficient.) | 356 | ;; sufficient.) |
| 357 | 357 | ||
| 358 | (defadvice rename-buffer (after rename-buffer-uniquify activate) | 358 | (defadvice rename-buffer (after rename-buffer-uniquify activate) |
diff --git a/lisp/which-func.el b/lisp/which-func.el index c594945d89e..aba47b964e4 100644 --- a/lisp/which-func.el +++ b/lisp/which-func.el | |||
| @@ -58,7 +58,7 @@ | |||
| 58 | ;; Peter Eisenhauer <pipe@fzi.de> | 58 | ;; Peter Eisenhauer <pipe@fzi.de> |
| 59 | ;; Bug fixing in case nested indexes. | 59 | ;; Bug fixing in case nested indexes. |
| 60 | ;; Terry Tateyama <ttt@ursa0.cs.utah.edu> | 60 | ;; Terry Tateyama <ttt@ursa0.cs.utah.edu> |
| 61 | ;; Suggestion to use find-file-hooks for first imenu | 61 | ;; Suggestion to use find-file-hook for first imenu |
| 62 | ;; index building. | 62 | ;; index building. |
| 63 | 63 | ||
| 64 | ;;; Code: | 64 | ;;; Code: |
| @@ -131,7 +131,7 @@ This makes a difference only if `which-function-mode' is non-nil.") | |||
| 131 | (make-variable-buffer-local 'which-func-mode) | 131 | (make-variable-buffer-local 'which-func-mode) |
| 132 | ;;(put 'which-func-mode 'permanent-local t) | 132 | ;;(put 'which-func-mode 'permanent-local t) |
| 133 | 133 | ||
| 134 | (add-hook 'find-file-hooks 'which-func-ff-hook t) | 134 | (add-hook 'find-file-hook 'which-func-ff-hook t) |
| 135 | 135 | ||
| 136 | (defun which-func-ff-hook () | 136 | (defun which-func-ff-hook () |
| 137 | "File find hook for Which Function mode. | 137 | "File find hook for Which Function mode. |