summaryrefslogtreecommitdiff
path: root/lisp/emacs-lisp
diff options
context:
space:
mode:
authorJuanma Barranquero <lekktu@gmail.com>2005-07-15 08:39:57 +0000
committerJuanma Barranquero <lekktu@gmail.com>2005-07-15 08:39:57 +0000
commit3c8dd9b99335f8822c67c480fb0693d8867863b4 (patch)
treecf3ab8fee1a2511488eb2779f2f960606180b1f1 /lisp/emacs-lisp
parentdc524e8ba54e8bd02e23b39159a6eb927af8ea12 (diff)
downloademacs-3c8dd9b99335f8822c67c480fb0693d8867863b4.tar.gz
emacs-3c8dd9b99335f8822c67c480fb0693d8867863b4.tar.bz2
emacs-3c8dd9b99335f8822c67c480fb0693d8867863b4.zip
(derived-mode-run-hooks): Reinstalled, as it is needed for pre-21 compatibility.
Thanks to Stefan Monnier for pointing this out.
Diffstat (limited to 'lisp/emacs-lisp')
-rw-r--r--lisp/emacs-lisp/derived.el6
1 files changed, 6 insertions, 0 deletions
diff --git a/lisp/emacs-lisp/derived.el b/lisp/emacs-lisp/derived.el
index 244e3fb368c..764f58bcd23 100644
--- a/lisp/emacs-lisp/derived.el
+++ b/lisp/emacs-lisp/derived.el
@@ -382,6 +382,12 @@ Always merge its parent into it, since the merge is non-destructive."
(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)