]> git.eshelyaron.com Git - emacs.git/commit
(delayed-after-hook-functions): Tighten the code a bit
authorStefan Monnier <monnier@iro.umontreal.ca>
Wed, 27 Dec 2017 22:49:39 +0000 (17:49 -0500)
committerStefan Monnier <monnier@iro.umontreal.ca>
Wed, 27 Dec 2017 22:49:39 +0000 (17:49 -0500)
commitfb619c1c22b986841964b09b7effe42785f3fed8
tree4714b2126dd72ce07b9aebe0f4f1321171d8b0b8
parentf16ba58809fa9b83d42f2bb6b4722599bc98b408
(delayed-after-hook-functions): Tighten the code a bit

* lisp/subr.el (delayed-mode-hooks, delayed-after-hook-functions):
Use defvar-local.
(run-mode-hooks): Reset delayed-after-hook-functions before running
those functions, in case an error is signaled.

* lisp/emacs-lisp/derived.el (define-derived-mode): Don't duplicate code.
lisp/emacs-lisp/derived.el
lisp/subr.el