Commit 337a64d1 authored by Stefan Monnier's avatar Stefan Monnier
Browse files

(run-mode-hooks): Docstring improvement.

parent f4b43eb3
...@@ -1219,7 +1219,8 @@ if it is empty or a duplicate." ...@@ -1219,7 +1219,8 @@ if it is empty or a duplicate."
Execution is delayed if `delay-mode-hooks' is non-nil. Execution is delayed if `delay-mode-hooks' is non-nil.
If `delay-mode-hooks' is nil, run `after-change-major-mode-hook' If `delay-mode-hooks' is nil, run `after-change-major-mode-hook'
after running the mode hooks. after running the mode hooks.
Major mode functions should use this." Major mode functions should use this instead of `run-hooks' when running their
FOO-mode-hook."
(if delay-mode-hooks (if delay-mode-hooks
;; Delaying case. ;; Delaying case.
(dolist (hook hooks) (dolist (hook hooks)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment