From 40ebe9bdd7e71e180478e85583899b9a96456666 Mon Sep 17 00:00:00 2001 From: Luc Teirlinck Date: Wed, 5 Nov 2003 04:06:27 +0000 Subject: [PATCH] (risky-local-variable-p): Make second argument optional. --- lisp/files.el | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/lisp/files.el b/lisp/files.el index 2b80f591343..1dc6e5454df 100644 --- a/lisp/files.el +++ b/lisp/files.el @@ -2179,9 +2179,10 @@ is specified, returning t if it is specified." ;; 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) -- 2.39.2