From: Spencer Baugh <sbaugh@janestreet.com>
To: Arash Esbati <arash@gnu.org>
Cc: Vangelis Evangelou <evangelou@gmail.com>, 70816@debbugs.gnu.org
Subject: bug#70816: 29.2; Flymake fails in latex-mode when the buffer is narrowed
Date: Sat, 18 May 2024 10:51:35 -0400 [thread overview]
Message-ID: <ier1q5zb2bs.fsf@janestreet.com> (raw)
In-Reply-To: <m21q6dodjs.fsf@macmutant.fritz.box> (Arash Esbati's message of "Tue, 07 May 2024 17:19:03 +0200")
Can you test with the following patch, please?
diff --git a/lisp/progmodes/flymake.el b/lisp/progmodes/flymake.el
index ef190ff0cb5..146aae06253 100644
--- a/lisp/progmodes/flymake.el
+++ b/lisp/progmodes/flymake.el
@@ -430,6 +430,8 @@ flymake-diag-region
(let ((line (min (max line 1)
(line-number-at-pos (point-max) 'absolute))))
(save-excursion
+ (save-restriction
+ (widen)
(save-match-data
(goto-char (point-min))
(forward-line (1- line))
@@ -463,7 +465,7 @@ flymake-diag-region
(fallback-eol beg))))
(let* ((beg (fallback-bol))
(end (fallback-eol beg)))
- (cons beg end))))))))
+ (cons beg end)))))))))
(error (flymake-log :warning "Invalid region line=%s col=%s" line col)
nil)))
next prev parent reply other threads:[~2024-05-18 14:51 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-05-07 7:56 bug#70816: 29.2; Flymake fails in latex-mode when the buffer is narrowed Vangelis Evangelou
2024-05-07 15:19 ` Arash Esbati
2024-05-18 8:41 ` Eli Zaretskii
2024-05-18 14:51 ` Spencer Baugh [this message]
2024-05-18 14:58 ` Spencer Baugh
2024-05-18 17:11 ` Vangelis Evangelou
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=ier1q5zb2bs.fsf@janestreet.com \
--to=sbaugh@janestreet.com \
--cc=70816@debbugs.gnu.org \
--cc=arash@gnu.org \
--cc=evangelou@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).