GNU bug report logs -
#70816
29.2; Flymake fails in latex-mode when the buffer is narrowed
Previous Next
Full log
View this message in rfc822 format
Spencer Baugh <sbaugh <at> janestreet.com> writes:
> Can you test with the following patch, please?
Context:
It looks like the latex-mode flymake diagnostic function, tex-chktex,
widens before sending the buffer contents to the external linter
process. So the line numbers of errors are reported relative to the
widened buffer, not the narrowed buffer. A number of different checkers
in Emacs seem to do the same thing.
The bug is that these checkers call flymake-diag-region to translate the
line numbers into buffer positions. But flymake-diag-region does not
widen the buffer when doing this translation, so it fails.
I expect you have some flymake logs of the form "Invalid region line=%s
col=%s". when triggering this bug.
Probably the right fix in flymake is to make flymake-diag-region widen,
as in the patch I posted, but that's a bit of a behavior change... will
think about it, but it's probably fine.
This bug report was last modified 1 year and 88 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.