GNU bug report logs - #24592
25.1; byte-compile warning indicates wrong line

Previous Next

Package: emacs;

Reported by: ynyaaa <at> gmail.com

Date: Mon, 3 Oct 2016 01:19:02 UTC

Severity: minor

Merged with 2681, 8774, 9109, 22288, 24128

Found in versions 23.0.91, 23.3.1, 24.0.50, 24.3.1, 25.0.50, 25.1

Done: Alan Mackenzie <acm <at> muc.de>

Bug is archived. No further changes may be made.

Full log


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

From: Eli Zaretskii <eliz <at> gnu.org>
To: ynyaaa <at> gmail.com
Cc: 24592 <at> debbugs.gnu.org
Subject: Re: bug#24592: 25.1; byte-compile warning indicates wrong line
Date: Mon, 03 Oct 2016 09:50:42 +0300
severity 24592 minor
merge 24592 24449
merge 24449 24128
thanks

> From: ynyaaa <at> gmail.com
> Date: Mon, 03 Oct 2016 10:18:25 +0900
> 
> 
> Let the contents of the file "tmp.el" be:
> (defun test (files)
>   (and t (string-match 1))
>   (and t (string-match 1 2)))
> 
> Then input M-x byte-compile-file RET tmp.el RET
> 
> *Compile-Log* buffer shows:
> In test:
> tmp.el:3:11:Warning: string-match called with 1 argument, but requires 2-3
> 
> The warning must indicate the line 2.

It's a known issue that the byte compiler cannot report the lines for
warnings and errors accurately.  See, for example, bug#24449,
bug#24128, etc.




This bug report was last modified 3 years and 172 days ago.

Previous Next


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