mirror of
git://git.sv.gnu.org/emacs.git
synced 2026-01-30 04:10:54 -08:00
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.
This commit is contained in:
parent
4078d0fd3e
commit
15c77f2fce
1 changed files with 1 additions and 1 deletions
|
|
@ -359,7 +359,7 @@ the rules from `css-mode'."
|
|||
(add-hook 'before-change-functions #'c-foreign-truncate-lit-pos-cache nil t)
|
||||
|
||||
;; This is sort of a prog-mode as well as a text mode.
|
||||
(run-hooks 'prog-mode-hook))
|
||||
(run-mode-hooks 'prog-mode-hook))
|
||||
|
||||
(put 'mhtml-mode 'flyspell-mode-predicate #'mhtml--flyspell-check-word)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue