Sync up with r21-2-43.
[chise/xemacs-chise.git-] / info / lispref.info-47
1 This is ../info/lispref.info, produced by makeinfo version 4.0b from
2 lispref/lispref.texi.
3
4 INFO-DIR-SECTION XEmacs Editor
5 START-INFO-DIR-ENTRY
6 * Lispref: (lispref).           XEmacs Lisp Reference Manual.
7 END-INFO-DIR-ENTRY
8
9    Edition History:
10
11    GNU Emacs Lisp Reference Manual Second Edition (v2.01), May 1993 GNU
12 Emacs Lisp Reference Manual Further Revised (v2.02), August 1993 Lucid
13 Emacs Lisp Reference Manual (for 19.10) First Edition, March 1994
14 XEmacs Lisp Programmer's Manual (for 19.12) Second Edition, April 1995
15 GNU Emacs Lisp Reference Manual v2.4, June 1995 XEmacs Lisp
16 Programmer's Manual (for 19.13) Third Edition, July 1995 XEmacs Lisp
17 Reference Manual (for 19.14 and 20.0) v3.1, March 1996 XEmacs Lisp
18 Reference Manual (for 19.15 and 20.1, 20.2, 20.3) v3.2, April, May,
19 November 1997 XEmacs Lisp Reference Manual (for 21.0) v3.3, April 1998
20
21    Copyright (C) 1990, 1991, 1992, 1993, 1994, 1995 Free Software
22 Foundation, Inc.  Copyright (C) 1994, 1995 Sun Microsystems, Inc.
23 Copyright (C) 1995, 1996 Ben Wing.
24
25    Permission is granted to make and distribute verbatim copies of this
26 manual provided the copyright notice and this permission notice are
27 preserved on all copies.
28
29    Permission is granted to copy and distribute modified versions of
30 this manual under the conditions for verbatim copying, provided that the
31 entire resulting derived work is distributed under the terms of a
32 permission notice identical to this one.
33
34    Permission is granted to copy and distribute translations of this
35 manual into another language, under the above conditions for modified
36 versions, except that this permission notice may be stated in a
37 translation approved by the Foundation.
38
39    Permission is granted to copy and distribute modified versions of
40 this manual under the conditions for verbatim copying, provided also
41 that the section entitled "GNU General Public License" is included
42 exactly as in the original, and provided that the entire resulting
43 derived work is distributed under the terms of a permission notice
44 identical to this one.
45
46    Permission is granted to copy and distribute translations of this
47 manual into another language, under the above conditions for modified
48 versions, except that the section entitled "GNU General Public License"
49 may be included in a translation approved by the Free Software
50 Foundation instead of in the original English.
51
52 \1f
53 File: lispref.info,  Node: Standard Buffer-Local Variables,  Next: Standard Keymaps,  Prev: Standard Errors,  Up: Top
54
55 Buffer-Local Variables
56 **********************
57
58    The table below lists the general-purpose Emacs variables that are
59 automatically local (when set) in each buffer.  Many Lisp packages
60 define such variables for their internal use; we don't list them here.
61
62 `abbrev-mode'
63      *note Abbrevs::
64
65 `auto-fill-function'
66      *note Auto Filling::
67
68 `buffer-auto-save-file-name'
69      *note Auto-Saving::
70
71 `buffer-backed-up'
72      *note Backup Files::
73
74 `buffer-display-table'
75      *note Display Tables::
76
77 `buffer-file-format'
78      *note Format Conversion::
79
80 `buffer-file-name'
81      *note Buffer File Name::
82
83 `buffer-file-number'
84      *note Buffer File Name::
85
86 `buffer-file-truename'
87      *note Buffer File Name::
88
89 `buffer-file-type'
90      *note Files and MS-DOS::
91
92 `buffer-invisibility-spec'
93      *note Invisible Text::
94
95 `buffer-offer-save'
96      *note Saving Buffers::
97
98 `buffer-read-only'
99      *note Read Only Buffers::
100
101 `buffer-saved-size'
102      *note Point::
103
104 `buffer-undo-list'
105      *note Undo::
106
107 `cache-long-line-scans'
108      *note Text Lines::
109
110 `case-fold-search'
111      *note Searching and Case::
112
113 `ctl-arrow'
114      *note Usual Display::
115
116 `comment-column'
117      *note Comments: (xemacs)Comments.
118
119 `default-directory'
120      *note System Environment::
121
122 `defun-prompt-regexp'
123      *note List Motion::
124
125 `fill-column'
126      *note Auto Filling::
127
128 `goal-column'
129      *note Moving Point: (xemacs)Moving Point.
130
131 `left-margin'
132      *note Indentation::
133
134 `local-abbrev-table'
135      *note Abbrevs::
136
137 `local-write-file-hooks'
138      *note Saving Buffers::
139
140 `major-mode'
141      *note Mode Help::
142
143 `mark-active'
144      *note The Mark::
145
146 `mark-ring'
147      *note The Mark::
148
149 `minor-modes'
150      *note Minor Modes::
151
152 `modeline-format'
153      *note Modeline Data::
154
155 `modeline-buffer-identification'
156      *note Modeline Variables::
157
158 `modeline-format'
159      *note Modeline Data::
160
161 `modeline-modified'
162      *note Modeline Variables::
163
164 `modeline-process'
165      *note Modeline Variables::
166
167 `mode-name'
168      *note Modeline Variables::
169
170 `overwrite-mode'
171      *note Insertion::
172
173 `paragraph-separate'
174      *note Standard Regexps::
175
176 `paragraph-start'
177      *note Standard Regexps::
178
179 `point-before-scroll'
180      Used for communication between mouse commands and scroll-bar
181      commands.
182
183 `require-final-newline'
184      *note Insertion::
185
186 `selective-display'
187      *note Selective Display::
188
189 `selective-display-ellipses'
190      *note Selective Display::
191
192 `tab-width'
193      *note Usual Display::
194
195 `truncate-lines'
196      *note Truncation::
197
198 `vc-mode'
199      *note Modeline Variables::
200
201 \1f
202 File: lispref.info,  Node: Standard Keymaps,  Next: Standard Hooks,  Prev: Standard Buffer-Local Variables,  Up: Top
203
204 Standard Keymaps
205 ****************
206
207    The following symbols are used as the names for various keymaps.
208 Some of these exist when XEmacs is first started, others are loaded
209 only when their respective mode is used.  This is not an exhaustive
210 list.
211
212    Almost all of these maps are used as local maps.  Indeed, of the
213 modes that presently exist, only Vip mode and Terminal mode ever change
214 the global keymap.
215
216 `bookmark-map'
217      A keymap containing bindings to bookmark functions.
218
219 `Buffer-menu-mode-map'
220      A keymap used by Buffer Menu mode.
221
222 `c++-mode-map'
223      A keymap used by C++ mode.
224
225 `c-mode-map'
226      A keymap used by C mode.  A sparse keymap used by C mode.
227
228 `command-history-map'
229      A keymap used by Command History mode.
230
231 `ctl-x-4-map'
232      A keymap for subcommands of the prefix `C-x 4'.
233
234 `ctl-x-5-map'
235      A keymap for subcommands of the prefix `C-x 5'.
236
237 `ctl-x-map'
238      A keymap for `C-x' commands.
239
240 `debugger-mode-map'
241      A keymap used by Debugger mode.
242
243 `dired-mode-map'
244      A keymap for `dired-mode' buffers.
245
246 `edit-abbrevs-map'
247      A keymap used in `edit-abbrevs'.
248
249 `edit-tab-stops-map'
250      A keymap used in `edit-tab-stops'.
251
252 `electric-buffer-menu-mode-map'
253      A keymap used by Electric Buffer Menu mode.
254
255 `electric-history-map'
256      A keymap used by Electric Command History mode.
257
258 `emacs-lisp-mode-map'
259      A keymap used by Emacs Lisp mode.
260
261 `help-map'
262      A keymap for characters following the Help key.
263
264 `Helper-help-map'
265      A keymap used by the help utility package.
266      It has the same keymap in its value cell and in its function cell.
267
268 `Info-edit-map'
269      A keymap used by the `e' command of Info.
270
271 `Info-mode-map'
272      A keymap containing Info commands.
273
274 `isearch-mode-map'
275      A keymap that defines the characters you can type within
276      incremental search.
277
278 `itimer-edit-map'
279      A keymap used when in Itimer Edit mode.
280
281 `lisp-interaction-mode-map'
282      A keymap used by Lisp mode.
283
284 `lisp-mode-map'
285      A keymap used by Lisp mode.
286
287      A keymap for minibuffer input with completion.
288
289 `minibuffer-local-isearch-map'
290      A keymap for editing isearch strings in the minibuffer.
291
292 `minibuffer-local-map'
293      Default keymap to use when reading from the minibuffer.
294
295 `minibuffer-local-must-match-map'
296      A keymap for minibuffer input with completion, for exact match.
297
298 `mode-specific-map'
299      The keymap for characters following `C-c'.  Note, this is in the
300      global map.  This map is not actually mode specific: its name was
301      chosen to be informative for the user in `C-h b'
302      (`display-bindings'), where it describes the main use of the `C-c'
303      prefix key.
304
305 `modeline-map'
306      The keymap consulted for mouse-clicks on the modeline of a window.
307
308 `objc-mode-map'
309      A keymap used in Objective C mode as a local map.
310
311 `occur-mode-map'
312      A local keymap used by Occur mode.
313
314 `overriding-local-map'
315      A keymap that overrides all other local keymaps.
316
317 `query-replace-map'
318      A local keymap used for responses in `query-replace' and related
319      commands; also for `y-or-n-p' and `map-y-or-n-p'.  The functions
320      that use this map do not support prefix keys; they look up one
321      event at a time.
322
323 `read-expression-map'
324      The minibuffer keymap used for reading Lisp expressions.
325
326 `read-shell-command-map'
327      The minibuffer keymap used by `shell-command' and related commands.
328
329 `shared-lisp-mode-map'
330      A keymap for commands shared by all sorts of Lisp modes.
331
332 `text-mode-map'
333      A keymap used by Text mode.
334
335 `toolbar-map'
336      The keymap consulted for mouse-clicks over a toolbar.
337
338 `view-mode-map'
339      A keymap used by View mode.
340
341 \1f
342 File: lispref.info,  Node: Standard Hooks,  Next: Index,  Prev: Standard Keymaps,  Up: Top
343
344 Standard Hooks
345 **************
346
347    The following is a list of hook variables that let you provide
348 functions to be called from within Emacs on suitable occasions.
349
350    Most of these variables have names ending with `-hook'.  They are
351 "normal hooks", run by means of `run-hooks'.  The value of such a hook
352 is a list of functions.  The recommended way to put a new function on
353 such a hook is to call `add-hook'.  *Note Hooks::, for more information
354 about using hooks.
355
356    The variables whose names end in `-function' have single functions
357 as their values.  Usually there is a specific reason why the variable is
358 not a normal hook, such as the need to pass arguments to the function.
359 (In older Emacs versions, some of these variables had names ending in
360 `-hook' even though they were not normal hooks.)
361
362    The variables whose names end in `-hooks' or `-functions' have lists
363 of functions as their values, but these functions are called in a
364 special way (they are passed arguments, or else their values are used).
365
366 `activate-menubar-hook'
367
368 `activate-popup-menu-hook'
369
370 `ad-definition-hooks'
371
372 `adaptive-fill-function'
373
374 `add-log-current-defun-function'
375
376 `after-change-functions'
377
378 `after-delete-annotation-hook'
379
380 `after-init-hook'
381
382 `after-insert-file-functions'
383
384 `after-revert-hook'
385
386 `after-save-hook'
387
388 `after-set-visited-file-name-hooks'
389
390 `after-write-file-hooks'
391
392 `auto-fill-function'
393
394 `auto-save-hook'
395
396 `before-change-functions'
397
398 `before-delete-annotation-hook'
399
400 `before-init-hook'
401
402 `before-revert-hook'
403
404 `blink-paren-function'
405
406 `buffers-menu-switch-to-buffer-function'
407
408 `c++-mode-hook'
409
410 `c-delete-function'
411
412 `c-mode-common-hook'
413
414 `c-mode-hook'
415
416 `c-special-indent-hook'
417
418 `calendar-load-hook'
419
420 `change-major-mode-hook'
421
422 `command-history-hook'
423
424 `comment-indent-function'
425
426 `compilation-buffer-name-function'
427
428 `compilation-exit-message-function'
429
430 `compilation-finish-function'
431
432 `compilation-parse-errors-function'
433
434 `compilation-mode-hook'
435
436 `create-console-hook'
437
438 `create-device-hook'
439
440 `create-frame-hook'
441
442 `dabbrev-friend-buffer-function'
443
444 `dabbrev-select-buffers-function'
445
446 `delete-console-hook'
447
448 `delete-device-hook'
449
450 `delete-frame-hook'
451
452 `deselect-frame-hook'
453
454 `diary-display-hook'
455
456 `diary-hook'
457
458 `dired-after-readin-hook'
459
460 `dired-before-readin-hook'
461
462 `dired-load-hook'
463
464 `dired-mode-hook'
465
466 `disabled-command-hook'
467
468 `display-buffer-function'
469
470 `ediff-after-setup-control-frame-hook'
471
472 `ediff-after-setup-windows-hook'
473
474 `ediff-before-setup-control-frame-hook'
475
476 `ediff-before-setup-windows-hook'
477
478 `ediff-brief-help-message-function'
479
480 `ediff-cleanup-hook'
481
482 `ediff-control-frame-position-function'
483
484 `ediff-display-help-hook'
485
486 `ediff-focus-on-regexp-matches-function'
487
488 `ediff-forward-word-function'
489
490 `ediff-hide-regexp-matches-function'
491
492 `ediff-keymap-setup-hook'
493
494 `ediff-load-hook'
495
496 `ediff-long-help-message-function'
497
498 `ediff-make-wide-display-function'
499
500 `ediff-merge-split-window-function'
501
502 `ediff-meta-action-function'
503
504 `ediff-meta-redraw-function'
505
506 `ediff-mode-hook'
507
508 `ediff-prepare-buffer-hook'
509
510 `ediff-quit-hook'
511
512 `ediff-registry-setup-hook'
513
514 `ediff-select-hook'
515
516 `ediff-session-action-function'
517
518 `ediff-session-group-setup-hook'
519
520 `ediff-setup-diff-regions-function'
521
522 `ediff-show-registry-hook'
523
524 `ediff-show-session-group-hook'
525
526 `ediff-skip-diff-region-function'
527
528 `ediff-split-window-function'
529
530 `ediff-startup-hook'
531
532 `ediff-suspend-hook'
533
534 `ediff-toggle-read-only-function'
535
536 `ediff-unselect-hook'
537
538 `ediff-window-setup-function'
539
540 `edit-picture-hook'
541
542 `electric-buffer-menu-mode-hook'
543
544 `electric-command-history-hook'
545
546 `electric-help-mode-hook'
547
548 `emacs-lisp-mode-hook'
549
550 `fill-paragraph-function'
551
552 `find-file-hooks'
553
554 `find-file-not-found-hooks'
555
556 `first-change-hook'
557
558 `font-lock-after-fontify-buffer-hook'
559
560 `font-lock-beginning-of-syntax-function'
561
562 `font-lock-mode-hook'
563
564 `fume-found-function-hook'
565
566 `fume-list-mode-hook'
567
568 `fume-rescan-buffer-hook'
569
570 `fume-sort-function'
571
572 `gnus-startup-hook'
573
574 `hack-local-variables-hook'
575
576 `highlight-headers-follow-url-function'
577
578 `hyper-apropos-mode-hook'
579
580 `indent-line-function'
581
582 `indent-mim-hook'
583
584 `indent-region-function'
585
586 `initial-calendar-window-hook'
587
588 `isearch-mode-end-hook'
589
590 `isearch-mode-hook'
591
592 `java-mode-hook'
593
594 `kill-buffer-hook'
595
596 `kill-buffer-query-functions'
597
598 `kill-emacs-hook'
599
600 `kill-emacs-query-functions'
601
602 `kill-hooks'
603
604 `LaTeX-mode-hook'
605
606 `latex-mode-hook'
607
608 `ledit-mode-hook'
609
610 `lisp-indent-function'
611
612 `lisp-interaction-mode-hook'
613
614 `lisp-mode-hook'
615
616 `list-diary-entries-hook'
617
618 `load-read-function'
619
620 `log-message-filter-function'
621
622 `m2-mode-hook'
623
624 `mail-citation-hook'
625
626 `mail-mode-hook'
627
628 `mail-setup-hook'
629
630 `make-annotation-hook'
631
632 `makefile-mode-hook'
633
634 `map-frame-hook'
635
636 `mark-diary-entries-hook'
637
638 `medit-mode-hook'
639
640 `menu-no-selection-hook'
641
642 `mh-compose-letter-hook'
643
644 `mh-folder-mode-hook'
645
646 `mh-letter-mode-hook'
647
648 `mim-mode-hook'
649
650 `minibuffer-exit-hook'
651
652 `minibuffer-setup-hook'
653
654 `mode-motion-hook'
655
656 `mouse-enter-frame-hook'
657
658 `mouse-leave-frame-hook'
659
660 `mouse-track-cleanup-hook'
661
662 `mouse-track-click-hook'
663
664 `mouse-track-down-hook'
665
666 `mouse-track-drag-hook'
667
668 `mouse-track-drag-up-hook'
669
670 `mouse-track-up-hook'
671
672 `mouse-yank-function'
673
674 `news-mode-hook'
675
676 `news-reply-mode-hook'
677
678 `news-setup-hook'
679
680 `nongregorian-diary-listing-hook'
681
682 `nongregorian-diary-marking-hook'
683
684 `nroff-mode-hook'
685
686 `objc-mode-hook'
687
688 `outline-mode-hook'
689
690 `perl-mode-hook'
691
692 `plain-TeX-mode-hook'
693
694 `post-command-hook'
695
696 `post-gc-hook'
697
698 `pre-abbrev-expand-hook'
699
700 `pre-command-hook'
701
702 `pre-display-buffer-function'
703
704 `pre-gc-hook'
705
706 `pre-idle-hook'
707
708 `print-diary-entries-hook'
709
710 `prolog-mode-hook'
711
712 `protect-innocence-hook'
713
714 `remove-message-hook'
715
716 `revert-buffer-function'
717
718 `revert-buffer-insert-contents-function'
719
720 `rmail-edit-mode-hook'
721
722 `rmail-mode-hook'
723
724 `rmail-retry-setup-hook'
725
726 `rmail-summary-mode-hook'
727
728 `scheme-indent-hook'
729
730 `scheme-mode-hook'
731
732 `scribe-mode-hook'
733
734 `select-frame-hook'
735
736 `send-mail-function'
737
738 `shell-mode-hook'
739
740 `shell-set-directory-error-hook'
741
742 `special-display-function'
743
744 `suspend-hook'
745
746 `suspend-resume-hook'
747
748 `temp-buffer-show-function'
749
750 `term-setup-hook'
751
752 `terminal-mode-hook'
753
754 `terminal-mode-break-hook'
755
756 `TeX-mode-hook'
757
758 `tex-mode-hook'
759
760 `text-mode-hook'
761
762 `today-visible-calendar-hook'
763
764 `today-invisible-calendar-hook'
765
766 `tooltalk-message-handler-hook'
767
768 `tooltalk-pattern-handler-hook'
769
770 `tooltalk-unprocessed-message-hook'
771
772 `unmap-frame-hook'
773
774 `vc-checkin-hook'
775
776 `vc-checkout-writable-buffer-hook'
777
778 `vc-log-after-operation-hook'
779
780 `vc-make-buffer-writable-hook'
781
782 `view-hook'
783
784 `vm-arrived-message-hook'
785
786 `vm-arrived-messages-hook'
787
788 `vm-chop-full-name-function'
789
790 `vm-display-buffer-hook'
791
792 `vm-edit-message-hook'
793
794 `vm-forward-message-hook'
795
796 `vm-iconify-frame-hook'
797
798 `vm-inhibit-write-file-hook'
799
800 `vm-key-functions'
801
802 `vm-mail-hook'
803
804 `vm-mail-mode-hook'
805
806 `vm-menu-setup-hook'
807
808 `vm-mode-hook'
809
810 `vm-quit-hook'
811
812 `vm-rename-current-buffer-function'
813
814 `vm-reply-hook'
815
816 `vm-resend-bounced-message-hook'
817
818 `vm-resend-message-hook'
819
820 `vm-retrieved-spooled-mail-hook'
821
822 `vm-select-message-hook'
823
824 `vm-select-new-message-hook'
825
826 `vm-select-unread-message-hook'
827
828 `vm-send-digest-hook'
829
830 `vm-summary-mode-hook'
831
832 `vm-summary-pointer-update-hook'
833
834 `vm-summary-redo-hook'
835
836 `vm-summary-update-hook'
837
838 `vm-undisplay-buffer-hook'
839
840 `vm-visit-folder-hook'
841
842 `window-setup-hook'
843
844 `write-contents-hooks'
845
846 `write-file-data-hooks'
847
848 `write-file-hooks'
849
850 `write-region-annotate-functions'
851
852 `x-lost-selection-hooks'
853
854 `x-sent-selection-hooks'
855
856 `zmacs-activate-region-hook'
857
858 `zmacs-deactivate-region-hook'
859
860 `zmacs-update-region-hook'