comparison lisp/emacs-lisp/bytecomp.el @ 47107:747c4a00be3e

(byte-compile-log-file): Use \f. (byte-compile-cl-warn): Add cl-macroexpand-all, cl-compiling-file to don't-warn list.
author Richard M. Stallman <rms@gnu.org>
date Thu, 29 Aug 2002 14:49:48 +0000
parents 4dff8f2c0a4e
children ce17d4a1d32e
comparison
equal deleted inserted replaced
47106:7654c5eef71e 47107:747c4a00be3e
8 ;; Maintainer: FSF 8 ;; Maintainer: FSF
9 ;; Keywords: lisp 9 ;; Keywords: lisp
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
17 ;; GNU Emacs is free software; you can redistribute it and/or modify 17 ;; GNU Emacs is free software; you can redistribute it and/or modify
18 ;; it under the terms of the GNU General Public License as published by 18 ;; it under the terms of the GNU General Public License as published by
941 (save-excursion 941 (save-excursion
942 (byte-goto-log-buffer) 942 (byte-goto-log-buffer)
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)))
950 " at " (current-time-string) "\n") 950 " at " (current-time-string) "\n")
951 (setq byte-compile-last-logged-file byte-compile-current-file) 951 (setq byte-compile-last-logged-file byte-compile-current-file)
1228 ;; avoid hardwiring the list. 1228 ;; avoid hardwiring the list.
1229 (not (memq func 1229 (not (memq func
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)
1240 1240
1241 (defun byte-compile-print-syms (str1 strn syms) 1241 (defun byte-compile-print-syms (str1 strn syms)
1326 (byte-compile-warnings (if (eq byte-compile-warnings t) 1326 (byte-compile-warnings (if (eq byte-compile-warnings t)
1327 byte-compile-warning-types 1327 byte-compile-warning-types
1328 byte-compile-warnings)) 1328 byte-compile-warnings))
1329 ) 1329 )
1330 body))) 1330 body)))
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)))
1331 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.
1335 (setq warning-series (byte-compile-log-file)) 1342 (setq warning-series (byte-compile-log-file))