aboutsummaryrefslogtreecommitdiffstats
path: root/doc/lispref
diff options
context:
space:
mode:
authorStefan Monnier2012-10-23 11:06:07 -0400
committerStefan Monnier2012-10-23 11:06:07 -0400
commitd106953274d29b6be4ef7e2c442078c81a52ff2f (patch)
tree1daf5ea3f0c8d0ed1914ba3fc339b1dd23438e20 /doc/lispref
parentf7eac6d887b7768034e40f16dacbb0c8fb569417 (diff)
downloademacs-d106953274d29b6be4ef7e2c442078c81a52ff2f.tar.gz
emacs-d106953274d29b6be4ef7e2c442078c81a52ff2f.zip
Cleanup uses of "-hooks".
* doc/emacs/custom.texi (Hooks): * doc/lispref/hooks.texi (Standard Hooks): Clarify that -hooks is deprecated. * lisp/gnus/nndiary.el (nndiary-request-create-group-functions) (nndiary-request-update-info-functions) (nndiary-request-accept-article-functions): * lisp/gnus/gnus-start.el (gnus-subscribe-newsgroup-functions): * lisp/cedet/semantic/db-file.el (semanticdb-save-database-functions): * lisp/cedet/semantic/lex.el (semantic-lex-reset-functions): * lisp/cedet/semantic/edit.el (semantic-change-functions) (semantic-edits-new-change-functions) (semantic-edits-delete-change-functions) (semantic-edits-reparse-change-functions): * lisp/htmlfontify.el (hfy-post-html-hook): * lisp/filesets.el (filesets-cache-fill-content-hook): * lisp/arc-mode.el (archive-extract-hook): * lisp/progmodes/cc-mode.el (c-prepare-bug-report-hook): * lisp/net/rcirc.el (rcirc-sentinel-functions) (rcirc-receive-message-functions, rcirc-activity-functions) (rcirc-print-functions): * lisp/net/dbus.el (dbus-event-error-functions): * lisp/emacs-lisp/eieio.el (eieio-pre-method-execution-functions): * lisp/emacs-lisp/checkdoc.el (checkdoc-style-functions) (checkdoc-comment-style-functions): Don't use "-hooks" suffix. * lisp/term/sun.el (sun-raw-prefix-hooks): * lisp/mail/sendmail.el (mail-yank-hooks): * lisp/mh-e/mh-letter.el (mh-yank-hooks): Use make-obsolete-variable.
Diffstat (limited to 'doc/lispref')
-rw-r--r--doc/lispref/ChangeLog4
-rw-r--r--doc/lispref/functions.texi2
-rw-r--r--doc/lispref/hooks.texi10
-rw-r--r--doc/lispref/loading.texi4
-rw-r--r--doc/lispref/modes.texi6
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 @@
12012-10-23 Stefan Monnier <monnier@iro.umontreal.ca>
2
3 * hooks.texi (Standard Hooks): Clarify that -hooks is deprecated.
4
12012-10-23 Paul Eggert <eggert@cs.ucla.edu> 52012-10-23 Paul Eggert <eggert@cs.ucla.edu>
2 6
3 Fix outdated timestamp documentation in Elisp manual (bug#12706). 7 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:
978@example 978@example
979@group 979@group
980(defun double-property (symbol prop) 980(defun double-property (symbol prop)
981 (change-property symbol prop '(lambda (x) (* 2 x)))) 981 (change-property symbol prop (lambda (x) (* 2 x))))
982@end group 982@end group
983@end example 983@end example
984 984
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
17to put a new function on such a hook is to call @code{add-hook}. 17to put a new function on such a hook is to call @code{add-hook}.
18@xref{Hooks}, for more information about using hooks. 18@xref{Hooks}, for more information about using hooks.
19 19
20The variables whose names end in @samp{-hooks} or @samp{-functions} are 20The variables whose names end in @samp{-functions} are usually @dfn{abnormal
21usually @dfn{abnormal hooks}; their values are lists of functions, but 21hooks} (some old code may also use the deprecated @samp{-hooks} suffix); their
22these functions are called in a special way (they are passed arguments, 22values are lists of functions, but these functions are called in a special way
23or their values are used). The variables whose names end in 23(they are passed arguments, or their return values are used). The variables
24@samp{-function} have single functions as their values. 24whose names end in @samp{-function} have single functions as their values.
25 25
26This is not an exhaustive list, it only covers the more general hooks. 26This is not an exhaustive list, it only covers the more general hooks.
27For example, every major mode defines a hook named 27For 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.
897 897
898Before restoring the previous definitions, @code{unload-feature} runs 898Before restoring the previous definitions, @code{unload-feature} runs
899@code{remove-hook} to remove functions in the library from certain 899@code{remove-hook} to remove functions in the library from certain
900hooks. These hooks include variables whose names end in @samp{hook} 900hooks. These hooks include variables whose names end in @samp{-hook}
901or @samp{-hooks}, plus those listed in 901(or the deprecated suffix @samp{-hooks}), plus those listed in
902@code{unload-feature-special-hooks}, as well as 902@code{unload-feature-special-hooks}, as well as
903@code{auto-mode-alist}. This is to prevent Emacs from ceasing to 903@code{auto-mode-alist}. This is to prevent Emacs from ceasing to
904function because important hooks refer to functions that are no longer 904function 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
70hook, but you must write the function to follow the hook's calling 70hook, but you must write the function to follow the hook's calling
71convention. 71convention.
72 72
73 By convention, abnormal hook names end in @samp{-functions} or 73 By convention, abnormal hook names end in @samp{-functions}. If the
74@samp{-hooks}. If the variable's name ends in @samp{-function}, then 74variable's name ends in @samp{-function}, then its value is just a single
75its value is just a single function, not a list of functions. 75function, not a list of functions.
76 76
77@menu 77@menu
78* Running Hooks:: How to run a hook. 78* Running Hooks:: How to run a hook.