diff options
author | Dave Love <fx@gnu.org> | 2003-04-28 22:05:17 +0000 |
---|---|---|
committer | Dave Love <fx@gnu.org> | 2003-04-28 22:05:17 +0000 |
commit | 118861dfa825e90eb38d11ac89dbaada87bd8fc9 (patch) | |
tree | d845a697d3bc47742c88d2fc962f5622e7f530b1 /lisp/emacs-lisp | |
parent | a0dd4fa6d457080e8b1eaef0b5cf484e99e27dfa (diff) | |
download | emacs-118861dfa825e90eb38d11ac89dbaada87bd8fc9.tar.gz emacs-118861dfa825e90eb38d11ac89dbaada87bd8fc9.tar.bz2 emacs-118861dfa825e90eb38d11ac89dbaada87bd8fc9.zip |
(byte-compile-cl-warn): Avoid cl warnings
from caaar & al.
Diffstat (limited to 'lisp/emacs-lisp')
-rw-r--r-- | lisp/emacs-lisp/bytecomp.el | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/lisp/emacs-lisp/bytecomp.el b/lisp/emacs-lisp/bytecomp.el index ade83aa0f41..7af112e6918 100644 --- a/lisp/emacs-lisp/bytecomp.el +++ b/lisp/emacs-lisp/bytecomp.el @@ -10,7 +10,7 @@ ;;; This version incorporates changes up to version 2.10 of the ;;; Zawinski-Furuseth compiler. -(defconst byte-compile-version "$Revision: 2.129 $") +(defconst byte-compile-version "$Revision: 2.130 $") ;; This file is part of GNU Emacs. @@ -1264,7 +1264,15 @@ Each function's symbol gets marked with the `byte-compile-noruntime' property." ;; These would sometimes be warned about ;; but such warnings are never useful, ;; so don't warn about them. - macroexpand cl-macroexpand-all cl-compiling-file)))) + macroexpand cl-macroexpand-all + cl-compiling-file))) + ;; Avoid warnings for things which are safe because they + ;; have suitable compiler macros, but those aren't + ;; expanded at this stage. There should probably be more + ;; here than caaar and friends. + (not (and (eq (get func 'byte-compile) + 'cl-byte-compile-compiler-macro) + (match-string "\\`c[ad]+r\\'" (symbol-name func))))) (byte-compile-warn "Function `%s' from cl package called at runtime" func))) form) |