Merge branch 'tooltalkless'
[sxemacs] / info / lispref / hooks.texi
1 @c -*-texinfo-*-
2 @c This is part of the SXEmacs Lisp Reference Manual.
3 @c Copyright (C) 1990, 1991, 1992, 1993 Free Software Foundation, Inc.
4 @c Copyright (C) 2005 Sebastian Freundt <hroptatyr@sxemacs.org>
5 @c See the file lispref.texi for copying conditions.
6 @setfilename ../../info/hooks.info
7
8 @node Standard Hooks, Index, Standard Keymaps, Top
9 @appendix Standard Hooks
10
11 The following is a list of hook variables that let you provide
12 functions to be called from within SXEmacs on suitable occasions.
13
14 Most of these variables have names ending with @samp{-hook}.  They are
15 @dfn{normal hooks}, run by means of @code{run-hooks}.  The value of such
16 a hook is a list of functions.  The recommended way to put a new
17 function on such a hook is to call @code{add-hook}.  @xref{Hooks}, for
18 more information about using hooks.
19
20 The variables whose names end in @samp{-function} have single functions
21 as their values.  Usually there is a specific reason why the variable is
22 not a normal hook, such as the need to pass arguments to the function.
23
24 In older Emacs versions, some of these variables had names ending in
25 @samp{-hook} even though they were not normal hooks.
26
27 The variables whose names end in @samp{-hooks} or @samp{-functions} have
28 lists of functions as their values, but these functions are called in a
29 special way (they are passed arguments, or else their values are used).
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-menubar-hook
37 @item activate-popup-menu-hook
38 @item ad-definition-hooks
39 @item adaptive-fill-function
40 @item add-log-current-defun-function
41 @item after-change-functions
42 @item after-delete-annotation-hook
43 @item after-init-hook
44 @item after-insert-file-functions
45 @item after-revert-hook
46 @item after-save-hook
47 @item after-set-visited-file-name-hooks
48 @item after-write-file-hooks
49 @item auto-fill-function
50 @item auto-save-hook
51 @item before-change-functions
52 @item before-delete-annotation-hook
53 @item before-init-hook
54 @item before-revert-hook
55 @item blink-paren-function
56 @item buffers-menu-switch-to-buffer-function
57 @item c++-mode-hook
58 @item c-delete-function
59 @item c-mode-common-hook
60 @item c-mode-hook
61 @item c-special-indent-hook
62 @item calendar-load-hook
63 @item change-major-mode-hook
64 @item command-history-hook
65 @item comment-indent-function
66 @item compilation-buffer-name-function
67 @item compilation-exit-message-function
68 @item compilation-finish-function
69 @item compilation-parse-errors-function
70 @item compilation-mode-hook
71 @item create-console-hook
72 @item create-device-hook
73 @item create-frame-hook
74 @item dabbrev-friend-buffer-function
75 @item dabbrev-select-buffers-function
76 @item delete-console-hook
77 @item delete-device-hook
78 @item delete-frame-hook
79 @item deselect-frame-hook
80 @item diary-display-hook
81 @item diary-hook
82 @item dired-after-readin-hook
83 @item dired-before-readin-hook
84 @item dired-load-hook
85 @item dired-mode-hook
86 @item disabled-command-hook
87 @item display-buffer-function
88 @item ediff-after-setup-control-frame-hook
89 @item ediff-after-setup-windows-hook
90 @item ediff-before-setup-control-frame-hook
91 @item ediff-before-setup-windows-hook
92 @item ediff-brief-help-message-function
93 @item ediff-cleanup-hook
94 @item ediff-control-frame-position-function
95 @item ediff-display-help-hook
96 @item ediff-focus-on-regexp-matches-function
97 @item ediff-forward-word-function
98 @item ediff-hide-regexp-matches-function
99 @item ediff-keymap-setup-hook
100 @item ediff-load-hook
101 @item ediff-long-help-message-function
102 @item ediff-make-wide-display-function
103 @item ediff-merge-split-window-function
104 @item ediff-meta-action-function
105 @item ediff-meta-redraw-function
106 @item ediff-mode-hook
107 @item ediff-prepare-buffer-hook
108 @item ediff-quit-hook
109 @item ediff-registry-setup-hook
110 @item ediff-select-hook
111 @item ediff-session-action-function
112 @item ediff-session-group-setup-hook
113 @item ediff-setup-diff-regions-function
114 @item ediff-show-registry-hook
115 @item ediff-show-session-group-hook
116 @item ediff-skip-diff-region-function
117 @item ediff-split-window-function
118 @item ediff-startup-hook
119 @item ediff-suspend-hook
120 @item ediff-toggle-read-only-function
121 @item ediff-unselect-hook
122 @item ediff-window-setup-function
123 @item edit-picture-hook
124 @item electric-buffer-menu-mode-hook
125 @item electric-command-history-hook
126 @item electric-help-mode-hook
127 @item emacs-lisp-mode-hook
128 @item fill-paragraph-function
129 @item find-file-hooks
130 @item find-file-not-found-hooks
131 @item first-change-hook
132 @item font-lock-after-fontify-buffer-hook
133 @item font-lock-beginning-of-syntax-function
134 @item font-lock-mode-hook
135 @item fume-found-function-hook
136 @item fume-list-mode-hook
137 @item fume-rescan-buffer-hook
138 @item fume-sort-function
139 @item gnus-startup-hook
140 @item hack-local-variables-hook
141 @item highlight-headers-follow-url-function
142 @item hyper-apropos-mode-hook
143 @item indent-line-function
144 @item indent-mim-hook
145 @item indent-region-function
146 @item initial-calendar-window-hook
147 @item isearch-mode-end-hook
148 @item isearch-mode-hook
149 @item java-mode-hook
150 @item kill-buffer-hook
151 @item kill-buffer-query-functions
152 @item kill-emacs-hook
153 @item kill-emacs-query-functions
154 @item kill-hooks
155 @item LaTeX-mode-hook
156 @item latex-mode-hook
157 @item ledit-mode-hook
158 @item lisp-indent-function
159 @item lisp-interaction-mode-hook
160 @item lisp-mode-hook
161 @item list-diary-entries-hook
162 @item load-read-function
163 @item log-message-filter-function
164 @item m2-mode-hook
165 @item mail-citation-hook
166 @item mail-mode-hook
167 @item mail-setup-hook
168 @item make-annotation-hook
169 @item makefile-mode-hook
170 @item map-frame-hook
171 @item mark-diary-entries-hook
172 @item medit-mode-hook
173 @item menu-no-selection-hook
174 @item mh-compose-letter-hook
175 @item mh-folder-mode-hook
176 @item mh-letter-mode-hook
177 @item mim-mode-hook
178 @item minibuffer-exit-hook
179 @item minibuffer-setup-hook
180 @item mode-motion-hook
181 @item mouse-enter-frame-hook
182 @item mouse-leave-frame-hook
183 @item mouse-track-cleanup-hook
184 @item mouse-track-click-hook
185 @item mouse-track-down-hook
186 @item mouse-track-drag-hook
187 @item mouse-track-drag-up-hook
188 @item mouse-track-up-hook
189 @item mouse-yank-function
190 @item news-mode-hook
191 @item news-reply-mode-hook
192 @item news-setup-hook
193 @item nongregorian-diary-listing-hook
194 @item nongregorian-diary-marking-hook
195 @item nroff-mode-hook
196 @item objc-mode-hook
197 @item outline-mode-hook
198 @item perl-mode-hook
199 @item plain-TeX-mode-hook
200 @item post-command-hook
201 @item post-gc-hook
202 @item pre-abbrev-expand-hook
203 @item pre-command-hook
204 @item pre-display-buffer-function
205 @item pre-gc-hook
206 @item pre-idle-hook
207 @item print-diary-entries-hook
208 @item prolog-mode-hook
209 @item protect-innocence-hook
210 @item remove-message-hook
211 @item revert-buffer-function
212 @item revert-buffer-insert-contents-function
213 @item rmail-edit-mode-hook
214 @item rmail-mode-hook
215 @item rmail-retry-setup-hook
216 @item rmail-summary-mode-hook
217 @item scheme-indent-hook
218 @item scheme-mode-hook
219 @item scribe-mode-hook
220 @item select-frame-hook
221 @item send-mail-function
222 @item shell-mode-hook
223 @item shell-set-directory-error-hook
224 @item special-display-function
225 @item suspend-hook
226 @item suspend-resume-hook
227 @item temp-buffer-show-function
228 @item term-setup-hook
229 @item terminal-mode-hook
230 @item terminal-mode-break-hook
231 @item TeX-mode-hook
232 @item tex-mode-hook
233 @item text-mode-hook
234 @item today-visible-calendar-hook
235 @item today-invisible-calendar-hook
236 @item unmap-frame-hook
237 @item vc-checkin-hook
238 @item vc-checkout-writable-buffer-hook
239 @item vc-log-after-operation-hook
240 @item vc-make-buffer-writable-hook
241 @item view-hook
242 @item vm-arrived-message-hook
243 @item vm-arrived-messages-hook
244 @item vm-chop-full-name-function
245 @item vm-display-buffer-hook
246 @item vm-edit-message-hook
247 @item vm-forward-message-hook
248 @item vm-iconify-frame-hook
249 @item vm-inhibit-write-file-hook
250 @item vm-key-functions
251 @item vm-mail-hook
252 @item vm-mail-mode-hook
253 @item vm-menu-setup-hook
254 @item vm-mode-hook
255 @item vm-quit-hook
256 @item vm-rename-current-buffer-function
257 @item vm-reply-hook
258 @item vm-resend-bounced-message-hook
259 @item vm-resend-message-hook
260 @item vm-retrieved-spooled-mail-hook
261 @item vm-select-message-hook
262 @item vm-select-new-message-hook
263 @item vm-select-unread-message-hook
264 @item vm-send-digest-hook
265 @item vm-summary-mode-hook
266 @item vm-summary-pointer-update-hook
267 @item vm-summary-redo-hook
268 @item vm-summary-update-hook
269 @item vm-undisplay-buffer-hook
270 @item vm-visit-folder-hook
271 @item window-configuration-hook
272 @item window-setup-hook
273 @item write-contents-hooks
274 @item write-file-data-hooks
275 @item write-file-hooks
276 @item write-region-annotate-functions
277 @item x-lost-selection-hooks
278 @item x-sent-selection-hooks
279 @item zmacs-activate-region-hook
280 @item zmacs-deactivate-region-hook
281 @item zmacs-update-region-hook
282 @end table