Thanks to Stefan Monnier for pointing this out.
2005-07-15 Juanma Barranquero <lekktu@gmail.com>
- * emacs-lisp/derived.el (derived-mode-run-hooks): Remove.
- (derived-mode-hook-name): Doc fix.
+ * emacs-lisp/derived.el (derived-mode-hook-name): Doc fix.
2005-07-14 Dan Nicolaescu <dann@ics.uci.edu>
(derived-mode-merge-abbrev-tables old-table new-table)
(setq local-abbrev-table new-table)))
+(defun derived-mode-run-hooks (mode)
+ "Run the mode hook for MODE."
+ (let ((hooks-name (derived-mode-hook-name mode)))
+ (if (boundp hooks-name)
+ (run-hooks hooks-name))))
+
;; Functions to merge maps and tables.
(defun derived-mode-merge-keymaps (old new)