diff options
| author | Richard M. Stallman | 1998-07-03 21:37:43 +0000 |
|---|---|---|
| committer | Richard M. Stallman | 1998-07-03 21:37:43 +0000 |
| commit | e2154af9ff2c33f1fd2a9ab4033a249e43a1db37 (patch) | |
| tree | 126a9ac05c65c471bcd0b6ce05de7c4fad53adaf | |
| parent | 39e7e36ac559499d2a9ee91fe6b3099d1759911b (diff) | |
| download | emacs-e2154af9ff2c33f1fd2a9ab4033a249e43a1db37.tar.gz emacs-e2154af9ff2c33f1fd2a9ab4033a249e43a1db37.zip | |
(derived-mode-hooks-name): Use -hook, not -hooks, in mode hook name.
(derived-mode-hook-name): Renamed from ...-hooks; caller changed.
| -rw-r--r-- | lisp/derived.el | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/lisp/derived.el b/lisp/derived.el index d50ac6d288c..1283b2f5ba8 100644 --- a/lisp/derived.el +++ b/lisp/derived.el | |||
| @@ -74,7 +74,7 @@ | |||
| 74 | ;; default, but may be redefined by the user to contain special | 74 | ;; default, but may be redefined by the user to contain special |
| 75 | ;; commands (ie. setting local variables like 'outline-regexp') | 75 | ;; commands (ie. setting local variables like 'outline-regexp') |
| 76 | ;; **NOTE: do not use this option -- it will soon be obsolete. | 76 | ;; **NOTE: do not use this option -- it will soon be obsolete. |
| 77 | ;; - run anything assigned to 'hypertext-mode-hooks' (obsolete, but | 77 | ;; - run anything assigned to 'hypertext-mode-hook' (obsolete, but |
| 78 | ;; supported for the sake of compatibility). | 78 | ;; supported for the sake of compatibility). |
| 79 | ;; | 79 | ;; |
| 80 | ;; The advantages of this system are threefold. First, text mode is | 80 | ;; The advantages of this system are threefold. First, text mode is |
| @@ -166,7 +166,7 @@ been generated automatically, with a reference to the keymap." | |||
| 166 | ;;; ; any -- this will soon be | 166 | ;;; ; any -- this will soon be |
| 167 | ;;; ; obsolete. | 167 | ;;; ; obsolete. |
| 168 | ;;; (derived-mode-run-setup-function '(, child)) | 168 | ;;; (derived-mode-run-setup-function '(, child)) |
| 169 | ; Run the hooks, if any. | 169 | ; Run the hook, if any. |
| 170 | (derived-mode-run-hooks '(, child)))))) | 170 | (derived-mode-run-hooks '(, child)))))) |
| 171 | 171 | ||
| 172 | 172 | ||
| @@ -187,9 +187,9 @@ Use the `derived-mode-parent' property of the symbol to trace backwards." | |||
| 187 | "Construct a setup-function name based on a mode name." | 187 | "Construct a setup-function name based on a mode name." |
| 188 | (intern (concat (symbol-name mode) "-setup"))) | 188 | (intern (concat (symbol-name mode) "-setup"))) |
| 189 | 189 | ||
| 190 | (defsubst derived-mode-hooks-name (mode) | 190 | (defsubst derived-mode-hook-name (mode) |
| 191 | "Construct a hooks name based on a mode name." | 191 | "Construct the mode hook name based on mode name MODE." |
| 192 | (intern (concat (symbol-name mode) "-hooks"))) | 192 | (intern (concat (symbol-name mode) "-hook"))) |
| 193 | 193 | ||
| 194 | (defsubst derived-mode-map-name (mode) | 194 | (defsubst derived-mode-map-name (mode) |
| 195 | "Construct a map name based on a mode name." | 195 | "Construct a map name based on a mode name." |
| @@ -293,9 +293,9 @@ Always merge its parent into it, since the merge is non-destructive." | |||
| 293 | ;;; (funcall fname)))) | 293 | ;;; (funcall fname)))) |
| 294 | 294 | ||
| 295 | (defun derived-mode-run-hooks (mode) | 295 | (defun derived-mode-run-hooks (mode) |
| 296 | "Run the hooks if they exist." | 296 | "Run the mode hook for MODE." |
| 297 | 297 | ||
| 298 | (let ((hooks-name (derived-mode-hooks-name mode))) | 298 | (let ((hooks-name (derived-mode-hook-name mode))) |
| 299 | (if (boundp hooks-name) | 299 | (if (boundp hooks-name) |
| 300 | (run-hooks hooks-name)))) | 300 | (run-hooks hooks-name)))) |
| 301 | 301 | ||