emacs-pretest-bug
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

byte-compile compile log shows wrong line number


From: Nikolaj Schumacher
Subject: byte-compile compile log shows wrong line number
Date: Sun, 11 Mar 2007 15:44:36 +0100
User-agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.93 (darwin)

Hello,

*Compile-Log* shows a wrong line number for the error in certain cases.

To reproduce, create a file "foo.el" with the content:
 foo

 (byte-compile-file "foo.el") will result in
foo.el:1:2:Warning: reference to free variable `foo'
which is correct.

Now change the file content to:
foo

(byte-compile-file "foo.el") will result in
foo.el:0:1:Warning: reference to free variable `foo'
which is not.


A patch is attached.

regards
Nikolaj Schumacher

Attachment: bytecomp-error-line-offset.patch
Description: patch


reply via email to

[Prev in Thread] Current Thread [Next in Thread]