]> git.eshelyaron.com Git - emacs.git/commit
mhtml-mode: Use `run-mode-hook' to run `prog-mode-hook' (bug#70671)
authorIhor Radchenko <yantar92@posteo.net>
Fri, 3 May 2024 07:46:22 +0000 (10:46 +0300)
committerEshel Yaron <me@eshelyaron.com>
Mon, 6 May 2024 16:37:39 +0000 (18:37 +0200)
commite4961cd19a6b69864fafcbdd034db49d06549d78
treef67ce160b66ba02dff6b5b41ffc059118584fc68
parent1f088442d5f32e670b28e3a3df6a442f4d0bd475
mhtml-mode: Use `run-mode-hook' to run `prog-mode-hook' (bug#70671)

* lisp/textmodes/mhtml-mode.el (mhtml-mode): When running hooks
simulating inheritance from `prog-mode', use `run-mode-hooks' that
honors `delay-mode-hooks' macro.  Note that `delay-mode-hooks' is bound
to non-nil when major mode body is evaluated, so there is no chance that
any major mode-related hooks are executed twice.

(cherry picked from commit 15c77f2fce418983147346589158e2f0da97fa43)
lisp/textmodes/mhtml-mode.el