]> git.eshelyaron.com Git - emacs.git/commitdiff
(byte-compile-warnings-safe-p): New
authorReiner Steib <Reiner.Steib@gmx.de>
Tue, 16 May 2006 10:05:09 +0000 (10:05 +0000)
committerReiner Steib <Reiner.Steib@gmx.de>
Tue, 16 May 2006 10:05:09 +0000 (10:05 +0000)
function.
(byte-compile-warnings): Fix safe-local-variable property.

lisp/ChangeLog
lisp/emacs-lisp/bytecomp.el

index 4150e1d3adbda0f0b556d267fc9f44a69179dfff..29724b727481d6ea1ae6825cc48fe919fcc3dadf 100644 (file)
@@ -1,3 +1,9 @@
+2006-05-16  Reiner Steib  <Reiner.Steib@gmx.de>
+
+       * emacs-lisp/bytecomp.el (byte-compile-warnings-safe-p): New
+       function.
+       (byte-compile-warnings): Fix safe-local-variable property.
+
 2006-05-16  Ken Manheimer  <ken.manheimer@gmail.com>
 
        * allout.el (allout-show-bodies, allout-old-style-prefixes)
index 01f9373af687f36154459b9d2ad881fb258f91d6..ebb2f11764af17e2294a1f518e9087fa9d48811c 100644 (file)
@@ -357,7 +357,20 @@ Elements of the list may be be:
                      (const callargs) (const redefine)
                      (const obsolete) (const noruntime)
                      (const cl-functions) (const interactive-only))))
-;;;###autoload(put 'byte-compile-warnings 'safe-local-variable 'booleanp)
+(put 'byte-compile-warnings 'safe-local-variable 'byte-compile-warnings-safe-p)
+;;;###autoload
+(defun byte-compile-warnings-safe-p (x)
+  (or (booleanp x)
+      (and (listp x)
+          (equal (mapcar
+                  (lambda (e)
+                    (when (memq e '(free-vars unresolved
+                                    callargs redefine
+                                    obsolete noruntime
+                                    cl-functions interactive-only))
+                      e))
+                  x)
+                 x))))
 
 (defvar byte-compile-interactive-only-functions
   '(beginning-of-buffer end-of-buffer replace-string replace-regexp