GNU bug report logs - #70729
Flymake gives error when the buffer is narrowed

Previous Next

Package: auctex;

Reported by: Vangelis Evangelou <evangelou <at> gmail.com>

Date: Fri, 3 May 2024 08:59:01 UTC

Severity: normal

Done: Arash Esbati <arash <at> gnu.org>

Bug is archived. No further changes may be made.

Full log


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

From: Arash Esbati <arash <at> gnu.org>
To: Vangelis Evangelou <evangelou <at> gmail.com>
Cc: 70729 <at> debbugs.gnu.org
Subject: Re: bug#70729: Flymake gives error when the buffer is narrowed
Date: Fri, 03 May 2024 14:45:30 +0200
[Message part 1 (text/plain, inline)]
Vangelis Evangelou <evangelou <at> gmail.com> writes:

> Hi all. I would like to report the following bug in the function
> LaTeX-flymake
>
> 1. Enable flymake-mode
> 2. With the buffer below, narrow as indicated 
> 3. Type in the narrowed buffer. 
>
> Flymake will produce an error. The issue is due to incorrect position
> of the errors when the buffer is narrowed.
>
> I don't think the buffer should be widened in the LaTeX-flymake
> function as the check can be performed in the narrowed buffer. I can
> see that LaTeX-flymake resembles perl-flymake. I suspect perl-flymake
> has similar issues, but I haven't checked as I don't use perl.

`LaTeX-flymake' actually follows closely what ``tex-chktex' does.  I'm
not sure if I understand the above correctly, but this is what I see
with "emacs -Q" and built-in LaTeX mode:
[flymake-wo-narrow.png (image/png, inline)]
[Message part 3 (text/plain, inline)]
This is what I get with narrowing, but without the comment lines:
[flymake-w-narrow2.png (image/png, inline)]
[Message part 5 (text/plain, inline)]
And finally with narrowing and the commented lines:
[flymake-w-narrow1.png (image/png, inline)]
[Message part 7 (text/plain, inline)]
IIUC, the third version shows the wrong line number 4, right?

Best, Arash

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

Previous Next


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