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#62752: html-ts-mode: treesit--simple-indent-eval: Wrong number of arguments: #, 3 Date: Tue, 11 Apr 2023 08:53:58 +0300 Message-ID: <83a5zfarrd.fsf@gnu.org> References: <9103509.CDJkKcVGEf@zarathustrawsp500> <0f1c27e1-4ff5-8909-ffd7-f185065e082e@gutov.dev> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="4708"; mail-complaints-to="usenet@ciao.gmane.io" Cc: v.pupillo@gmail.com, 62752@debbugs.gnu.org To: Dmitry Gutov Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Tue Apr 11 07:54:33 2023 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 1pm6xc-0000zZ-6Q for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 11 Apr 2023 07:54:32 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pm6xM-000456-H6; Tue, 11 Apr 2023 01:54:16 -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 1pm6x9-00044X-IG for bug-gnu-emacs@gnu.org; Tue, 11 Apr 2023 01:54:06 -0400 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 1pm6x8-0002R9-FP for bug-gnu-emacs@gnu.org; Tue, 11 Apr 2023 01:54:03 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1pm6x8-00061z-5a for bug-gnu-emacs@gnu.org; Tue, 11 Apr 2023 01:54:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 11 Apr 2023 05:54:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 62752 X-GNU-PR-Package: emacs Original-Received: via spool by 62752-submit@debbugs.gnu.org id=B62752.168119240623137 (code B ref 62752); Tue, 11 Apr 2023 05:54:02 +0000 Original-Received: (at 62752) by debbugs.gnu.org; 11 Apr 2023 05:53:26 +0000 Original-Received: from localhost ([127.0.0.1]:36372 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pm6wX-000617-T9 for submit@debbugs.gnu.org; Tue, 11 Apr 2023 01:53:26 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:49472) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pm6wW-00060w-O4 for 62752@debbugs.gnu.org; Tue, 11 Apr 2023 01:53:25 -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 1pm6wQ-0002Np-5a; Tue, 11 Apr 2023 01:53:19 -0400 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=6Ifm8C3d411fjRAUhXidjqmu/gxA3T2s8RuQhyRXHQg=; b=QPbRJnQQeWs/ /KJcY/cLQML3EvbULrorcEql/yEl9rMkr/+98FcHNTyaTQrsRxWmnn8olo6kORRaHKTn2zq5Mg401 vfmKv3gk4zn1Q+oPNVT8q/u9K/EvcxPTiG7Gpxk2GtwphtyQoDW/Ctp1k+V0eqxaWfquVpX+AaPYn GAPWie/fS3ibpIoOZvk9tMcI+sSjKAjb8aIZn1TSdiMo0z/tPX7pzaMKTr/eYWvUUUF44Alu6mt5O 7Jra+Vri6Veoq8Bq7OtFVkxWcjjM7pEJao+s6FHEZ9XP9Gr12qzejyhvRaKkWvTlK0dda93GsYP1+ wvNMT2gFfvWNCdIvw1gKgg==; 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 1pm6wN-0007w6-Vy; Tue, 11 Apr 2023 01:53:16 -0400 In-Reply-To: <0f1c27e1-4ff5-8909-ffd7-f185065e082e@gutov.dev> (message from Dmitry Gutov on Tue, 11 Apr 2023 00:24:54 +0300) 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:259622 Archived-At: > Resent-To: bug-gnu-emacs@gnu.org > Date: Tue, 11 Apr 2023 00:24:54 +0300 > From: Dmitry Gutov > > > I found a bug in html-ts-mode. > > If you try to indent this simple html snippet (after enabling html-ts mode) > > and try to indent, say, the first or second line, emacs reports the following > > error: > > Matched rule: ((parent-is "fragment") point-min 0) > > treesit--simple-indent-eval: Wrong number of arguments: #, 3 > > > > Using parent-bol instead of point-min solves the problem. > > > > GNU Emacs 30.0.50 (build 1, x86_64-pc-linux-gnu, GTK+ Version 3.24.37, cairo > > version 1.17.6) of 2023-04-09 > > I think the indention here was to use 'column-0', though. The mode was > just missed in the update in commit 4c16fd3a51286e1b1. > > The practical difference is minimal, but still. > > I've pushed this change to master; closing. Let us know if something's > still amiss, though. Thanks. Any reasons not to backport to emacs-29? This mode is new in Emacs 29, so no compatibility issues should exist.