From: Stefan Monnier Date: Sun, 8 Jul 2007 19:35:50 +0000 (+0000) Subject: (run-mode-hooks): Docstring improvement. X-Git-Tag: emacs-pretest-23.0.90~11996 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=337a64d11659e76d6d1579a3b0b9fba4577d4d55;p=emacs.git (run-mode-hooks): Docstring improvement. --- diff --git a/lisp/subr.el b/lisp/subr.el index 86616265c59..f890caf66e4 100644 --- a/lisp/subr.el +++ b/lisp/subr.el @@ -1219,7 +1219,8 @@ if it is empty or a duplicate." Execution is delayed if `delay-mode-hooks' is non-nil. If `delay-mode-hooks' is nil, run `after-change-major-mode-hook' 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 ;; Delaying case. (dolist (hook hooks)