Mercurial > hg > xemacs-beta
comparison man/lispref/modes.texi @ 446:1ccc32a20af4 r21-2-38
Import from CVS: tag r21-2-38
author | cvs |
---|---|
date | Mon, 13 Aug 2007 11:37:21 +0200 |
parents | 576fb035e263 |
children | e6d43c299b9c |
comparison
equal
deleted
inserted
replaced
445:34f3776fcf0e | 446:1ccc32a20af4 |
---|---|
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 Reference Manual}, for the syntax of the local variables section of a file. |
507 | 507 |
508 @cindex file mode specification error | 508 @cindex file mode specification error |
509 @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 |
510 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 |
540 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{-*-}} |
541 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 |
542 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 |
543 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 |
544 @code{hack-local-variables} function does that. @xref{Choosing Modes, , | 544 @code{hack-local-variables} function does that. @xref{Choosing Modes, , |
545 How Major Modes are Chosen, emacs, The XEmacs Reference Manual}. | 545 How Major Modes are Chosen, xemacs, The XEmacs Lisp Reference Manual}. |
546 @end defun | 546 @end defun |
547 | 547 |
548 @defopt default-major-mode | 548 @defopt default-major-mode |
549 This variable holds the default major mode for new buffers. The | 549 This variable holds the default major mode for new buffers. The |
550 standard value is @code{fundamental-mode}. | 550 standard value is @code{fundamental-mode}. |