(delayed-after-hook-functions): Tighten the code a bit
commitfb619c1c22b986841964b09b7effe42785f3fed8
authorStefan Monnier <monnier@iro.umontreal.ca>
Wed, 27 Dec 2017 22:49:39 +0000 (27 17:49 -0500)
committerStefan Monnier <monnier@iro.umontreal.ca>
Wed, 27 Dec 2017 22:49:39 +0000 (27 17:49 -0500)
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