all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* Doc string for run-hooks
@ 2008-01-05 19:03 Lennart Borgman (gmail)
  0 siblings, 0 replies; only message in thread
From: Lennart Borgman (gmail) @ 2008-01-05 19:03 UTC (permalink / raw
  To: Emacs Devel

I believe I suggested something like this change to the doc string a 
year ago. Was not that accepted? (Not entirely sure. It has not been 
entered in CVS.)

===================================================================
RCS file: /cvsroot/emacs/emacs/src/eval.c,v
retrieving revision 1.276
diff -u -r1.276 eval.c
--- src/eval.c	21 Jan 2007 04:18:16 -0000	1.276
+++ src/eval.c	18 Feb 2007 19:58:07 -0000
@@ -2493,18 +2493,20 @@

  DEFUN ("run-hooks", Frun_hooks, Srun_hooks, 0, MANY, 0,
         doc: /* Run each hook in HOOKS.
-Each argument should be a symbol, a hook variable.
-These symbols are processed in the order specified.
-If a hook symbol has a non-nil value, that value may be a function
-or a list of functions to be called to run the hook.
-If the value is a function, it is called with no arguments.
-If it is a list, the elements are called, in order, with no arguments.
+Each argument should be a symbol, a hook variable.  These symbols are
+processed in the order specified.  If a hook symbol has a non-nil
+value, that value should be a list of functions.  The functions in the
+list are called in order, with no arguments.
+
+A hook symbols' value can also be a single function which
+`run-hooks' calls.  But this usage is obsolete.

  Major modes should not use this function directly to run their mode
  hook; they should use `run-mode-hooks' instead.

  Do not use `make-local-variable' to make a hook variable buffer-local.
  Instead, use `add-hook' and specify t for the LOCAL argument.
+
  usage: (run-hooks &rest HOOKS)  */)
       (nargs, args)
       int nargs;

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2008-01-05 19:03 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-01-05 19:03 Doc string for run-hooks Lennart Borgman (gmail)

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.