Mercurial > emacs
annotate lispref/hooks.texi @ 88253:86d5137811c7
(rmail-delete-inbox-files): New function factored out of
`rmail-get-new-mail'.
(rmail-get-new-mail): Use it.
(rmail-get-inbox-files): Renamed from `rmail-get-inbox-list'.
author | Henrik Enberg <henrik.enberg@telia.com> |
---|---|
date | Sat, 21 Jan 2006 03:39:40 +0000 |
parents | d7ddb3e565de |
children |
rev | line source |
---|---|
6440 | 1 @c -*-texinfo-*- |
2 @c This is part of the GNU Emacs Lisp Reference Manual. | |
88155 | 3 @c Copyright (C) 1990, 1991, 1992, 1993, 1998, 2002, 2003, 2004, |
4 @c 2005 Free Software Foundation, Inc. | |
6440 | 5 @c See the file elisp.texi for copying conditions. |
6 @setfilename ../info/hooks | |
12098 | 7 @node Standard Hooks, Index, Standard Keymaps, Top |
6440 | 8 @appendix Standard Hooks |
88155 | 9 @cindex standard hooks |
10 @cindex hook variables, list of | |
6440 | 11 |
7600 | 12 The following is a list of hook variables that let you provide |
49600
23a1cea22d13
Trailing whitespace deleted.
Juanma Barranquero <lekktu@gmail.com>
parents:
45979
diff
changeset
|
13 functions to be called from within Emacs on suitable occasions. |
6440 | 14 |
7600 | 15 Most of these variables have names ending with @samp{-hook}. They are |
16 @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
|
17 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
|
18 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
|
19 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
|
20 @xref{Hooks}, for more information about using hooks. |
bfe1d6597f08
Explain better about abnormal hooks.
Richard M. Stallman <rms@gnu.org>
parents:
12098
diff
changeset
|
21 |
88155 | 22 Every major mode defines a mode hook named |
23 @samp{@var{modename}-mode-hook}. The major mode command runs this | |
24 normal hook with @code{run-mode-hooks} as the very last thing it does. | |
25 @xref{Mode Hooks}. Most minor modes have mode hooks too. Mode hooks | |
26 are omitted in the list below. | |
27 | |
16056
bfe1d6597f08
Explain better about abnormal hooks.
Richard M. Stallman <rms@gnu.org>
parents:
12098
diff
changeset
|
28 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
|
29 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
|
30 these functions are called in a special way (they are passed arguments, |
88155 | 31 or their values are used). The variables whose names end in |
32 @samp{-function} have single functions as their values. | |
6440 | 33 |
88155 | 34 (In older Emacs versions, some normal hooks had names ending in |
35 @samp{-hooks} or @samp{-functions}, and some abnormal hooks had names | |
36 ending in @samp{-hook}. We have renamed all of these to conform to | |
37 the above conventions.) | |
6440 | 38 |
88155 | 39 @c We need to xref to where each hook is documented or else document |
40 @c it here. | |
6440 | 41 |
42 @table @code | |
43 @item activate-mark-hook | |
88155 | 44 @xref{The Mark}. |
45 | |
6782
5b07647ec8f7
*** empty log message ***
Richard M. Stallman <rms@gnu.org>
parents:
6440
diff
changeset
|
46 @item after-change-functions |
88155 | 47 @xref{Change Hooks}. |
48 | |
49 @item after-change-major-mode-hook | |
50 @xref{Mode Hooks}. | |
51 | |
6440 | 52 @item after-init-hook |
88155 | 53 @xref{Init File}. |
54 | |
6440 | 55 @item after-insert-file-functions |
88155 | 56 @xref{Saving Properties}. |
57 | |
32597
df31899ab320
Missed this file in previous commit.
Kai Großjohann <kgrossjo@eu.uu.net>
parents:
22138
diff
changeset
|
58 @item after-make-frame-functions |
88155 | 59 @xref{Creating Frames}. |
60 | |
21007
66d807bdc5b4
*** empty log message ***
Richard M. Stallman <rms@gnu.org>
parents:
16056
diff
changeset
|
61 @item after-revert-hook |
88155 | 62 @xref{Reverting}. |
63 | |
21007
66d807bdc5b4
*** empty log message ***
Richard M. Stallman <rms@gnu.org>
parents:
16056
diff
changeset
|
64 @item after-save-hook |
88155 | 65 @xref{Saving Buffers}. |
66 | |
6440 | 67 @item auto-fill-function |
88155 | 68 @xref{Auto Filling}. |
69 | |
6440 | 70 @item auto-save-hook |
88155 | 71 @xref{Auto-Saving}. |
72 | |
6782
5b07647ec8f7
*** empty log message ***
Richard M. Stallman <rms@gnu.org>
parents:
6440
diff
changeset
|
73 @item before-change-functions |
88155 | 74 @xref{Change Hooks}. |
75 | |
6440 | 76 @item before-init-hook |
88155 | 77 @xref{Init File}. |
78 | |
6440 | 79 @item before-make-frame-hook |
88155 | 80 @xref{Creating Frames}. |
81 | |
21007
66d807bdc5b4
*** empty log message ***
Richard M. Stallman <rms@gnu.org>
parents:
16056
diff
changeset
|
82 @item before-revert-hook |
88155 | 83 @xref{Reverting}. |
84 | |
85 @item before-save-hook | |
86 @xref{Saving Buffers}. | |
87 | |
6440 | 88 @item blink-paren-function |
88155 | 89 @xref{Blinking}. |
90 | |
21007
66d807bdc5b4
*** empty log message ***
Richard M. Stallman <rms@gnu.org>
parents:
16056
diff
changeset
|
91 @item buffer-access-fontify-functions |
88155 | 92 @xref{Lazy Properties}. |
93 | |
6440 | 94 @item calendar-load-hook |
88155 | 95 @inforef{Calendar Customizing,, emacs-xtra}. |
96 | |
21007
66d807bdc5b4
*** empty log message ***
Richard M. Stallman <rms@gnu.org>
parents:
16056
diff
changeset
|
97 @item change-major-mode-hook |
88155 | 98 @xref{Creating Buffer-Local}. |
99 | |
21007
66d807bdc5b4
*** empty log message ***
Richard M. Stallman <rms@gnu.org>
parents:
16056
diff
changeset
|
100 @item command-line-functions |
88155 | 101 @xref{Command-Line Arguments}. |
102 | |
6440 | 103 @item comment-indent-function |
88155 | 104 @xref{Options for Comments,, Options Controlling Comments, emacs, the |
105 GNU Emacs Manual}. | |
106 | |
107 @item compilation-finish-functions | |
108 Functions to call when a compilation process finishes. | |
109 | |
42016
3900be0515b0
Add custom-define-hook.
Richard M. Stallman <rms@gnu.org>
parents:
39209
diff
changeset
|
110 @item custom-define-hook |
88155 | 111 Hook called after defining each customize option. |
112 | |
6440 | 113 @item deactivate-mark-hook |
88155 | 114 @xref{The Mark}. |
115 | |
116 @item desktop-after-read-hook | |
117 Normal hook run after a successful @code{desktop-read}. May be used | |
118 to show a buffer list. @xref{Saving Emacs Sessions,, Saving Emacs | |
119 Sessions, emacs, the GNU Emacs Manual}. | |
120 | |
121 @item desktop-no-desktop-file-hook | |
122 Normal hook run when @code{desktop-read} can't find a desktop file. | |
123 May be used to show a dired buffer. @xref{Saving Emacs Sessions,, | |
124 Saving Emacs Sessions, emacs, the GNU Emacs Manual}. | |
125 | |
126 @item desktop-save-hook | |
127 Normal hook run before the desktop is saved in a desktop file. This | |
128 is useful for truncating history lists, for example. @xref{Saving | |
129 Emacs Sessions,, Saving Emacs Sessions, emacs, the GNU Emacs Manual}. | |
130 | |
6440 | 131 @item diary-display-hook |
88155 | 132 @inforef{Fancy Diary Display,, emacs-xtra}. |
133 | |
6440 | 134 @item diary-hook |
88155 | 135 List of functions called after the display of the diary. Can be used |
136 for appointment notification. | |
137 | |
138 @item disabled-command-function | |
139 @xref{Disabling Commands}. | |
140 | |
21007
66d807bdc5b4
*** empty log message ***
Richard M. Stallman <rms@gnu.org>
parents:
16056
diff
changeset
|
141 @item echo-area-clear-hook |
88155 | 142 @xref{Echo Area Customization}. |
143 | |
144 @item emacs-startup-hook | |
145 @xref{Init File}. | |
146 | |
45979
87962bf716e3
*** empty log message ***
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
42016
diff
changeset
|
147 @item find-file-hook |
88155 | 148 @xref{Visiting Functions}. |
149 | |
45979
87962bf716e3
*** empty log message ***
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
42016
diff
changeset
|
150 @item find-file-not-found-functions |
88155 | 151 @xref{Visiting Functions}. |
152 | |
6440 | 153 @item first-change-hook |
88155 | 154 @xref{Change Hooks}. |
155 | |
156 @item font-lock-beginning-of-syntax-function | |
157 @xref{Syntactic Font Lock}. | |
158 | |
159 @item font-lock-fontify-buffer-function | |
160 @xref{Other Font Lock Variables}. | |
161 | |
162 @item font-lock-fontify-region-function | |
163 @xref{Other Font Lock Variables}. | |
164 | |
165 @item font-lock-mark-block-function | |
166 @xref{Other Font Lock Variables}. | |
167 | |
168 @item font-lock-syntactic-face-function | |
169 @xref{Syntactic Font Lock}. | |
170 | |
171 @item font-lock-unfontify-buffer-function | |
172 @xref{Other Font Lock Variables}. | |
173 | |
174 @item font-lock-unfontify-region-function | |
175 @xref{Other Font Lock Variables}. | |
176 | |
6440 | 177 @item initial-calendar-window-hook |
88155 | 178 @inforef{Calendar Customizing,, emacs-xtra}. |
179 | |
39209
a0a6a6a2092f
(Standard Hooks): Add kbd-macro-termination-hook and apropos-mode-hook.
Eli Zaretskii <eliz@gnu.org>
parents:
34306
diff
changeset
|
180 @item kbd-macro-termination-hook |
88155 | 181 @xref{Keyboard Macros}. |
182 | |
21007
66d807bdc5b4
*** empty log message ***
Richard M. Stallman <rms@gnu.org>
parents:
16056
diff
changeset
|
183 @item kill-buffer-hook |
88155 | 184 @xref{Killing Buffers}. |
185 | |
6440 | 186 @item kill-buffer-query-functions |
88155 | 187 @xref{Killing Buffers}. |
188 | |
21007
66d807bdc5b4
*** empty log message ***
Richard M. Stallman <rms@gnu.org>
parents:
16056
diff
changeset
|
189 @item kill-emacs-hook |
88155 | 190 @xref{Killing Emacs}. |
191 | |
6440 | 192 @item kill-emacs-query-functions |
88155 | 193 @xref{Killing Emacs}. |
194 | |
6440 | 195 @item lisp-indent-function |
88155 | 196 |
6440 | 197 @item list-diary-entries-hook |
88155 | 198 @inforef{Fancy Diary Display,, emacs-xtra}. |
199 | |
6440 | 200 @item mail-setup-hook |
88155 | 201 @xref{Mail Mode Misc,, Mail Mode Miscellany, emacs, the GNU Emacs |
202 Manual}. | |
203 | |
6440 | 204 @item mark-diary-entries-hook |
88155 | 205 @inforef{Fancy Diary Display,, emacs-xtra}. |
206 | |
21007
66d807bdc5b4
*** empty log message ***
Richard M. Stallman <rms@gnu.org>
parents:
16056
diff
changeset
|
207 @item menu-bar-update-hook |
88155 | 208 @xref{Menu Bar}. |
209 | |
6440 | 210 @item minibuffer-setup-hook |
88155 | 211 @xref{Minibuffer Misc}. |
212 | |
6782
5b07647ec8f7
*** empty log message ***
Richard M. Stallman <rms@gnu.org>
parents:
6440
diff
changeset
|
213 @item minibuffer-exit-hook |
88155 | 214 @xref{Minibuffer Misc}. |
215 | |
34306
de5c0dfaf459
Zap before-change-function, ftp-setup-write-file-hooks,
Dave Love <fx@gnu.org>
parents:
32597
diff
changeset
|
216 @item mouse-position-function |
88155 | 217 @xref{Mouse Position}. |
218 | |
6440 | 219 @item nongregorian-diary-listing-hook |
88155 | 220 @inforef{Hebrew/Islamic Entries,, emacs-xtra}. |
221 | |
6440 | 222 @item nongregorian-diary-marking-hook |
88155 | 223 @inforef{Hebrew/Islamic Entries,, emacs-xtra}. |
224 | |
225 @item occur-hook | |
226 | |
6440 | 227 @item post-command-hook |
88155 | 228 @xref{Command Overview}. |
229 | |
6440 | 230 @item pre-abbrev-expand-hook |
88155 | 231 @xref{Abbrev Expansion}. |
232 | |
6440 | 233 @item pre-command-hook |
88155 | 234 @xref{Command Overview}. |
235 | |
6440 | 236 @item print-diary-entries-hook |
88155 | 237 @inforef{Diary Customizing,, emacs-xtra}. |
238 | |
21007
66d807bdc5b4
*** empty log message ***
Richard M. Stallman <rms@gnu.org>
parents:
16056
diff
changeset
|
239 @item redisplay-end-trigger-functions |
88155 | 240 @xref{Window Hooks}. |
241 | |
242 @item scheme-indent-function | |
243 | |
6440 | 244 @item suspend-hook |
88155 | 245 @xref{Suspending Emacs}. |
246 | |
6440 | 247 @item suspend-resume-hook |
88155 | 248 @xref{Suspending Emacs}. |
249 | |
250 @item temp-buffer-setup-hook | |
251 @xref{Temporary Displays}. | |
252 | |
6440 | 253 @item temp-buffer-show-function |
88155 | 254 @xref{Temporary Displays}. |
255 | |
256 @item temp-buffer-show-hook | |
257 @xref{Temporary Displays}. | |
258 | |
6440 | 259 @item term-setup-hook |
88155 | 260 @xref{Terminal-Specific}. |
261 | |
6440 | 262 @item today-visible-calendar-hook |
88155 | 263 @inforef{Calendar Customizing,, emacs-xtra}. |
264 | |
6440 | 265 @item today-invisible-calendar-hook |
88155 | 266 @inforef{Calendar Customizing,, emacs-xtra}. |
267 | |
21007
66d807bdc5b4
*** empty log message ***
Richard M. Stallman <rms@gnu.org>
parents:
16056
diff
changeset
|
268 @item window-configuration-change-hook |
88155 | 269 @xref{Window Hooks}. |
270 | |
21007
66d807bdc5b4
*** empty log message ***
Richard M. Stallman <rms@gnu.org>
parents:
16056
diff
changeset
|
271 @item window-scroll-functions |
88155 | 272 @xref{Window Hooks}. |
273 | |
6440 | 274 @item window-setup-hook |
88155 | 275 @xref{Window Systems}. |
276 | |
21007
66d807bdc5b4
*** empty log message ***
Richard M. Stallman <rms@gnu.org>
parents:
16056
diff
changeset
|
277 @item window-size-change-functions |
88155 | 278 @xref{Window Hooks}. |
279 | |
45979
87962bf716e3
*** empty log message ***
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
42016
diff
changeset
|
280 @item write-contents-functions |
88155 | 281 @xref{Saving Buffers}. |
282 | |
45979
87962bf716e3
*** empty log message ***
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
42016
diff
changeset
|
283 @item write-file-functions |
88155 | 284 @xref{Saving Buffers}. |
285 | |
12098 | 286 @item write-region-annotate-functions |
88155 | 287 @xref{Saving Properties}. |
6440 | 288 @end table |
88155 | 289 |
290 @ignore | |
291 arch-tag: 55fd0296-d906-4551-b300-979d3846aa88 | |
292 @end ignore |