aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDave Love2003-04-28 22:05:17 +0000
committerDave Love2003-04-28 22:05:17 +0000
commit118861dfa825e90eb38d11ac89dbaada87bd8fc9 (patch)
treed845a697d3bc47742c88d2fc962f5622e7f530b1
parenta0dd4fa6d457080e8b1eaef0b5cf484e99e27dfa (diff)
downloademacs-118861dfa825e90eb38d11ac89dbaada87bd8fc9.tar.gz
emacs-118861dfa825e90eb38d11ac89dbaada87bd8fc9.zip
(byte-compile-cl-warn): Avoid cl warnings
from caaar & al.
-rw-r--r--lisp/ChangeLog5
-rw-r--r--lisp/emacs-lisp/bytecomp.el12
2 files changed, 15 insertions, 2 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index 580acb66b1d..00461c40769 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,3 +1,8 @@
12003-04-28 Dave Love <fx@gnu.org>
2
3 * emacs-lisp/bytecomp.el (byte-compile-cl-warn): Avoid cl warnings
4 from caaar & al.
5
12003-04-28 Kenichi Handa <handa@m17n.org> 62003-04-28 Kenichi Handa <handa@m17n.org>
2 7
3 * international/mule-cmds.el (reset-language-environment): Raise 8 * international/mule-cmds.el (reset-language-environment): Raise
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 @@
10 10
11;;; This version incorporates changes up to version 2.10 of the 11;;; This version incorporates changes up to version 2.10 of the
12;;; Zawinski-Furuseth compiler. 12;;; Zawinski-Furuseth compiler.
13(defconst byte-compile-version "$Revision: 2.129 $") 13(defconst byte-compile-version "$Revision: 2.130 $")
14 14
15;; This file is part of GNU Emacs. 15;; This file is part of GNU Emacs.
16 16
@@ -1264,7 +1264,15 @@ Each function's symbol gets marked with the `byte-compile-noruntime' property."
1264 ;; These would sometimes be warned about 1264 ;; These would sometimes be warned about
1265 ;; but such warnings are never useful, 1265 ;; but such warnings are never useful,
1266 ;; so don't warn about them. 1266 ;; so don't warn about them.
1267 macroexpand cl-macroexpand-all cl-compiling-file)))) 1267 macroexpand cl-macroexpand-all
1268 cl-compiling-file)))
1269 ;; Avoid warnings for things which are safe because they
1270 ;; have suitable compiler macros, but those aren't
1271 ;; expanded at this stage. There should probably be more
1272 ;; here than caaar and friends.
1273 (not (and (eq (get func 'byte-compile)
1274 'cl-byte-compile-compiler-macro)
1275 (match-string "\\`c[ad]+r\\'" (symbol-name func)))))
1268 (byte-compile-warn "Function `%s' from cl package called at runtime" 1276 (byte-compile-warn "Function `%s' from cl package called at runtime"
1269 func))) 1277 func)))
1270 form) 1278 form)