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

Previous Next

Package: emacs;

Reported by: Yuta Yamada <sleepboy.zzz <at> gmail.com>

Date: Mon, 9 May 2016 17:20:03 UTC

Severity: normal

Tags: fixed

Merged with 24359, 24360

Found in version 25.1

Fixed in version 26

Done: npostavs <at> users.sourceforge.net

Bug is archived. No further changes may be made.

Full log


Message #23 received at 23495 <at> debbugs.gnu.org (full text, mbox):

From: Michael Heerdegen <michael_heerdegen <at> web.de>
To: Yuta Yamada <sleepboy.zzz <at> gmail.com>
Cc: 23495 <at> debbugs.gnu.org
Subject: Re: bug#23495: byte-compile-file return t when there is "XXX can't
 use lexical var" error
Date: Wed, 11 May 2016 18:25:40 +0200
Yuta Yamada <sleepboy.zzz <at> gmail.com> writes:

> (defun byte-compile-log-warning (string &optional fill level)
>   (let ((warning-prefix-function 'byte-compile-warning-prefix)
> 	(warning-type-format "")
> 	(warning-fill-prefix (if fill "    ")))
>     (display-warning 'bytecomp string level byte-compile-log-buffer)
>     ;; I added below code
>     ;; the `byte-compiler-error-flag' changes final result of
>     ;; byte-compile-file.
>     (when (or byte-compile-error-on-warn (eq level :error))
>       (setq byte-compiler-error-flag t))))

Dunno if something like that what would be accepted.  OTOH, if the
behavior could be controlled by a user option, it would not harm.

I leave it to somebody else to decide that.


Michael.




This bug report was last modified 8 years and 285 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.