Mercurial > emacs
changeset 64333:92e5d9e433d3
(derived-mode-run-hooks): Reinstalled, as it is needed for pre-21 compatibility.
Thanks to Stefan Monnier for pointing this out.
author | Juanma Barranquero <lekktu@gmail.com> |
---|---|
date | Fri, 15 Jul 2005 08:36:01 +0000 |
parents | d865cbe4d2b9 |
children | 152a39dc5026 |
files | lisp/emacs-lisp/derived.el |
diffstat | 1 files changed, 6 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- 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)