aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRichard M. Stallman <[email protected]>1998-07-03 21:37:43 +0000
committerRichard M. Stallman <[email protected]>1998-07-03 21:37:43 +0000
commite2154af9ff2c33f1fd2a9ab4033a249e43a1db37 (patch)
tree126a9ac05c65c471bcd0b6ce05de7c4fad53adaf
parent39e7e36ac559499d2a9ee91fe6b3099d1759911b (diff)
(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.el14
1 files changed, 7 insertions, 7 deletions
diff --git a/lisp/derived.el b/lisp/derived.el
index d50ac6d288..1283b2f5ba 100644
--- a/lisp/derived.el
+++ b/lisp/derived.el
@@ -74,7 +74,7 @@
;; default, but may be redefined by the user to contain special
;; commands (ie. setting local variables like 'outline-regexp')
;; **NOTE: do not use this option -- it will soon be obsolete.
-;; - run anything assigned to 'hypertext-mode-hooks' (obsolete, but
+;; - run anything assigned to 'hypertext-mode-hook' (obsolete, but
;; supported for the sake of compatibility).
;;
;; The advantages of this system are threefold. First, text mode is
@@ -166,7 +166,7 @@ been generated automatically, with a reference to the keymap."
;;; ; any -- this will soon be
;;; ; obsolete.
;;; (derived-mode-run-setup-function '(, child))
- ; Run the hooks, if any.
+ ; Run the hook, if any.
(derived-mode-run-hooks '(, child))))))
@@ -187,9 +187,9 @@ Use the `derived-mode-parent' property of the symbol to trace backwards."
"Construct a setup-function name based on a mode name."
(intern (concat (symbol-name mode) "-setup")))
-(defsubst derived-mode-hooks-name (mode)
- "Construct a hooks name based on a mode name."
- (intern (concat (symbol-name mode) "-hooks")))
+(defsubst derived-mode-hook-name (mode)
+ "Construct the mode hook name based on mode name MODE."
+ (intern (concat (symbol-name mode) "-hook")))
(defsubst derived-mode-map-name (mode)
"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."
;;; (funcall fname))))
(defun derived-mode-run-hooks (mode)
- "Run the hooks if they exist."
+ "Run the mode hook for MODE."
- (let ((hooks-name (derived-mode-hooks-name mode)))
+ (let ((hooks-name (derived-mode-hook-name mode)))
(if (boundp hooks-name)
(run-hooks hooks-name))))