Mercurial > emacs
comparison lispref/variables.texi @ 47667:96b260e0ff3d
New major mode "SES" for spreadsheets.
New function (unsafep X) determines whether X is a safe Lisp form.
New support module testcover.el for coverage testing.
author | Jonathan Yavner <jyavner@member.fsf.org> |
---|---|
date | Sat, 28 Sep 2002 18:45:56 +0000 |
parents | 0616af8d6d42 |
children | 2d6d956312cd |
comparison
equal
deleted
inserted
replaced
47666:537f1778caaf | 47667:96b260e0ff3d |
---|---|
1736 If a file local variable list could specify the a function that will | 1736 If a file local variable list could specify the a function that will |
1737 be called later, or an expression that will be executed later, simply | 1737 be called later, or an expression that will be executed later, simply |
1738 visiting a file could take over your Emacs. To prevent this, Emacs | 1738 visiting a file could take over your Emacs. To prevent this, Emacs |
1739 takes care not to allow local variable lists to set such variables. | 1739 takes care not to allow local variable lists to set such variables. |
1740 | 1740 |
1741 For one thing, any variable whose name ends in @samp{-function}, | 1741 For one thing, any variable whose name ends in @samp{-command}, |
1742 @samp{-functions}, @samp{-hook}, @samp{-hooks}, @samp{-form}, | 1742 @same{-frame-alist}, @samp{-function}, @samp{-functions}, |
1743 @samp{-forms}, @samp{-program}, @samp{-command} or @samp{-predicate} | 1743 @samp{-hook}, @samp{-hooks}, @samp{-form}, @samp{-forms}, @samp{-map}, |
1744 cannot be set in a local variable list. In general, you should use such | 1744 @samp{-map-alist}, @samp{-mode-alist}, @samp{-program}, or |
1745 a name whenever it is appropriate for the variable's meaning. | 1745 @samp{-predicate} cannot be set in a local variable list. In general, |
1746 you should use such a name whenever it is appropriate for the | |
1747 variable's meaning. The variables @samp{font-lock-keywords}, | |
1748 @samp{font-lock-keywords-[0-9]}, and | |
1749 @samp{font-lock-syntactic-keywords} cannot be set in a local variable | |
1750 list, either. | |
1746 | 1751 |
1747 In addition, any variable whose name has a non-@code{nil} | 1752 In addition, any variable whose name has a non-@code{nil} |
1748 @code{risky-local-variable} property is also ignored. So are | 1753 @code{risky-local-variable} property is also ignored. So are all |
1749 all variables listed in @code{ignored-local-variables}: | 1754 variables listed in @code{ignored-local-variables}: |
1750 | 1755 |
1751 @defvar ignored-local-variables | 1756 @defvar ignored-local-variables |
1752 This variable holds a list of variables that should not be | 1757 This variable holds a list of variables that should not be |
1753 set by a file's local variables list. Any value specified | 1758 set by a file's local variables list. Any value specified |
1754 for one of these variables is ignored. | 1759 for one of these variables is ignored. |
1755 @end defvar | 1760 @end defvar |
1761 | |
1762 @defun risky-local-variable-p sym | |
1763 Returns non-nil if @var{sym} is risky for any of the reasons stated above. | |
1764 @end defun | |
1756 | 1765 |
1757 The @samp{Eval:} ``variable'' is also a potential loophole, so Emacs | 1766 The @samp{Eval:} ``variable'' is also a potential loophole, so Emacs |
1758 normally asks for confirmation before handling it. | 1767 normally asks for confirmation before handling it. |
1759 | 1768 |
1760 @defopt enable-local-eval | 1769 @defopt enable-local-eval |