From 3c8dd9b99335f8822c67c480fb0693d8867863b4 Mon Sep 17 00:00:00 2001 From: Juanma Barranquero Date: Fri, 15 Jul 2005 08:39:57 +0000 Subject: [PATCH] (derived-mode-run-hooks): Reinstalled, as it is needed for pre-21 compatibility. Thanks to Stefan Monnier for pointing this out. --- lisp/ChangeLog | 3 +-- lisp/emacs-lisp/derived.el | 6 ++++++ 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/lisp/ChangeLog b/lisp/ChangeLog index d92000d3d47..8dd7d27a166 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog @@ -1,7 +1,6 @@ 2005-07-15 Juanma Barranquero - * 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 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) -- 2.39.5