/[emacs]/emacs/man/custom.texi
ViewVC logotype

Diff of /emacs/man/custom.texi

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.71 by teirllm, Thu Dec 9 01:29:55 2004 UTC revision 1.72 by rms, Wed Dec 29 20:41:05 2004 UTC
# Line 1042  Here's an example of doing this: Line 1042  Here's an example of doing this:
1042  @end example  @end example
1043    
1044    Some ``variable names'' have special meanings in a local variables    Some ``variable names'' have special meanings in a local variables
1045  list: a value for the variable @code{mode} really sets the major mode,  list.  Specifying the ``variable'' @code{mode} really sets the major
1046  and a value for the variable @code{eval} is simply evaluated as an  mode, while any value specified for the ``variable'' @code{eval} is
1047  expression and the value is ignored.  @code{coding}, @code{unibyte},  simply evaluated as an expression (its value is ignored).  A value for
1048  @code{mode} and @code{eval} are not real variables; setting variables  @code{coding} specifies the coding system for character code
1049  named @code{coding}, @code{unibyte}, @code{mode} and @code{eval} in any  conversion of this file, and a value of @code{t} for @code{unibyte}
1050  other context has no special meaning.  @emph{If @code{mode} is used to  says to visit the file in a unibyte buffer.  These four ``variables''
1051  set a major mode, it should be the first ``variable'' in the list.}  are not really variables; setting them in any other context has no
1052  Otherwise, the entries that precede it in the list of the local  special meaning.
 variables are likely to be ignored, since most modes kill all local  
 variables as part of their initialization.  
1053    
1054    You can use the @code{mode} ``variable'' to set minor modes as well as    @emph{If @code{mode} is used to set a major mode, it should be the
1055  major modes; in fact, you can use it more than once, first to set the  first ``variable'' in the list.}  Otherwise, the entries that precede
1056  major mode and then to set minor modes which are specific to particular  it will usually be ignored, since most modes kill all local variables
1057  buffers.  But most minor modes should not be specified in the file in  as part of their initialization.
1058  any fashion, because they represent user preferences.  
1059      You can use the @code{mode} ``variable'' to set minor modes as well
1060    as the major modes; in fact, you can use it more than once, first to
1061    set the major mode and then to set minor modes which are specific to
1062    particular buffers.  But most minor modes should not be specified in
1063    the file at all, regardless of how, because they represent user
1064    preferences.
1065    
1066    For example, you may be tempted to try to turn on Auto Fill mode with    For example, you may be tempted to try to turn on Auto Fill mode with
1067  a local variable list.  That is a mistake.  The choice of Auto Fill mode  a local variable list.  That is a mistake.  The choice of Auto Fill mode

Legend:
Removed from v.1.71  
changed lines
  Added in v.1.72

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26