# HG changeset patch # User Juanma Barranquero # Date 1121416561 0 # Node ID 92e5d9e433d309bbdba498b31e47dc37753482f7 # Parent d865cbe4d2b9a738325a53ecb3f90e400be0c214 (derived-mode-run-hooks): Reinstalled, as it is needed for pre-21 compatibility. Thanks to Stefan Monnier for pointing this out. diff -r d865cbe4d2b9 -r 92e5d9e433d3 lisp/emacs-lisp/derived.el --- a/lisp/emacs-lisp/derived.el Fri Jul 15 05:12:19 2005 +0000 +++ b/lisp/emacs-lisp/derived.el Fri Jul 15 08:36:01 2005 +0000 @@ -382,6 +382,12 @@ (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)