aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRichard M. Stallman2002-08-29 14:49:48 +0000
committerRichard M. Stallman2002-08-29 14:49:48 +0000
commit8f876842caf3a513504f9df746f953eb38d3ac62 (patch)
treeb99d03e36c071a7bffed3dd86b22e23590ea939b
parentf76041d5f6900fbc51d53fcbd642a1e1170175b2 (diff)
downloademacs-8f876842caf3a513504f9df746f953eb38d3ac62.tar.gz
emacs-8f876842caf3a513504f9df746f953eb38d3ac62.zip
(byte-compile-log-file): Use \f.
(byte-compile-cl-warn): Add cl-macroexpand-all, cl-compiling-file to don't-warn list.
-rw-r--r--lisp/emacs-lisp/bytecomp.el19
1 files changed, 13 insertions, 6 deletions
diff --git a/lisp/emacs-lisp/bytecomp.el b/lisp/emacs-lisp/bytecomp.el
index b70a79971b3..8dda1cf3fdd 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.108 $") 13(defconst byte-compile-version "$Revision: 2.109 $")
14 14
15;; This file is part of GNU Emacs. 15;; This file is part of GNU Emacs.
16 16
@@ -943,7 +943,7 @@ Each function's symbol gets marked with the `byte-compile-noruntime' property."
943 (goto-char (point-max)) 943 (goto-char (point-max))
944 (insert "\n") 944 (insert "\n")
945 (let ((pt (point))) 945 (let ((pt (point)))
946 (insert "^L\nCompiling " 946 (insert "\f\nCompiling "
947 (if (stringp byte-compile-current-file) 947 (if (stringp byte-compile-current-file)
948 (concat "file " byte-compile-current-file) 948 (concat "file " byte-compile-current-file)
949 (concat "buffer " (buffer-name byte-compile-current-file))) 949 (concat "buffer " (buffer-name byte-compile-current-file)))
@@ -1230,10 +1230,10 @@ Each function's symbol gets marked with the `byte-compile-noruntime' property."
1230 '(cl-block-wrapper cl-block-throw 1230 '(cl-block-wrapper cl-block-throw
1231 multiple-value-call nth-value 1231 multiple-value-call nth-value
1232 copy-seq first second rest endp cl-member 1232 copy-seq first second rest endp cl-member
1233 ;; This is sometimes defined in CL 1233 ;; These would sometimes be warned about
1234 ;; but that redefines a standard function, 1234 ;; but such warnings are never useful,
1235 ;; so don't warn about it. 1235 ;; so don't warn about them.
1236 macroexpand)))) 1236 macroexpand cl-macroexpand-all cl-compiling-file))))
1237 (byte-compile-warn "Function `%s' from cl package called at runtime" 1237 (byte-compile-warn "Function `%s' from cl package called at runtime"
1238 func))) 1238 func)))
1239 form) 1239 form)
@@ -1329,6 +1329,13 @@ Each function's symbol gets marked with the `byte-compile-noruntime' property."
1329 ) 1329 )
1330 body))) 1330 body)))
1331 1331
1332;;; ;; Log the file name.
1333;;; (let ((tem (byte-compile-log-file)))
1334;;; ;; Record position of that text,
1335;;; ;; unless we're compiling multiple files and this isn't the first.
1336;;; (unless warning-series
1337;;; (setq warning-series tem)))
1338
1332(defmacro displaying-byte-compile-warnings (&rest body) 1339(defmacro displaying-byte-compile-warnings (&rest body)
1333 `(let (warning-series) 1340 `(let (warning-series)
1334 ;; Log the file name. Record position of that text. 1341 ;; Log the file name. Record position of that text.