]> git.eshelyaron.com Git - emacs.git/commitdiff
(hack-local-variables-confirm): Rename arg VARS to ALL-VARS. Add doc string.
authorRichard M. Stallman <rms@gnu.org>
Sat, 1 Sep 2007 16:24:03 +0000 (16:24 +0000)
committerRichard M. Stallman <rms@gnu.org>
Sat, 1 Sep 2007 16:24:03 +0000 (16:24 +0000)
lisp/ChangeLog
lisp/files.el

index 02bd3a9d8f5a8c2911880ee471cbf832b8337b01..589e69f2d4130b5f64adc3773664084c26c47f42 100644 (file)
@@ -1,3 +1,8 @@
+2007-09-01  Richard Stallman  <rms@gnu.org>
+
+       * files.el (hack-local-variables-confirm): Rename arg VARS to ALL-VARS.
+       Add doc string.
+
 2007-08-30  Richard Stallman  <rms@gnu.org>
 
        * speedbar.el (speedbar-frame-reposition-smartly)
index bc482c8f37bd6d403c3d58753d8a7216754d3a94..fd0c29260b5ee96d440b30afbe8662c25d311806 100644 (file)
@@ -2486,7 +2486,11 @@ asking you for confirmation."
 
 (put 'c-set-style 'safe-local-eval-function t)
 
-(defun hack-local-variables-confirm (vars unsafe-vars risky-vars)
+(defun hack-local-variables-confirm (all-vars unsafe-vars risky-vars)
+  "Get confirmation before setting up local variable values.
+ALL-VARS is the list of all variables to be set up.
+UNSAFE-VARS is the list of those that aren't marked as safe or risky.
+RISKY-VARS is the list of those that are marked as risky."
   (if noninteractive
       nil
     (let ((name (if buffer-file-name
@@ -2517,7 +2521,7 @@ n  -- to ignore the local variables list.")
 !  -- to apply the local variables list, and permanently mark these
       values (*) as safe (in the future, they will be set automatically.)\n\n")
            (insert "\n\n"))
-         (dolist (elt vars)
+         (dolist (elt all-vars)
            (cond ((member elt unsafe-vars)
                   (insert "  * "))
                  ((member elt risky-vars)