Mercurial > emacs
changeset 52993:c17a620e1ff3
(risky-local-variable-p): Make second argument optional.
author | Luc Teirlinck <teirllm@auburn.edu> |
---|---|
date | Wed, 05 Nov 2003 04:06:27 +0000 |
parents | 3084104990c8 |
children | d0f419e4965f |
files | lisp/files.el |
diffstat | 1 files changed, 3 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/lisp/files.el Wed Nov 05 04:03:39 2003 +0000 +++ b/lisp/files.el Wed Nov 05 04:06:27 2003 +0000 @@ -2179,9 +2179,10 @@ ;; This case is safe because the user gets to check it before it is used. (put 'compile-command 'safe-local-variable 'stringp) -(defun risky-local-variable-p (sym val) +(defun risky-local-variable-p (sym &optional val) "Non-nil if SYM could be dangerous as a file-local variable with value VAL. -If VAL is nil, the question is whether any value might be dangerous." +If VAL is nil or omitted, the question is whether any value might be +dangerous." (let ((safep (get sym 'safe-local-variable))) (or (memq sym ignored-local-variables) (get sym 'risky-local-variable)