APPROVE COMMIT 21.4
Thanks for the patch, Hrvoje. This will be in 21.4.15.
- Vin
Hrvoje Niksic <hniksic(a)xemacs.org> writes:
Lars Brinkhoff <lars(a)nocrew.org> writes:
> The following interaction:
>
> (version)
> "XEmacs 21.4 (patch 6) \"Common Lisp\" [Lucid]
(powerpc-debian-linux, Mule) of Tue Apr 9 2002 on voltaire"
>
> (byte-compile '(lambda () (let ((%B 42)) (foo))))
>
> gives me this backtrace:
Thanks for the report; this patch (recommended for both branches)
should fix the problem:
2003-12-10 Hrvoje Niksic <hniksic(a)xemacs.org>
* bytecomp.el (byte-compile-warn-about-unused-variables): Don't
apply `format' to the first argument of byte-compile-warn, it
already calls format.
--- lisp/bytecomp.el.orig 2003-12-10 09:20:33.000000000 +0100
+++ lisp/bytecomp.el 2003-12-10 09:20:41.000000000 +0100
@@ -1284,7 +1284,7 @@
(setq unreferenced (nreverse unreferenced))
(while unreferenced
(byte-compile-warn
- (format "variable %s bound but not referenced" (car unreferenced)))
+ "variable %s bound but not referenced" (car unreferenced))
(setq unreferenced (cdr unreferenced)))))