Mercurial > hg > xemacs-beta
comparison man/lispref/modes.texi @ 371:cc15677e0335 r21-2b1
Import from CVS: tag r21-2b1
author | cvs |
---|---|
date | Mon, 13 Aug 2007 11:03:08 +0200 |
parents | a4f53d9b3154 |
children | 6240c7796c7a |
comparison
equal
deleted
inserted
replaced
370:bd866891f083 | 371:cc15677e0335 |
---|---|
500 @code{enable-local-variables} controls whether to do so. | 500 @code{enable-local-variables} controls whether to do so. |
501 | 501 |
502 If you run @code{normal-mode} interactively, the argument | 502 If you run @code{normal-mode} interactively, the argument |
503 @var{find-file} is normally @code{nil}. In this case, | 503 @var{find-file} is normally @code{nil}. In this case, |
504 @code{normal-mode} unconditionally processes any local variables list. | 504 @code{normal-mode} unconditionally processes any local variables list. |
505 @xref{File variables, , Local Variables in Files, xemacs, The XEmacs | 505 @xref{File variables, , Local Variables in Files, emacs, The XEmacs |
506 Lisp Reference Manual}, for the syntax of the local variables section of | 506 Reference Manual}, for the syntax of the local variables section of a file. |
507 a file. | |
508 | 507 |
509 @cindex file mode specification error | 508 @cindex file mode specification error |
510 @code{normal-mode} uses @code{condition-case} around the call to the | 509 @code{normal-mode} uses @code{condition-case} around the call to the |
511 major mode function, so errors are caught and reported as a @samp{File | 510 major mode function, so errors are caught and reported as a @samp{File |
512 mode specification error}, followed by the original error message. | 511 mode specification error}, followed by the original error message. |
541 current buffer. It may base its decision on the value of the @w{@samp{-*-}} | 540 current buffer. It may base its decision on the value of the @w{@samp{-*-}} |
542 line, on the visited file name (using @code{auto-mode-alist}), or on the | 541 line, on the visited file name (using @code{auto-mode-alist}), or on the |
543 value of a local variable. However, this function does not look for | 542 value of a local variable. However, this function does not look for |
544 the @samp{mode:} local variable near the end of a file; the | 543 the @samp{mode:} local variable near the end of a file; the |
545 @code{hack-local-variables} function does that. @xref{Choosing Modes, , | 544 @code{hack-local-variables} function does that. @xref{Choosing Modes, , |
546 How Major Modes are Chosen, xemacs, The XEmacs Lisp Reference Manual}. | 545 How Major Modes are Chosen, emacs, The XEmacs Reference Manual}. |
547 @end defun | 546 @end defun |
548 | 547 |
549 @defopt default-major-mode | 548 @defopt default-major-mode |
550 This variable holds the default major mode for new buffers. The | 549 This variable holds the default major mode for new buffers. The |
551 standard value is @code{fundamental-mode}. | 550 standard value is @code{fundamental-mode}. |
633 @end group | 632 @end group |
634 @end smallexample | 633 @end smallexample |
635 @end defvar | 634 @end defvar |
636 | 635 |
637 @defvar interpreter-mode-alist | 636 @defvar interpreter-mode-alist |
638 This variable specifies major modes to use for scripts that specify a | 637 This variable specifes major modes to use for scripts that specify a |
639 command interpreter in an @samp{#!} line. Its value is a list of | 638 command interpreter in an @samp{#!} line. Its value is a list of |
640 elements of the form @code{(@var{interpreter} . @var{mode})}; for | 639 elements of the form @code{(@var{interpreter} . @var{mode})}; for |
641 example, @code{("perl" . perl-mode)} is one element present by default. | 640 example, @code{("perl" . perl-mode)} is one element present by default. |
642 The element says to use mode @var{mode} if the file specifies | 641 The element says to use mode @var{mode} if the file specifies |
643 @var{interpreter}. | 642 @var{interpreter}. |