Mercurial > hg > xemacs-beta
comparison man/lispref/modes.texi @ 367:a4f53d9b3154 r21-1-13
Import from CVS: tag r21-1-13
author | cvs |
---|---|
date | Mon, 13 Aug 2007 11:01:07 +0200 |
parents | 341dac730539 |
children | cc15677e0335 |
comparison
equal
deleted
inserted
replaced
366:83d76f480a59 | 367:a4f53d9b3154 |
---|---|
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, emacs, The XEmacs | 505 @xref{File variables, , Local Variables in Files, xemacs, The XEmacs |
506 Reference Manual}, for the syntax of the local variables section of a file. | 506 Lisp Reference Manual}, for the syntax of the local variables section of |
507 a file. | |
507 | 508 |
508 @cindex file mode specification error | 509 @cindex file mode specification error |
509 @code{normal-mode} uses @code{condition-case} around the call to the | 510 @code{normal-mode} uses @code{condition-case} around the call to the |
510 major mode function, so errors are caught and reported as a @samp{File | 511 major mode function, so errors are caught and reported as a @samp{File |
511 mode specification error}, followed by the original error message. | 512 mode specification error}, followed by the original error message. |
540 current buffer. It may base its decision on the value of the @w{@samp{-*-}} | 541 current buffer. It may base its decision on the value of the @w{@samp{-*-}} |
541 line, on the visited file name (using @code{auto-mode-alist}), or on the | 542 line, on the visited file name (using @code{auto-mode-alist}), or on the |
542 value of a local variable. However, this function does not look for | 543 value of a local variable. However, this function does not look for |
543 the @samp{mode:} local variable near the end of a file; the | 544 the @samp{mode:} local variable near the end of a file; the |
544 @code{hack-local-variables} function does that. @xref{Choosing Modes, , | 545 @code{hack-local-variables} function does that. @xref{Choosing Modes, , |
545 How Major Modes are Chosen, emacs, The XEmacs Reference Manual}. | 546 How Major Modes are Chosen, xemacs, The XEmacs Lisp Reference Manual}. |
546 @end defun | 547 @end defun |
547 | 548 |
548 @defopt default-major-mode | 549 @defopt default-major-mode |
549 This variable holds the default major mode for new buffers. The | 550 This variable holds the default major mode for new buffers. The |
550 standard value is @code{fundamental-mode}. | 551 standard value is @code{fundamental-mode}. |