aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorReiner Steib2006-05-16 10:05:09 +0000
committerReiner Steib2006-05-16 10:05:09 +0000
commit0027258d1ea714b2eebc3ad92770f954a072da8c (patch)
tree8a2b056af5d86523bb8e160662a3240982ec3cfd
parent64686e6da6819719db0094619e0b3d7b52dfc4c4 (diff)
downloademacs-0027258d1ea714b2eebc3ad92770f954a072da8c.tar.gz
emacs-0027258d1ea714b2eebc3ad92770f954a072da8c.zip
(byte-compile-warnings-safe-p): New
function. (byte-compile-warnings): Fix safe-local-variable property.
-rw-r--r--lisp/ChangeLog6
-rw-r--r--lisp/emacs-lisp/bytecomp.el15
2 files changed, 20 insertions, 1 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index 4150e1d3adb..29724b72748 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,3 +1,9 @@
12006-05-16 Reiner Steib <Reiner.Steib@gmx.de>
2
3 * emacs-lisp/bytecomp.el (byte-compile-warnings-safe-p): New
4 function.
5 (byte-compile-warnings): Fix safe-local-variable property.
6
12006-05-16 Ken Manheimer <ken.manheimer@gmail.com> 72006-05-16 Ken Manheimer <ken.manheimer@gmail.com>
2 8
3 * allout.el (allout-show-bodies, allout-old-style-prefixes) 9 * allout.el (allout-show-bodies, allout-old-style-prefixes)
diff --git a/lisp/emacs-lisp/bytecomp.el b/lisp/emacs-lisp/bytecomp.el
index 01f9373af68..ebb2f11764a 100644
--- a/lisp/emacs-lisp/bytecomp.el
+++ b/lisp/emacs-lisp/bytecomp.el
@@ -357,7 +357,20 @@ Elements of the list may be be:
357 (const callargs) (const redefine) 357 (const callargs) (const redefine)
358 (const obsolete) (const noruntime) 358 (const obsolete) (const noruntime)
359 (const cl-functions) (const interactive-only)))) 359 (const cl-functions) (const interactive-only))))
360;;;###autoload(put 'byte-compile-warnings 'safe-local-variable 'booleanp) 360(put 'byte-compile-warnings 'safe-local-variable 'byte-compile-warnings-safe-p)
361;;;###autoload
362(defun byte-compile-warnings-safe-p (x)
363 (or (booleanp x)
364 (and (listp x)
365 (equal (mapcar
366 (lambda (e)
367 (when (memq e '(free-vars unresolved
368 callargs redefine
369 obsolete noruntime
370 cl-functions interactive-only))
371 e))
372 x)
373 x))))
361 374
362(defvar byte-compile-interactive-only-functions 375(defvar byte-compile-interactive-only-functions
363 '(beginning-of-buffer end-of-buffer replace-string replace-regexp 376 '(beginning-of-buffer end-of-buffer replace-string replace-regexp