GNU bug report logs - #67483
Wrong warning position given by the byte compiler for a malformed function

Previous Next

Package: emacs;

Reported by: Alan Mackenzie <acm <at> muc.de>

Date: Mon, 27 Nov 2023 12:42:02 UTC

Severity: normal

Full log


View this message in rfc822 format

From: Mattias EngdegÄrd <mattias.engdegard <at> gmail.com>
To: Alan Mackenzie <acm <at> muc.de>
Cc: Stefan Monnier <monnier <at> iro.umontreal.ca>, 67483 <at> debbugs.gnu.org
Subject: bug#67483: Wrong warning position given by the byte compiler for a malformed function
Date: Thu, 30 Nov 2023 11:37:31 +0100
>     Buffer bad-error-position.el:2:4: Warning: `foo' is a malformed function
> 
> ..  This position 2:4 is wrong; it is the position of the `let' symbol.
> The correct position would be 3:6, the position of the `if' symbol.

(Actually the correct position would be the position of the string literal but of course our location tracking system is too simplistic for that.)

Thank you for bringing this to our attention. Now I only saw this from the reference in your commit message; would you CC me next time? (Stefan, too, unless he objects.)

I'm modifying your work a bit because we're trying to remove warnings from the optimiser, not entrenching them there. The warning is now in cconv but perhaps it should be moved to macroexp-all, it's not very important. I hope being able to reshape the front-end a bit later on.

Also, we usually prefer let-binding dynamic variables to push-pop pairs.





This bug report was last modified 1 year and 157 days ago.

Previous Next


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