Mercurial > emacs
annotate lispref/hooks.texi @ 19860:c17fd465ea95 libc-970911 libc-970912 libc-970913 libc-970914 libc-970915 libc-970916 libc-970917 libc-970918 libc-970919 libc-970920 libc-970921 libc-970922 libc-970923 libc-970924 libc-970925 libc-970926 libc-970927 libc-970928 libc-970929 libc-970930 libc-971001 libc-971018 libc-971019 libc-971020 libc-971021 libc-971022 libc-971023 libc-971024 libc-971025 libc-971026 libc-971027 libc-971028 libc-971029 libc-971030 libc-971031 libc-971101 libc-971102 libc-971103 libc-971104 libc-971105 libc-971106 libc-971107 libc-971108 libc-971109 libc-971110 libc-971111 libc-971112 libc-971113 libc-971114 libc-971115 libc-971116 libc-971117 libc-971118 libc-971120 libc-971121 libc-971122 libc-971123 libc-971124 libc-971125 libc-971126 libc-971127 libc-971128 libc-971129 libc-971130 libc-971201 libc-971203 libc-971204 libc-971205 libc-971206 libc-971207 libc-971208 libc-971209 libc-971210 libc-971211 libc-971212 libc-971213 libc-971214 libc-971217 libc-971218 libc-971219 libc-971220 libc-971221 libc-971222 libc-971223 libc-971224 libc-971225 libc-971226 libc-971227 libc-971228 libc-971229 libc-971230 libc-971231 libc-980103 libc-980104 libc-980105 libc-980106 libc-980107 libc-980108 libc-980109 libc-980110 libc-980111 libc-980112 libc-980114 libc-980115 libc-980116 libc-980117 libc-980118 libc-980119 libc-980120 libc-980121 libc-980122 libc-980123 libc-980124 libc-980125 libc-980126 libc-980127 libc-980128
typos.
author | Jeff Law <law@redhat.com> |
---|---|
date | Wed, 10 Sep 1997 21:16:20 +0000 |
parents | bfe1d6597f08 |
children | 66d807bdc5b4 |
rev | line source |
---|---|
6440 | 1 @c -*-texinfo-*- |
2 @c This is part of the GNU Emacs Lisp Reference Manual. | |
3 @c Copyright (C) 1990, 1991, 1992, 1993 Free Software Foundation, Inc. | |
4 @c See the file elisp.texi for copying conditions. | |
5 @setfilename ../info/hooks | |
12098 | 6 @node Standard Hooks, Index, Standard Keymaps, Top |
6440 | 7 @appendix Standard Hooks |
8 | |
7600 | 9 The following is a list of hook variables that let you provide |
6440 | 10 functions to be called from within Emacs on suitable occasions. |
11 | |
7600 | 12 Most of these variables have names ending with @samp{-hook}. They are |
13 @dfn{normal hooks}, run by means of @code{run-hooks}. The value of such | |
16056
bfe1d6597f08
Explain better about abnormal hooks.
Richard M. Stallman <rms@gnu.org>
parents:
12098
diff
changeset
|
14 a hook is a list of functions; the functions are called with no |
bfe1d6597f08
Explain better about abnormal hooks.
Richard M. Stallman <rms@gnu.org>
parents:
12098
diff
changeset
|
15 arguments and their values are completely ignored. The recommended way |
bfe1d6597f08
Explain better about abnormal hooks.
Richard M. Stallman <rms@gnu.org>
parents:
12098
diff
changeset
|
16 to put a new function on such a hook is to call @code{add-hook}. |
bfe1d6597f08
Explain better about abnormal hooks.
Richard M. Stallman <rms@gnu.org>
parents:
12098
diff
changeset
|
17 @xref{Hooks}, for more information about using hooks. |
bfe1d6597f08
Explain better about abnormal hooks.
Richard M. Stallman <rms@gnu.org>
parents:
12098
diff
changeset
|
18 |
bfe1d6597f08
Explain better about abnormal hooks.
Richard M. Stallman <rms@gnu.org>
parents:
12098
diff
changeset
|
19 The variables whose names end in @samp{-hooks} or @samp{-functions} are |
bfe1d6597f08
Explain better about abnormal hooks.
Richard M. Stallman <rms@gnu.org>
parents:
12098
diff
changeset
|
20 usually @dfn{abnormal hooks}; their values are lists of functions, but |
bfe1d6597f08
Explain better about abnormal hooks.
Richard M. Stallman <rms@gnu.org>
parents:
12098
diff
changeset
|
21 these functions are called in a special way (they are passed arguments, |
bfe1d6597f08
Explain better about abnormal hooks.
Richard M. Stallman <rms@gnu.org>
parents:
12098
diff
changeset
|
22 or their values are used). A few of these variables are actually normal |
bfe1d6597f08
Explain better about abnormal hooks.
Richard M. Stallman <rms@gnu.org>
parents:
12098
diff
changeset
|
23 hooks which were named before we established the convention that normal |
bfe1d6597f08
Explain better about abnormal hooks.
Richard M. Stallman <rms@gnu.org>
parents:
12098
diff
changeset
|
24 hooks' names should end in @samp{-hook}. |
6440 | 25 |
26 The variables whose names end in @samp{-function} have single functions | |
16056
bfe1d6597f08
Explain better about abnormal hooks.
Richard M. Stallman <rms@gnu.org>
parents:
12098
diff
changeset
|
27 as their values. (In older Emacs versions, some of these variables had |
bfe1d6597f08
Explain better about abnormal hooks.
Richard M. Stallman <rms@gnu.org>
parents:
12098
diff
changeset
|
28 names ending in @samp{-hook} even though they were not normal hooks; |
bfe1d6597f08
Explain better about abnormal hooks.
Richard M. Stallman <rms@gnu.org>
parents:
12098
diff
changeset
|
29 however, we have renamed all of those.) |
6440 | 30 |
31 @c !!! need xref to where each hook is documented or else document it | |
32 @c by specifying what is expected, and when it is called relative to | |
33 @c mode initialization.) | |
34 | |
35 @table @code | |
36 @item activate-mark-hook | |
37 @item after-change-function | |
6782
5b07647ec8f7
*** empty log message ***
Richard M. Stallman <rms@gnu.org>
parents:
6440
diff
changeset
|
38 @item after-change-functions |
6440 | 39 @item after-init-hook |
40 @item after-insert-file-functions | |
41 @item after-make-frame-hook | |
42 @item auto-fill-function | |
43 @item auto-save-hook | |
44 @item before-change-function | |
6782
5b07647ec8f7
*** empty log message ***
Richard M. Stallman <rms@gnu.org>
parents:
6440
diff
changeset
|
45 @item before-change-functions |
6440 | 46 @item before-init-hook |
47 @item before-make-frame-hook | |
48 @item blink-paren-function | |
49 @item c-mode-hook | |
50 @item calendar-load-hook | |
51 @item command-history-hook | |
52 @item comment-indent-function | |
53 @item deactivate-mark-hook | |
54 @item diary-display-hook | |
55 @item diary-hook | |
56 @item dired-mode-hook | |
57 @item disabled-command-hook | |
58 @item edit-picture-hook | |
59 @item electric-buffer-menu-mode-hook | |
60 @item electric-command-history-hook | |
61 @item electric-help-mode-hook | |
62 @item emacs-lisp-mode-hook | |
63 @item find-file-hooks | |
64 @item find-file-not-found-hooks | |
65 @item first-change-hook | |
66 @item fortran-comment-hook | |
67 @item fortran-mode-hook | |
68 @item ftp-setup-write-file-hooks | |
69 @item ftp-write-file-hook | |
70 @item indent-mim-hook | |
71 @item initial-calendar-window-hook | |
72 @item kill-buffer-query-functions | |
73 @item kill-emacs-query-functions | |
74 @item LaTeX-mode-hook | |
75 @item ledit-mode-hook | |
76 @item lisp-indent-function | |
77 @item lisp-interaction-mode-hook | |
78 @item lisp-mode-hook | |
79 @item list-diary-entries-hook | |
80 @item m2-mode-hook | |
81 @item mail-mode-hook | |
82 @item mail-setup-hook | |
83 @item mark-diary-entries-hook | |
84 @item medit-mode-hook | |
85 @item mh-compose-letter-hook | |
86 @item mh-folder-mode-hook | |
87 @item mh-letter-mode-hook | |
88 @item mim-mode-hook | |
89 @item minibuffer-setup-hook | |
6782
5b07647ec8f7
*** empty log message ***
Richard M. Stallman <rms@gnu.org>
parents:
6440
diff
changeset
|
90 @item minibuffer-exit-hook |
6440 | 91 @item news-mode-hook |
92 @item news-reply-mode-hook | |
93 @item news-setup-hook | |
94 @item nongregorian-diary-listing-hook | |
95 @item nongregorian-diary-marking-hook | |
96 @item nroff-mode-hook | |
97 @item outline-mode-hook | |
98 @item plain-TeX-mode-hook | |
99 @item post-command-hook | |
100 @item pre-abbrev-expand-hook | |
101 @item pre-command-hook | |
102 @item print-diary-entries-hook | |
103 @item prolog-mode-hook | |
104 @item protect-innocence-hook | |
105 @item rmail-edit-mode-hook | |
106 @item rmail-mode-hook | |
107 @item rmail-summary-mode-hook | |
108 @item scheme-indent-hook | |
109 @item scheme-mode-hook | |
110 @item scribe-mode-hook | |
111 @item shell-mode-hook | |
112 @item shell-set-directory-error-hook | |
113 @item suspend-hook | |
114 @item suspend-resume-hook | |
115 @item temp-buffer-show-function | |
116 @item term-setup-hook | |
117 @item terminal-mode-hook | |
118 @item terminal-mode-break-hook | |
119 @item TeX-mode-hook | |
120 @item text-mode-hook | |
121 @item today-visible-calendar-hook | |
122 @item today-invisible-calendar-hook | |
123 @item vi-mode-hook | |
124 @item view-hook | |
125 @item window-setup-hook | |
126 @item write-contents-hooks | |
127 @item write-file-hooks | |
12098 | 128 @item write-region-annotate-functions |
6440 | 129 @end table |