From unknown Sun Jun 22 00:14:02 2025 X-Loop: help-debbugs@gnu.org Subject: bug#65813: [PATCH] Fix elixir-ts-mode with embedded heex Resent-From: john muhl Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 07 Sep 2023 20:57:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 65813 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch To: 65813@debbugs.gnu.org Cc: Yuan Fu X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.169412020828384 (code B ref -1); Thu, 07 Sep 2023 20:57:01 +0000 Received: (at submit) by debbugs.gnu.org; 7 Sep 2023 20:56:48 +0000 Received: from localhost ([127.0.0.1]:41500 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qeM3U-0007Nk-22 for submit@debbugs.gnu.org; Thu, 07 Sep 2023 16:56:48 -0400 Received: from lists.gnu.org ([2001:470:142::17]:47036) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qeM3P-0007NU-JC for submit@debbugs.gnu.org; Thu, 07 Sep 2023 16:56:46 -0400 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 1qeM3H-0002V0-SW for bug-gnu-emacs@gnu.org; Thu, 07 Sep 2023 16:56:36 -0400 Received: from out-214.mta1.migadu.com ([2001:41d0:203:375::d6]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qeM3D-0007y8-Ep for bug-gnu-emacs@gnu.org; Thu, 07 Sep 2023 16:56:35 -0400 X-Report-Abuse: Please report any abuse attempt to abuse@migadu.com and include these headers. DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=pub.pink; s=key1; t=1694120186; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type; bh=pxWpYEssv7il5Xh9h99sVHHMr0G27PKj3BxXwo87EBQ=; b=bFKyEI3eHN0ngbq3UcjxoebyA9J1On7mfs26FVTbvsB3h0OnwI5D9jFJROUe/RI0BduGYy Oaxu+J9KTyulhky46C/cLafiXrJfK1h1mgmfKkqHBkqFkoD6VEgUdMuG+GXBA2vXtKgU9J iE88l4N6T4MpBc0ZKW6mcoJOENHZvDA= From: john muhl Date: Thu, 07 Sep 2023 15:46:47 -0500 Message-ID: <87r0n9d7nt.fsf@pub.pink> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" X-Migadu-Flow: FLOW_OUT Received-SPF: pass client-ip=2001:41d0:203:375::d6; envelope-from=jm@pub.pink; helo=out-214.mta1.migadu.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Score: 0.9 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.1 (/) --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Tags: patch The elixir test with embedded heex fails after d05494a9ff8. Restoring the =E2=80=98(when (eq (treesit-parser-language parser) language)=E2=80=99 = part fixes it. The call to =E2=80=98(treesit-parser-list language)=E2=80=99 was not wo= rking right either since t-p-l expects the optional argument to be a buffer but language is a string like "heex". --=-=-= Content-Type: text/patch Content-Disposition: attachment; filename=0001-Check-embedded-languages-use-the-correct-parser.patch >From 2d7ea1119f12890350f0c04b1e6c70a9856e1f87 Mon Sep 17 00:00:00 2001 From: john muhl Date: Thu, 7 Sep 2023 15:43:01 -0500 Subject: [PATCH] Check embedded languages use the correct parser * lisp/treesit.el (treesit-update-ranges): Restore check to ensure embedded languages are handled by the appropriate parser. --- lisp/treesit.el | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/lisp/treesit.el b/lisp/treesit.el index 6fefc122582..63515e7f45c 100644 --- a/lisp/treesit.el +++ b/lisp/treesit.el @@ -680,9 +680,11 @@ treesit-update-ranges (treesit--merge-ranges old-ranges new-ranges beg end) (point-min) (point-max)))) - (dolist (parser (treesit-parser-list language)) - (treesit-parser-set-included-ranges - parser set-ranges)))))))) + (dolist (parser (treesit-parser-list)) + (when (eq (treesit-parser-language parser) + language) + (treesit-parser-set-included-ranges + parser set-ranges))))))))) (defun treesit-parser-range-on (parser beg &optional end) "Check if PARSER's range covers the portion between BEG and END. -- 2.41.0 --=-=-=-- From unknown Sun Jun 22 00:14:02 2025 MIME-Version: 1.0 X-Mailer: MIME-tools 5.505 (Entity 5.505) X-Loop: help-debbugs@gnu.org From: help-debbugs@gnu.org (GNU bug Tracking System) To: john muhl Subject: bug#65813: closed (Re: bug#65813: [PATCH] Fix elixir-ts-mode with embedded heex) Message-ID: References: <8E5115B6-4F98-4AA4-8EC4-2FFE3F32BE20@gmail.com> <87r0n9d7nt.fsf@pub.pink> X-Gnu-PR-Message: they-closed 65813 X-Gnu-PR-Package: emacs X-Gnu-PR-Keywords: patch Reply-To: 65813@debbugs.gnu.org Date: Thu, 07 Sep 2023 23:07:01 +0000 Content-Type: multipart/mixed; boundary="----------=_1694128021-31851-1" This is a multi-part message in MIME format... ------------=_1694128021-31851-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Your bug report #65813: [PATCH] Fix elixir-ts-mode with embedded heex which was filed against the emacs package, has been closed. The explanation is attached below, along with your original report. If you require more details, please reply to 65813@debbugs.gnu.org. --=20 65813: https://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D65813 GNU Bug Tracking System Contact help-debbugs@gnu.org with problems ------------=_1694128021-31851-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at 65813-done) by debbugs.gnu.org; 7 Sep 2023 23:06:40 +0000 Received: from localhost ([127.0.0.1]:41712 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qeO57-0008H1-5T for submit@debbugs.gnu.org; Thu, 07 Sep 2023 19:06:40 -0400 Received: from mail-pg1-x52a.google.com ([2607:f8b0:4864:20::52a]:42458) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qeO51-0008Gi-9f for 65813-done@debbugs.gnu.org; Thu, 07 Sep 2023 19:06:35 -0400 Received: by mail-pg1-x52a.google.com with SMTP id 41be03b00d2f7-56f84de64b9so999047a12.1 for <65813-done@debbugs.gnu.org>; Thu, 07 Sep 2023 16:06:29 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1694127982; x=1694732782; darn=debbugs.gnu.org; h=references:to:cc:in-reply-to:date:subject:mime-version:message-id :from:from:to:cc:subject:date:message-id:reply-to; bh=Fr4f9yQZBqoPoViDSSPZqIo9PfJmVEfNLWrEl94/lKs=; b=qQRkcN+N/1eX9Dq6Um+TF1iuvZEcncfajdSbuIglEkyqyRQaIfoWmIv2vDBqVXm+FB KtGtnOM/81nrnHnrgnnkB34A99n3bhysEvmCEr2OypWh9nLmR9w8q2Uu0TsijEJykZvk XB+PqBYCWQGzsvJ7qHPISlV0W+jTn4NRECS4qZK9hPVuQi8NvlAGpLulP6X7dq8m0Xxz qzAFNBNrdVWHZFz5ePAf4dr4cEEtOeLuOypqUozHLASViH1xhExbGTuHrr5YyiYvZFSU NlXMcCyrjVFTMTRvGCOHKycL4/iT5b3pvEUcwQqDGMVn5ZIcrOGKGVzNuXaG+po9V12R I8eg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1694127982; x=1694732782; h=references:to:cc:in-reply-to:date:subject:mime-version:message-id :from:x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=Fr4f9yQZBqoPoViDSSPZqIo9PfJmVEfNLWrEl94/lKs=; b=c7+3a1cA9OxCRheVDHHNyEtG5GoYwvrz7sZ2+OuNo5g0XR0ZQbekmo276qc+XuNYrl CVg/IT/aNiX/p87jkDz2F0Px0f3ru/TGVuSp5S4oacP/y/Ual5De/jCbOVRNZbipu2se T2vLDojgzXUlbfmS01lmvPwpUtOG6HKG2EoByRGUjHIBZYAp5Tk8+umKwVjogO4Gra7L b7tTUvh7ukj6ngr9I/PwD0dFheo2XRvTTl0M+gh+JEPH2lHXSSyC+HzGF5goi9QS0eJl y1mdj9vg8VQk6BLNSCJXm80ffbPLSgjtNL+LejzALFkn2y0bpo05dNfnDz1b/Vo6QceF iBsg== X-Gm-Message-State: AOJu0YyBuNt4+MGnRLrHYAbj3HPIopVd/1VR4aPdpxkUrohj8xsDHqaa nxwYIp/g+NQ+ogD1sbklVI0= X-Google-Smtp-Source: AGHT+IGh26b+dmYKBhQIQTZOj/6EQqOFC5O6OJ/eHOrsF2ENJriNO6OQaMhTitLifAMgscNPqjIXqQ== X-Received: by 2002:a05:6a20:3d21:b0:13f:b3b4:1986 with SMTP id y33-20020a056a203d2100b0013fb3b41986mr881110pzi.12.1694127982153; Thu, 07 Sep 2023 16:06:22 -0700 (PDT) Received: from smtpclient.apple (cpe-172-117-161-177.socal.res.rr.com. [172.117.161.177]) by smtp.gmail.com with ESMTPSA id b22-20020aa78716000000b006887b72ba38sm205452pfo.164.2023.09.07.16.06.21 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Thu, 07 Sep 2023 16:06:21 -0700 (PDT) From: Yuan Fu Message-Id: <8E5115B6-4F98-4AA4-8EC4-2FFE3F32BE20@gmail.com> Content-Type: multipart/mixed; boundary="Apple-Mail=_B18900E1-43C7-4B00-B25E-7A2F16D72698" Mime-Version: 1.0 (Mac OS X Mail 16.0 \(3731.700.6\)) Subject: Re: bug#65813: [PATCH] Fix elixir-ts-mode with embedded heex Date: Thu, 7 Sep 2023 16:06:10 -0700 In-Reply-To: <87r0n9d7nt.fsf@pub.pink> To: john muhl References: <87r0n9d7nt.fsf@pub.pink> X-Mailer: Apple Mail (2.3731.700.6) X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 65813-done Cc: 65813-done@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) --Apple-Mail=_B18900E1-43C7-4B00-B25E-7A2F16D72698 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=utf-8 > On Sep 7, 2023, at 1:46 PM, john muhl via Bug reports for GNU Emacs, = the Swiss army knife of text editors wrote: >=20 > Tags: patch >=20 > The elixir test with embedded heex fails after d05494a9ff8. Restoring > the =E2=80=98(when (eq (treesit-parser-language parser) language)=E2=80=99= part fixes > it. The call to =E2=80=98(treesit-parser-list language)=E2=80=99 was = not working right > either since t-p-l expects the optional argument to be a buffer but > language is a string like "heex". >=20 --Apple-Mail=_B18900E1-43C7-4B00-B25E-7A2F16D72698 Content-Disposition: attachment; filename=0001-Check-embedded-languages-use-the-correct-parser.patch Content-Type: text/patch; x-unix-mode=0644; name="0001-Check-embedded-languages-use-the-correct-parser.patch" Content-Transfer-Encoding: quoted-printable =46rom 2d7ea1119f12890350f0c04b1e6c70a9856e1f87 Mon Sep 17 00:00:00 2001 From: john muhl Date: Thu, 7 Sep 2023 15:43:01 -0500 Subject: [PATCH] Check embedded languages use the correct parser * lisp/treesit.el (treesit-update-ranges): Restore check to ensure embedded languages are handled by the appropriate parser. --- lisp/treesit.el | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/lisp/treesit.el b/lisp/treesit.el index 6fefc122582..63515e7f45c 100644 --- a/lisp/treesit.el +++ b/lisp/treesit.el @@ -680,9 +680,11 @@ treesit-update-ranges (treesit--merge-ranges old-ranges new-ranges beg end) (point-min) (point-max)))) - (dolist (parser (treesit-parser-list language)) - (treesit-parser-set-included-ranges - parser set-ranges)))))))) + (dolist (parser (treesit-parser-list)) + (when (eq (treesit-parser-language parser) + language) + (treesit-parser-set-included-ranges + parser set-ranges))))))))) =20 (defun treesit-parser-range-on (parser beg &optional end) "Check if PARSER's range covers the portion between BEG and END. --=20 2.41.0 --Apple-Mail=_B18900E1-43C7-4B00-B25E-7A2F16D72698 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=us-ascii Thank you very much, John. I pushed a fix to master. Yuan --Apple-Mail=_B18900E1-43C7-4B00-B25E-7A2F16D72698-- ------------=_1694128021-31851-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at submit) by debbugs.gnu.org; 7 Sep 2023 20:56:48 +0000 Received: from localhost ([127.0.0.1]:41500 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qeM3U-0007Nk-22 for submit@debbugs.gnu.org; Thu, 07 Sep 2023 16:56:48 -0400 Received: from lists.gnu.org ([2001:470:142::17]:47036) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qeM3P-0007NU-JC for submit@debbugs.gnu.org; Thu, 07 Sep 2023 16:56:46 -0400 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 1qeM3H-0002V0-SW for bug-gnu-emacs@gnu.org; Thu, 07 Sep 2023 16:56:36 -0400 Received: from out-214.mta1.migadu.com ([2001:41d0:203:375::d6]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qeM3D-0007y8-Ep for bug-gnu-emacs@gnu.org; Thu, 07 Sep 2023 16:56:35 -0400 X-Report-Abuse: Please report any abuse attempt to abuse@migadu.com and include these headers. DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=pub.pink; s=key1; t=1694120186; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type; bh=pxWpYEssv7il5Xh9h99sVHHMr0G27PKj3BxXwo87EBQ=; b=bFKyEI3eHN0ngbq3UcjxoebyA9J1On7mfs26FVTbvsB3h0OnwI5D9jFJROUe/RI0BduGYy Oaxu+J9KTyulhky46C/cLafiXrJfK1h1mgmfKkqHBkqFkoD6VEgUdMuG+GXBA2vXtKgU9J iE88l4N6T4MpBc0ZKW6mcoJOENHZvDA= From: john muhl To: bug-gnu-emacs@gnu.org Subject: [PATCH] Fix elixir-ts-mode with embedded heex Date: Thu, 07 Sep 2023 15:46:47 -0500 Message-ID: <87r0n9d7nt.fsf@pub.pink> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" X-Migadu-Flow: FLOW_OUT Received-SPF: pass client-ip=2001:41d0:203:375::d6; envelope-from=jm@pub.pink; helo=out-214.mta1.migadu.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Score: 0.9 (/) X-Debbugs-Envelope-To: submit Cc: Yuan Fu X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.1 (/) --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Tags: patch The elixir test with embedded heex fails after d05494a9ff8. Restoring the =E2=80=98(when (eq (treesit-parser-language parser) language)=E2=80=99 = part fixes it. The call to =E2=80=98(treesit-parser-list language)=E2=80=99 was not wo= rking right either since t-p-l expects the optional argument to be a buffer but language is a string like "heex". --=-=-= Content-Type: text/patch Content-Disposition: attachment; filename=0001-Check-embedded-languages-use-the-correct-parser.patch >From 2d7ea1119f12890350f0c04b1e6c70a9856e1f87 Mon Sep 17 00:00:00 2001 From: john muhl Date: Thu, 7 Sep 2023 15:43:01 -0500 Subject: [PATCH] Check embedded languages use the correct parser * lisp/treesit.el (treesit-update-ranges): Restore check to ensure embedded languages are handled by the appropriate parser. --- lisp/treesit.el | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/lisp/treesit.el b/lisp/treesit.el index 6fefc122582..63515e7f45c 100644 --- a/lisp/treesit.el +++ b/lisp/treesit.el @@ -680,9 +680,11 @@ treesit-update-ranges (treesit--merge-ranges old-ranges new-ranges beg end) (point-min) (point-max)))) - (dolist (parser (treesit-parser-list language)) - (treesit-parser-set-included-ranges - parser set-ranges)))))))) + (dolist (parser (treesit-parser-list)) + (when (eq (treesit-parser-language parser) + language) + (treesit-parser-set-included-ranges + parser set-ranges))))))))) (defun treesit-parser-range-on (parser beg &optional end) "Check if PARSER's range covers the portion between BEG and END. -- 2.41.0 --=-=-=-- ------------=_1694128021-31851-1-- From unknown Sun Jun 22 00:14:02 2025 X-Loop: help-debbugs@gnu.org Subject: bug#65813: [PATCH] Fix elixir-ts-mode with embedded heex Resent-From: john muhl Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 08 Sep 2023 00:14:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 65813 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch To: Yuan Fu Cc: 65813-done@debbugs.gnu.org Received: via spool by 65813-done@debbugs.gnu.org id=D65813.16941320195887 (code D ref 65813); Fri, 08 Sep 2023 00:14:02 +0000 Received: (at 65813-done) by debbugs.gnu.org; 8 Sep 2023 00:13:39 +0000 Received: from localhost ([127.0.0.1]:41762 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qeP7z-0001Wt-4Q for submit@debbugs.gnu.org; Thu, 07 Sep 2023 20:13:39 -0400 Received: from out-226.mta1.migadu.com ([95.215.58.226]:55154) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qeP7v-0001Wg-4Q for 65813-done@debbugs.gnu.org; Thu, 07 Sep 2023 20:13:37 -0400 References: <87r0n9d7nt.fsf@pub.pink> <8E5115B6-4F98-4AA4-8EC4-2FFE3F32BE20@gmail.com> DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=pub.pink; s=key1; t=1694132010; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=f1rDMrXblTIEjHhgdQv2caPDShPmwRP0hIkYtNUpPFI=; b=vxzTH/2DNwo+8Fp/z3GTDLr5/5pDGhub0CsiFyY+AP9A4QzylcI9rfiuQ7xGNRQuqe8E4O +TMPjuD8toHIvUsbmFvzXq2RX5iJi2Zu/L4RZhHKB3aMWUCRf6F8wcG2JZtFHmkv/yV4h9 R1SzqYhfZUEUl5OhMeZIenUmytIkuUQ= X-Report-Abuse: Please report any abuse attempt to abuse@migadu.com and include these headers. From: john muhl Date: Thu, 07 Sep 2023 19:09:27 -0500 In-reply-to: <8E5115B6-4F98-4AA4-8EC4-2FFE3F32BE20@gmail.com> Message-ID: <87jzt1bjyx.fsf@pub.pink> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Migadu-Flow: FLOW_OUT X-Spam-Score: 0.0 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) Yuan Fu writes: >> On Sep 7, 2023, at 1:46 PM, john muhl via Bug reports for GNU Emacs, >> the Swiss army knife of text editors wrote: >>=20 >> Tags: patch >>=20 >> The elixir test with embedded heex fails after d05494a9ff8. Restoring >> the =E2=80=98(when (eq (treesit-parser-language parser) language)=E2=80= =99 part fixes >> it. The call to =E2=80=98(treesit-parser-list language)=E2=80=99 was not= working right >> either since t-p-l expects the optional argument to be a buffer but >> language is a string like "heex". >>=20 > > [2. text/patch; 0001-Check-embedded-languages-use-the-correct-parser.patc= h]... > > > Thank you very much, John. I pushed a fix to master. You=E2=80=99re welcome. Tests (not just elixir) are now complaining about =E2=80=98treesit-local-parsers-in=E2=80=99 being missing. Test ruby-ts-indent-empty-if-else condition: (void-function treesit-local-parsers-in) From unknown Sun Jun 22 00:14:02 2025 X-Loop: help-debbugs@gnu.org Subject: bug#65813: [PATCH] Fix elixir-ts-mode with embedded heex Resent-From: Yuan Fu Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 08 Sep 2023 00:47:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 65813 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch To: john muhl Cc: 65813-done@debbugs.gnu.org Received: via spool by 65813-done@debbugs.gnu.org id=D65813.16941340138873 (code D ref 65813); Fri, 08 Sep 2023 00:47:01 +0000 Received: (at 65813-done) by debbugs.gnu.org; 8 Sep 2023 00:46:53 +0000 Received: from localhost ([127.0.0.1]:41769 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qePe9-0002J2-2S for submit@debbugs.gnu.org; Thu, 07 Sep 2023 20:46:53 -0400 Received: from mail-pf1-x42e.google.com ([2607:f8b0:4864:20::42e]:55439) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qePe4-0002Ik-Ex for 65813-done@debbugs.gnu.org; Thu, 07 Sep 2023 20:46:51 -0400 Received: by mail-pf1-x42e.google.com with SMTP id d2e1a72fcca58-68c0cb00fb3so1413049b3a.2 for <65813-done@debbugs.gnu.org>; Thu, 07 Sep 2023 17:46:46 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1694134001; x=1694738801; darn=debbugs.gnu.org; h=to:references:message-id:content-transfer-encoding:cc:date :in-reply-to:from:subject:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=1sZXBLfrmJQHDHqjh5eew2M5011eN+bbOOJ7KOoASzg=; b=eRZuHmfhRDffYny26+1UmExWhKFddQZk1k3bawglEueAv1ULeigzdwy0LrqHvE4v+J CiFkDwnrpPJKzvwT+mqvaobTw8BMJuR8AcIZFDu9CVaOOAF29LEQwxTQZQUjIYy9N0Qe LuOs5KxiSCveFt+YSR8ZmvSX6Lnnf3gqdNmuC3f12IVomP+47PHxc94B8XX7JlVRV5T/ M/B7taSxnW2x6/DDNZAENa4sI7Tf3N/7D7lNR4f9EEWZjOk9UTHQFv0pclAY0Xxm7y1Y p4pyxR9afm9ZJbOKA+NndnsbwuFrVwYmqS4yPQa/7bfNJorX4Jx9+gGZ3yYHWj1gFVZY k/Fw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1694134001; x=1694738801; h=to:references:message-id:content-transfer-encoding:cc:date :in-reply-to:from:subject:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=1sZXBLfrmJQHDHqjh5eew2M5011eN+bbOOJ7KOoASzg=; b=sXG6sCwf+aD4Ib42HgvJfbtuE173OgV3Xfufk5VEUb8QZ5r24b2dB9VAAPkArgrk6l 9DuMs2scLDqh+Zgn5QOdKSgwwMuBr71fFpSjyEpUw1ehIS/dq7SCT50QD95rtAlo1IPi 7zHm9+JW/PHmI5NtFS3Jf7mN7W7IOat7l57dLvawHSyFOBKbHrgfPY9dcdoSZ7k/VFV5 e+ZMI0myaM3es4eEmg/BNfgkrv7zu5JnWjrzNQQeqPzF7jazQegolvkedCA19uOrPa/y wRxtD3m7RjCzVbhpvHdFd+U51Vdr9pmHBlW0Spyg2jhucWI6g/uGNKW+c+9i9ZWiVVcN Sr9g== X-Gm-Message-State: AOJu0YxUq4EOmIpcl8hcXS6ka/fY51oprHxlybmCVGMH1Fk6lV4x6v3j tajcuSSxCEjwEPh9GCosiViQdi0pH0E= X-Google-Smtp-Source: AGHT+IG9d0vbblFwXxCYxuidngqQ4gTvCRd/5b/H9MrqKu8WGM8L5HGm0XSI37JWq4pSKbyWrUfnZQ== X-Received: by 2002:a05:6a20:4413:b0:143:4382:f836 with SMTP id ce19-20020a056a20441300b001434382f836mr1630235pzb.14.1694134000552; Thu, 07 Sep 2023 17:46:40 -0700 (PDT) Received: from smtpclient.apple (cpe-172-117-161-177.socal.res.rr.com. [172.117.161.177]) by smtp.gmail.com with ESMTPSA id f13-20020aa78b0d000000b0068be348e35fsm269664pfd.166.2023.09.07.17.46.39 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Thu, 07 Sep 2023 17:46:40 -0700 (PDT) Content-Type: text/plain; charset=utf-8 Mime-Version: 1.0 (Mac OS X Mail 16.0 \(3731.700.6\)) From: Yuan Fu In-Reply-To: <87jzt1bjyx.fsf@pub.pink> Date: Thu, 7 Sep 2023 17:46:29 -0700 Content-Transfer-Encoding: quoted-printable Message-Id: <15BFD370-DAFD-41C7-AF87-350F53245D6F@gmail.com> References: <87r0n9d7nt.fsf@pub.pink> <8E5115B6-4F98-4AA4-8EC4-2FFE3F32BE20@gmail.com> <87jzt1bjyx.fsf@pub.pink> X-Mailer: Apple Mail (2.3731.700.6) X-Spam-Score: 0.0 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) > On Sep 7, 2023, at 5:09 PM, john muhl wrote: >=20 > Yuan Fu writes: >=20 >>> On Sep 7, 2023, at 1:46 PM, john muhl via Bug reports for GNU Emacs, >>> the Swiss army knife of text editors wrote: >>>=20 >>> Tags: patch >>>=20 >>> The elixir test with embedded heex fails after d05494a9ff8. = Restoring >>> the =E2=80=98(when (eq (treesit-parser-language parser) language)=E2=80= =99 part fixes >>> it. The call to =E2=80=98(treesit-parser-list language)=E2=80=99 was = not working right >>> either since t-p-l expects the optional argument to be a buffer but >>> language is a string like "heex". >>>=20 >>=20 >> [2. text/patch; = 0001-Check-embedded-languages-use-the-correct-parser.patch]... >>=20 >>=20 >> Thank you very much, John. I pushed a fix to master. >=20 > You=E2=80=99re welcome. Tests (not just elixir) are now complaining = about > =E2=80=98treesit-local-parsers-in=E2=80=99 being missing. >=20 > Test ruby-ts-indent-empty-if-else condition: > (void-function treesit-local-parsers-in) Seems that I pushed some untested commits with the fix commit. I=E2=80=99v= e fixed the problem on master. Thanks for your patience. Yuan=