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 #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Vangelis Evangelou <evangelou <at> gmail.com>
To: bug-auctex <at> gnu.org
Subject: Flymake gives error when the buffer is narrowed
Date: Fri, 3 May 2024 09:57:26 +0100
[Message part 1 (text/plain, inline)]
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.

buffer contents:

\documentclass{article}
\begin{document}
0 {
a
b
c
% <----- Start narrow
d
e
f
{
% <----- End narrow
g
h
i
j
\end{document}
[Message part 2 (text/html, inline)]

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.