From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Arash Esbati Newsgroups: gmane.emacs.bugs Subject: bug#70816: 29.2; Flymake fails in latex-mode when the buffer is narrowed Date: Tue, 07 May 2024 17:19:03 +0200 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="14403"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Cc: 70816@debbugs.gnu.org To: Vangelis Evangelou Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Tue May 07 17:19:57 2024 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1s4Mbl-0003Tf-Fu for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 07 May 2024 17:19:57 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1s4MbU-0005qN-CK; Tue, 07 May 2024 11:19:40 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1s4MbS-0005ox-8n for bug-gnu-emacs@gnu.org; Tue, 07 May 2024 11:19:38 -0400 Original-Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1s4MbS-0004jY-17 for bug-gnu-emacs@gnu.org; Tue, 07 May 2024 11:19:38 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1s4Mbq-0002tT-Lc for bug-gnu-emacs@gnu.org; Tue, 07 May 2024 11:20:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Arash Esbati Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 07 May 2024 15:20:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 70816 X-GNU-PR-Package: emacs Original-Received: via spool by 70816-submit@debbugs.gnu.org id=B70816.171509518411109 (code B ref 70816); Tue, 07 May 2024 15:20:02 +0000 Original-Received: (at 70816) by debbugs.gnu.org; 7 May 2024 15:19:44 +0000 Original-Received: from localhost ([127.0.0.1]:43185 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1s4MbY-0002t7-9i for submit@debbugs.gnu.org; Tue, 07 May 2024 11:19:44 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:40832) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1s4MbT-0002t1-58 for 70816@debbugs.gnu.org; Tue, 07 May 2024 11:19:43 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1s4May-0004gc-Pa; Tue, 07 May 2024 11:19:08 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-Version:Date:References:In-Reply-To:Subject:To: From; bh=kQi+w67cnsrxDDRRI7lmB1C1JpNtRUf/5UF9pUZL7XE=; b=inT5gjwAVIj5ErdTLYm4 l258SQYvzj4aLcKYjhgd65ENyfk+Uy567jlG9xJfYBLCgVzo10qLmfZGnve5KvKWpP8uG3wuzD6Nx CBOfwEo2khzliXFQAZskT3BWejuqFT0InwP6ei5hLWP4hPZRatlAX/wSnKvqwXQ91BBhQLBwcaPbO pKHxVQ7J6xSyE6PaPjff31oXH7w7hE4cA1Czz0JWQOqSvQYp1xn9mdBZ6mWKuIQTAjAj1cgU2E+LD dreZFDZpnkKBLPPdfCAQzXm2Qh1hPupqY2WgO/zdiUBk3MRmsauAl/IVlSbbeP6lMv34vzksymunV GjLCOeJhdLjbjQ==; In-Reply-To: (Vangelis Evangelou's message of "Tue, 7 May 2024 08:56:21 +0100") X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:284642 Archived-At: Vangelis Evangelou writes: > With the buffer having the contents shown below, > 1. Enable flymake-mode. > 2. Narrow from the top of the buffer down to the indicated comment. > 3. Execute flymake-start. The reproducer for me was to save a file like this (note the first blank lines): --8<---------------cut here---------------start------------->8--- \documentclass{article} \begin{document} 0 a b cf % <----- End narrow d e f g h i j{ \end{document} --8<---------------cut here---------------end--------------->8--- Then: =E2=80=A2 emacs -Q =E2=80=A2 M-x toggle-debug-on-error RET =E2=80=A2 Visit the file, M-x flymake-mode RET =E2=80=A2 Mark '\document... End narrow' and hit 'C-x n n' =E2=80=A2 Put point after c and hit f This is what the debugger says (linebreaks added manually): --8<---------------cut here---------------start------------->8--- Debugger entered--Lisp error: (wrong-type-argument integer-or-marker-p nil) make-overlay(nil nil) flymake--highlight-line(#s(flymake--diag :locus # :beg nil :end nil :type :warning :text "No match found for `{'." :backend tex-chktex :data nil :overlay-properties nil :overlay nil :orig-beg nil :orig-end nil)) flymake--publish-diagnostics((#s(flymake--diag :locus # :beg nil :end nil :type :warning :text "No match found for `{'." :backend tex-chktex :data nil :overlay-properties nil :overlay nil :orig-beg nil :orig-end nil) #s(flymake--diag :locus # :beg 54 :end 73 :type :warning :text "Number of `{' doesn't match the number of `}'!" :backend tex-chktex :data nil :overlay-properties nil :overlay nil :orig-beg 54 :orig-end 73)) :backend tex-chktex :state #s(flymake--state :running backend-token1 :reported-p nil :disabled nil :diags (#s(flymake--diag :locus # :beg nil :end nil :type :warning :text "No match found for `{'." :backend tex-chktex :data nil :overlay-properties nil :overlay nil :orig-beg nil :orig-end nil)) :foreign-diags #) :region nil) flymake--handle-report(tex-chktex backend-token1 (#s(flymake--diag :locus # :beg nil :end nil :type :warning :text "No match found for `{'." :backend tex-chktex :data nil :overlay-properties nil :overlay nil :orig-beg nil :orig-end nil) #s(flymake--diag :locus # :beg 54 :end 73 :type :warning :text "Number of `{' doesn't match the number of `}'!" :backend tex-chktex :data nil :overlay-properties nil :overlay nil :orig-beg 54 :orig-end 73))) apply(flymake--handle-report tex-chktex backend-token1 (#s(flymake--diag :locus # :beg nil :end nil :type :warning :text "No match found for `{'." :backend tex-chktex :data nil :overlay-properties nil :overlay nil :orig-beg nil :orig-end nil) #s(flymake--diag :locus # :beg 54 :end 73 :type :warning :text "Number of `{' doesn't match the number of `}'!" :backend tex-chktex :data nil :overlay-properties nil :overlay nil :orig-beg 54 :orig-end 73))) #f(compiled-function (&rest args) #)((#s(flymake--diag :locus # :beg nil :end nil :type :warning :text "No match found for `{'." :backend tex-chktex :data nil :overlay-properties nil :overlay nil :orig-beg nil :orig-end nil) #s(flymake--diag :locus # :beg 54 :end 73 :type :warning :text "Number of `{' doesn't match the number of `}'!" :backend tex-chktex :data nil :overlay-properties nil :overlay nil :orig-beg 54 :orig-end 73))) #f(compiled-function (process event) #)(# "finished\n") --8<---------------cut here---------------end--------------->8--- Best, Arash