From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#60012: 30.0.50; bug-reference-prog-mode: Error during redisplay with tree-sitter modes Date: Mon, 12 Dec 2022 18:54:28 +0200 Message-ID: <83pmcor29n.fsf@gnu.org> References: <87wn6wh91p.fsf@posteo.org> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="15436"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 60012@debbugs.gnu.org To: Aleksandr Vityazev Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Mon Dec 12 17:55:21 2022 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 1p4m5I-0003o5-Vk for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 12 Dec 2022 17:55:21 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1p4m5D-00073q-Qv; Mon, 12 Dec 2022 11:55:16 -0500 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 1p4m50-000718-LC for bug-gnu-emacs@gnu.org; Mon, 12 Dec 2022 11:55:02 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1p4m50-0001Cw-CD for bug-gnu-emacs@gnu.org; Mon, 12 Dec 2022 11:55:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1p4m50-0000qx-6R for bug-gnu-emacs@gnu.org; Mon, 12 Dec 2022 11:55:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 12 Dec 2022 16:55:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 60012 X-GNU-PR-Package: emacs Original-Received: via spool by 60012-submit@debbugs.gnu.org id=B60012.16708640733261 (code B ref 60012); Mon, 12 Dec 2022 16:55:02 +0000 Original-Received: (at 60012) by debbugs.gnu.org; 12 Dec 2022 16:54:33 +0000 Original-Received: from localhost ([127.0.0.1]:54078 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1p4m4X-0000qX-C6 for submit@debbugs.gnu.org; Mon, 12 Dec 2022 11:54:33 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:42590) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1p4m4V-0000qP-PM for 60012@debbugs.gnu.org; Mon, 12 Dec 2022 11:54:32 -0500 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 1p4m4Q-00016K-F4; Mon, 12 Dec 2022 11:54:26 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=4DI20Or77e6KOgahM9bAwzePDPk5JE9JEvRmWatDXks=; b=ALIYV+G9qOwf taCmfFkSAtc6ZyhLT+nVC7RIrR4pFgiCsMWNjGdc3rPPQbwifvv4BObWOcMrJ2qau/ozNSZfsg/fq THB7H7V/AFSxwe39hfLQOmOBrIS8NQTPNpj0Z7oc+jF+C9I1c/HrQSVPS7V5OX/51DGJopetA1WgL DUe02jmMuRQf227aT0odwIgGaGvjSgaT4+lVE5aHe9d6E/cXJvZ2J1QcJuJmHLkKhPZIwqBlJDPJT KwH5+is2Vqk2cVncE/7DAZRFW7AsmN9VFw+phAdlmOZxj5ZBnfoJ/wB48lPMTgGUU5t1HGlJJbLhD wXonIve5mTeV0T34hY+t5g==; Original-Received: from [87.69.77.57] (helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1p4m4P-0001mJ-SZ; Mon, 12 Dec 2022 11:54:26 -0500 In-Reply-To: <87wn6wh91p.fsf@posteo.org> (message from Aleksandr Vityazev on Mon, 12 Dec 2022 16:38:10 +0000) 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:250721 Archived-At: > From: Aleksandr Vityazev > Date: Mon, 12 Dec 2022 16:38:10 +0000 > > The error was discovered when I was watching > https://github.com/zevlg/telega.el. I will add copies of the necessary > files from there to reproduce the behavior. > > 1. mkidr ~/test-project > 2. mv test-project > 2. Add a .dir-locals.el file with the following content: > > --8<---------------cut here---------------start------------->8--- > ;;; Directory Local Variables > ;;; For more information see (info "(emacs) Directory Variables") > > ((nil . ((bug-reference-url-format . "https://github.com/zevlg/telega.el/issues/%s") > (bug-reference-bug-regexp > . "")))) > --8<---------------cut here---------------end--------------->8--- > > 3. Add Dockerfile file with the following content: > > --8<---------------cut here---------------start------------->8--- > FROM alpine:latest AS builder > ARG tdlib_branch=master > ARG telega_branch=master > CMD ["/bin/bash"] > --8<---------------cut here---------------end--------------->8--- > > 4. with emacs -Q (add-hook 'prog-mode-hook 'bug-reference-prog-mode) > 5. C-x C-f ~/test-project/Dockerfile > 6. The file will be opened with dockerfile-ts-mode > 7. See that syntax highlighting does not work > > At this time the following should be in the *Messages* buffer: > Error during redisplay: (jit-lock-function 1) signaled (invalid-regexp > "Unmatched ( or \\(") > > You can get the same if you add some C file and open it with c-ts-mode. > If you open the file in normal c-mode. There are no such errors. > > I do not see any errors in the regular expression - > "". The error is that the \( part before github is not matches by \).