comparison man/custom.texi @ 59192:f6c4c15febd7

(File Variables): Clarify previous change.
author Richard M. Stallman <rms@gnu.org>
date Wed, 29 Dec 2004 20:41:05 +0000
parents 2e075e3c65a4
children b7abe21b4ff3 95879cc1ed20
comparison
equal deleted inserted replaced
59191:f6d6e52c03a4 59192:f6c4c15febd7
1040 # -Dmumble=blaah" 1040 # -Dmumble=blaah"
1041 # End: 1041 # End:
1042 @end example 1042 @end example
1043 1043
1044 Some ``variable names'' have special meanings in a local variables 1044 Some ``variable names'' have special meanings in a local variables
1045 list: a value for the variable @code{mode} really sets the major mode, 1045 list. Specifying the ``variable'' @code{mode} really sets the major
1046 and a value for the variable @code{eval} is simply evaluated as an 1046 mode, while any value specified for the ``variable'' @code{eval} is
1047 expression and the value is ignored. @code{coding}, @code{unibyte}, 1047 simply evaluated as an expression (its value is ignored). A value for
1048 @code{mode} and @code{eval} are not real variables; setting variables 1048 @code{coding} specifies the coding system for character code
1049 named @code{coding}, @code{unibyte}, @code{mode} and @code{eval} in any 1049 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 1050 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.} 1051 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 1052 special meaning.
1053 variables are likely to be ignored, since most modes kill all local 1053
1054 variables as part of their initialization. 1054 @emph{If @code{mode} is used to set a major mode, it should be the
1055 1055 first ``variable'' in the list.} Otherwise, the entries that precede
1056 You can use the @code{mode} ``variable'' to set minor modes as well as 1056 it will usually be ignored, since most modes kill all local variables
1057 major modes; in fact, you can use it more than once, first to set the 1057 as part of their initialization.
1058 major mode and then to set minor modes which are specific to particular 1058
1059 buffers. But most minor modes should not be specified in the file in 1059 You can use the @code{mode} ``variable'' to set minor modes as well
1060 any fashion, because they represent user preferences. 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.
1061 1065
1062 For example, you may be tempted to try to turn on Auto Fill mode with 1066 For example, you may be tempted to try to turn on Auto Fill mode with
1063 a local variable list. That is a mistake. The choice of Auto Fill mode 1067 a local variable list. That is a mistake. The choice of Auto Fill mode
1064 or not is a matter of individual taste, not a matter of the contents of 1068 or not is a matter of individual taste, not a matter of the contents of
1065 particular files. If you want to use Auto Fill, set up major mode hooks 1069 particular files. If you want to use Auto Fill, set up major mode hooks