# HG changeset patch # User Reiner Steib # Date 1147773909 0 # Node ID 13c49a63f416d1d9f163dfeb566a53f271edf55a # Parent 798fa39b6207a592a461c488678b9021b120a46c (byte-compile-warnings-safe-p): New function. (byte-compile-warnings): Fix safe-local-variable property. diff -r 798fa39b6207 -r 13c49a63f416 lisp/ChangeLog --- a/lisp/ChangeLog Tue May 16 10:01:32 2006 +0000 +++ b/lisp/ChangeLog Tue May 16 10:05:09 2006 +0000 @@ -1,3 +1,9 @@ +2006-05-16 Reiner Steib + + * emacs-lisp/bytecomp.el (byte-compile-warnings-safe-p): New + function. + (byte-compile-warnings): Fix safe-local-variable property. + 2006-05-16 Ken Manheimer * allout.el (allout-show-bodies, allout-old-style-prefixes) diff -r 798fa39b6207 -r 13c49a63f416 lisp/emacs-lisp/bytecomp.el --- a/lisp/emacs-lisp/bytecomp.el Tue May 16 10:01:32 2006 +0000 +++ b/lisp/emacs-lisp/bytecomp.el Tue May 16 10:05:09 2006 +0000 @@ -357,7 +357,20 @@ (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