diff options
| author | Richard M. Stallman | 2005-06-18 13:58:02 +0000 |
|---|---|---|
| committer | Richard M. Stallman | 2005-06-18 13:58:02 +0000 |
| commit | a61a6fd9312d4acbfed8fd2d644f9c153a39d25a (patch) | |
| tree | 1fc85994d69c1f7efc4f706e5d206d733426a89b | |
| parent | 342fd6cd64f3199cc46a08b28c1b7b15abcc168e (diff) | |
| download | emacs-a61a6fd9312d4acbfed8fd2d644f9c153a39d25a.tar.gz emacs-a61a6fd9312d4acbfed8fd2d644f9c153a39d25a.zip | |
Fix formatting ugliness.
(Variable Aliases): Simplify.
| -rw-r--r-- | lispref/variables.texi | 51 |
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 | |||
| 1722 | visiting a file could take over your Emacs. To prevent this, Emacs | 1722 | visiting a file could take over your Emacs. To prevent this, Emacs |
| 1723 | takes care not to allow to set such file local variables. | 1723 | takes 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 |
| 1730 | you should use such a name whenever it is appropriate for the | 1730 | value. In general, you should use such a name whenever it is |
| 1731 | variable's meaning. The variables @samp{font-lock-keywords}, | 1731 | appropriate 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. | 1733 | digit, and @samp{font-lock-syntactic-keywords} cannot be given file |
| 1734 | These rules can be overridden by giving the variable's | 1734 | local values either. These rules can be overridden by giving the |
| 1735 | name a non-@code{nil} @code{safe-local-variable} property. If one | 1735 | variable's name a non-@code{nil} @code{safe-local-variable} property. |
| 1736 | gives it a @code{safe-local-variable} property of @code{t}, then one | 1736 | If one gives it a @code{safe-local-variable} property of @code{t}, |
| 1737 | can give the variable any file local value. One can also give any | 1737 | then one can give the variable any file local value. One can also |
| 1738 | symbol, including the above, a @code{safe-local-variable} property | 1738 | give any symbol, including the above, a @code{safe-local-variable} |
| 1739 | that is a function taking exactly one argument. In that case, giving | 1739 | property that is a function taking exactly one argument. In that |
| 1740 | a variable with that name a file local value is only allowed if the | 1740 | case, giving a variable with that name a file local value is only |
| 1741 | function returns non-@code{nil} when called with that value as | 1741 | allowed if the function returns non-@code{nil} when called with that |
| 1742 | argument. | 1742 | value 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 |
| 1824 | This macro marks the variable @var{obsolete-name} as obsolete and also | 1824 | This macro marks the variable @var{obsolete-name} as obsolete and also |
| 1825 | makes it an alias for the variable @var{current-name}. A typical call has | 1825 | makes it an alias for the variable @var{current-name}. It is |
| 1826 | the form: | 1826 | equivalent 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 | ||
| 1833 | which 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 | ||