]> git.eshelyaron.com Git - emacs.git/commitdiff
(risky-local-variable-p): Make second argument optional.
authorLuc Teirlinck <teirllm@auburn.edu>
Wed, 5 Nov 2003 04:06:27 +0000 (04:06 +0000)
committerLuc Teirlinck <teirllm@auburn.edu>
Wed, 5 Nov 2003 04:06:27 +0000 (04:06 +0000)
lisp/files.el

index 2b80f591343ae17816020732784ed2d54d070e74..1dc6e5454df1ce148133aa3e05701386f381b631 100644 (file)
@@ -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)