diff options
Diffstat (limited to 'doc/lispref')
-rw-r--r-- | doc/lispref/ChangeLog | 4 | ||||
-rw-r--r-- | doc/lispref/functions.texi | 2 | ||||
-rw-r--r-- | doc/lispref/hooks.texi | 10 | ||||
-rw-r--r-- | doc/lispref/loading.texi | 4 | ||||
-rw-r--r-- | doc/lispref/modes.texi | 6 |
5 files changed, 15 insertions, 11 deletions
diff --git a/doc/lispref/ChangeLog b/doc/lispref/ChangeLog index a767bbf1fce..26765e7a384 100644 --- a/doc/lispref/ChangeLog +++ b/doc/lispref/ChangeLog @@ -1,3 +1,7 @@ +2012-10-23 Stefan Monnier <monnier@iro.umontreal.ca> + + * hooks.texi (Standard Hooks): Clarify that -hooks is deprecated. + 2012-10-23 Paul Eggert <eggert@cs.ucla.edu> Fix outdated timestamp documentation in Elisp manual (bug#12706). diff --git a/doc/lispref/functions.texi b/doc/lispref/functions.texi index c94e46dad18..623106b6d06 100644 --- a/doc/lispref/functions.texi +++ b/doc/lispref/functions.texi @@ -978,7 +978,7 @@ anonymous function by quoting it as a list: @example @group (defun double-property (symbol prop) - (change-property symbol prop '(lambda (x) (* 2 x)))) + (change-property symbol prop (lambda (x) (* 2 x)))) @end group @end example diff --git a/doc/lispref/hooks.texi b/doc/lispref/hooks.texi index 7c91b51b290..a7f01243641 100644 --- a/doc/lispref/hooks.texi +++ b/doc/lispref/hooks.texi @@ -17,11 +17,11 @@ arguments and their values are completely ignored. The recommended way to put a new function on such a hook is to call @code{add-hook}. @xref{Hooks}, for more information about using hooks. -The variables whose names end in @samp{-hooks} or @samp{-functions} are -usually @dfn{abnormal hooks}; their values are lists of functions, but -these functions are called in a special way (they are passed arguments, -or their values are used). The variables whose names end in -@samp{-function} have single functions as their values. +The variables whose names end in @samp{-functions} are usually @dfn{abnormal +hooks} (some old code may also use the deprecated @samp{-hooks} suffix); their +values are lists of functions, but these functions are called in a special way +(they are passed arguments, or their return values are used). The variables +whose names end in @samp{-function} have single functions as their values. This is not an exhaustive list, it only covers the more general hooks. For example, every major mode defines a hook named diff --git a/doc/lispref/loading.texi b/doc/lispref/loading.texi index aa243185359..77a31cfde7a 100644 --- a/doc/lispref/loading.texi +++ b/doc/lispref/loading.texi @@ -897,8 +897,8 @@ It then restores any autoloads formerly associated with those symbols. Before restoring the previous definitions, @code{unload-feature} runs @code{remove-hook} to remove functions in the library from certain -hooks. These hooks include variables whose names end in @samp{hook} -or @samp{-hooks}, plus those listed in +hooks. These hooks include variables whose names end in @samp{-hook} +(or the deprecated suffix @samp{-hooks}), plus those listed in @code{unload-feature-special-hooks}, as well as @code{auto-mode-alist}. This is to prevent Emacs from ceasing to function because important hooks refer to functions that are no longer diff --git a/doc/lispref/modes.texi b/doc/lispref/modes.texi index 8b5e3da493a..4e4d700aade 100644 --- a/doc/lispref/modes.texi +++ b/doc/lispref/modes.texi @@ -70,9 +70,9 @@ called. You can use @code{add-hook} to add a function to an abnormal hook, but you must write the function to follow the hook's calling convention. - By convention, abnormal hook names end in @samp{-functions} or -@samp{-hooks}. If the variable's name ends in @samp{-function}, then -its value is just a single function, not a list of functions. + By convention, abnormal hook names end in @samp{-functions}. If the +variable's name ends in @samp{-function}, then its value is just a single +function, not a list of functions. @menu * Running Hooks:: How to run a hook. |