Subject: bug#23495: byte-compile-file return t when there is "XXX can't use lexical var" error

From: Michael Heerdegen <[email-masked]>
Date: Wed, 11 May 2016 13:57:39 +0200

Michael Heerdegen <[email-masked]> writes:

> Seems it's wanted.  The compiler calls `byte-compile-log-warning' in
> this case, which, unlike `byte-compile-warn', circumvents
> `byte-compile-error-on-warn'.

I wonder if we could/should call `byte-compile-warn' instead.

But Yuta, please tell me about your use case.  A lot of other warnings
printed while byte compiling can hint to similarly serious mistakes in
the code.

Would changing the behavior of this particular case really make things
better?  Can't you just have a look at the compiler warnings, which is a
good idea (necessary) anyway?

Thanks,

Michael.