aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRichard M. Stallman2005-06-18 13:58:02 +0000
committerRichard M. Stallman2005-06-18 13:58:02 +0000
commita61a6fd9312d4acbfed8fd2d644f9c153a39d25a (patch)
tree1fc85994d69c1f7efc4f706e5d206d733426a89b
parent342fd6cd64f3199cc46a08b28c1b7b15abcc168e (diff)
downloademacs-a61a6fd9312d4acbfed8fd2d644f9c153a39d25a.tar.gz
emacs-a61a6fd9312d4acbfed8fd2d644f9c153a39d25a.zip
Fix formatting ugliness.
(Variable Aliases): Simplify.
-rw-r--r--lispref/variables.texi51
1 files changed, 22 insertions, 29 deletions
diff --git a/lispref/variables.texi b/lispref/variables.texi
index 0f546af67b9..8ee941892c9 100644
--- a/lispref/variables.texi
+++ b/lispref/variables.texi
@@ -1722,24 +1722,24 @@ be called later, or an expression that would be executed later, simply
1722visiting a file could take over your Emacs. To prevent this, Emacs 1722visiting a file could take over your Emacs. To prevent this, Emacs
1723takes care not to allow to set such file local variables. 1723takes care not to allow to set such file local variables.
1724 1724
1725 For one thing, any variable whose name ends in @samp{-command}, 1725 For one thing, any variable whose name ends in any of
1726@samp{-frame-alist}, @samp{-function}, @samp{-functions}, 1726@samp{-command}, @samp{-frame-alist}, @samp{-function},
1727@samp{-hook}, @samp{-hooks}, @samp{-form}, @samp{-forms}, @samp{-map}, 1727@samp{-functions}, @samp{-hook}, @samp{-hooks}, @samp{-form},
1728@samp{-map-alist}, @samp{-mode-alist}, @samp{-program}, or 1728@samp{-forms}, @samp{-map}, @samp{-map-alist}, @samp{-mode-alist},
1729@samp{-predicate} cannot be given a file local value. In general, 1729@samp{-program}, or @samp{-predicate} cannot be given a file local
1730you should use such a name whenever it is appropriate for the 1730value. In general, you should use such a name whenever it is
1731variable's meaning. The variables @samp{font-lock-keywords}, 1731appropriate for the variable's meaning. The variables
1732@samp{font-lock-keywords-[0-9]}, and 1732@samp{font-lock-keywords}, @samp{font-lock-keywords} followed by a
1733@samp{font-lock-syntactic-keywords} cannot be given file local values either. 1733digit, and @samp{font-lock-syntactic-keywords} cannot be given file
1734These rules can be overridden by giving the variable's 1734local values either. These rules can be overridden by giving the
1735name a non-@code{nil} @code{safe-local-variable} property. If one 1735variable's name a non-@code{nil} @code{safe-local-variable} property.
1736gives it a @code{safe-local-variable} property of @code{t}, then one 1736If one gives it a @code{safe-local-variable} property of @code{t},
1737can give the variable any file local value. One can also give any 1737then one can give the variable any file local value. One can also
1738symbol, including the above, a @code{safe-local-variable} property 1738give any symbol, including the above, a @code{safe-local-variable}
1739that is a function taking exactly one argument. In that case, giving 1739property that is a function taking exactly one argument. In that
1740a variable with that name a file local value is only allowed if the 1740case, giving a variable with that name a file local value is only
1741function returns non-@code{nil} when called with that value as 1741allowed if the function returns non-@code{nil} when called with that
1742argument. 1742value as argument.
1743 1743
1744 In addition, any variable whose name has a non-@code{nil} 1744 In addition, any variable whose name has a non-@code{nil}
1745@code{risky-local-variable} property is also ignored. So are all 1745@code{risky-local-variable} property is also ignored. So are all
@@ -1822,19 +1822,12 @@ same time using the macro @code{define-obsolete-variable-alias}.
1822 1822
1823@defmac define-obsolete-variable-alias obsolete-name current-name &optional when docstring 1823@defmac define-obsolete-variable-alias obsolete-name current-name &optional when docstring
1824This macro marks the variable @var{obsolete-name} as obsolete and also 1824This macro marks the variable @var{obsolete-name} as obsolete and also
1825makes it an alias for the variable @var{current-name}. A typical call has 1825makes it an alias for the variable @var{current-name}. It is
1826the form: 1826equivalent to the following:
1827 1827
1828@example 1828@example
1829(define-obsolete-variable-alias 'old-var 'new-var "22.1" "Doc.") 1829(defvaralias @var{obsolete-name} @var{current-name} @var{docstring})
1830@end example 1830(make-obsolete-variable @var{obsolete-name} @var{current-name} @var{when})
1831
1832@noindent
1833which is equivalent to the following two lines of code:
1834
1835@example
1836(defvaralias 'oldvar 'newvar "Doc.")
1837(make-obsolete-variable 'old-var 'new-var "22.1")
1838@end example 1831@end example
1839@end defmac 1832@end defmac
1840 1833