From debbugs-submit-bounces@debbugs.gnu.org Mon Apr 10 10:32:42 2023 Received: (at submit) by debbugs.gnu.org; 10 Apr 2023 14:32:42 +0000 Received: from localhost ([127.0.0.1]:35618 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1plsZV-00060N-ID for submit@debbugs.gnu.org; Mon, 10 Apr 2023 10:32:41 -0400 Received: from lists.gnu.org ([209.51.188.17]:58194) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1plsZU-00060F-A0 for submit@debbugs.gnu.org; Mon, 10 Apr 2023 10:32:40 -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 1plsZT-000271-Rj for bug-gnu-emacs@gnu.org; Mon, 10 Apr 2023 10:32:39 -0400 Received: from mail-wm1-x329.google.com ([2a00:1450:4864:20::329]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1plsZS-0004fX-51 for bug-gnu-emacs@gnu.org; Mon, 10 Apr 2023 10:32:39 -0400 Received: by mail-wm1-x329.google.com with SMTP id v14-20020a05600c470e00b003f06520825fso7956296wmo.0 for ; Mon, 10 Apr 2023 07:32:37 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; t=1681137156; h=content-transfer-encoding:mime-version:message-id:date:subject:to :from:from:to:cc:subject:date:message-id:reply-to; bh=b1fs81iAS8dXyxMUz/mR0Y2dvjVNPNVd6VCgrHgs29g=; b=PxpRbdafwm2dZiGPr3iy+d1ffh1DhRMQly5EGZGNwctdUwo+Rf3gzOT97mP5k+1grh TcIfw+4EdQdWwyH9lpx1OcoogqkKXsKdpIzEQPdJuU0oxc0oFsAppAEFUR0aC1g7rUb9 +vuvNgsuHw+4yQnkiZstO5W4mZZgd5uu7GCMDOeddLocOUukq1qwexYXYv6IHMPHlnfB OIyFOVKS/6P1CQOD1HaQBPFZ86yt7BevtlKwo7ijNUc+AMDTsz4sm1TVnErDag0exejv gRg6Xp5OI9nMHkMBQ6E1KBofHakSJzL3aRHp0PhKyueLfRa9OVpHeZKQTD5AprpiBGTW YQsg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1681137156; h=content-transfer-encoding:mime-version:message-id:date:subject:to :from:x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=b1fs81iAS8dXyxMUz/mR0Y2dvjVNPNVd6VCgrHgs29g=; b=bFpJniuX4vv/ukneZNhRoUFlRM6knt8uoPYdIqnO7/D7iGkF6WIb0pSf2J/HnahT/v lL6Va7FLrVej+b8wSRbT9gARf/xLGwK+0VoJwopWSm5F9gY4TQNuWy9PoSqxvZfK0Eb2 OSJdqTkyZYj9wsrSEDAoeag0VrD7R+uI7JDORqu4spTE77nNJC4aaXnG1kzoMWFVbIXf uGmDG4NC7+lIiDhqgo6cFxkampG7zdpsZYNNZqfy7pxl/+n6qkRNMWbDQs7Dt/rRZOZ/ By0gQ2MZSfUJB6X9QmmY+EefZpLO46I8zGepySqCkmmwBCGq/Wb/PcIritGcHUAJr9x/ SmVg== X-Gm-Message-State: AAQBX9dhvWzce2LBqFjH7oJEQ7bL8j+n7iHa1V4Uc9uhZSr9CoXan19b J+EvVHMrZ6EfSYvcD1+jAoxH4MhYZoU= X-Google-Smtp-Source: AKy350alC1yfTWVBf4HKYNZ3J1LEwSeczz/lPB1Tw/OGWrvF/nSFfDzzvaF0RCNGYA4BJPoOz1qHYg== X-Received: by 2002:a1c:4c09:0:b0:3ed:3457:4e82 with SMTP id z9-20020a1c4c09000000b003ed34574e82mr7674742wmf.30.1681137156004; Mon, 10 Apr 2023 07:32:36 -0700 (PDT) Received: from zarathustrawsp500.localnet (2-230-139-124.ip202.fastwebnet.it. [2.230.139.124]) by smtp.gmail.com with ESMTPSA id n6-20020a7bc5c6000000b003f072b22dbbsm12972561wmk.16.2023.04.10.07.32.35 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 10 Apr 2023 07:32:35 -0700 (PDT) From: Vincenzo Pupillo To: bug-gnu-emacs@gnu.org Subject: html-ts-mode: treesit--simple-indent-eval: Wrong number of arguments: #, 3 Date: Mon, 10 Apr 2023 16:32:35 +0200 Message-ID: <9103509.CDJkKcVGEf@zarathustrawsp500> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="nextPart3170385.5fSG56mABF" Content-Transfer-Encoding: 7Bit Received-SPF: pass client-ip=2a00:1450:4864:20::329; envelope-from=v.pupillo@gmail.com; helo=mail-wm1-x329.google.com X-Spam_score_int: -10 X-Spam_score: -1.1 X-Spam_bar: - X-Spam_report: (-1.1 / 5.0 requ) BAYES_00=-1.9, CONTENT_AFTER_HTML_WEAK=1, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=no autolearn_force=no X-Spam_action: no action X-Spam-Score: -0.3 (/) X-Debbugs-Envelope-To: submit 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: -2.3 (--) This is a multi-part message in MIME format. --nextPart3170385.5fSG56mABF Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" Hi, 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 The patch is attached. The fragment is as follows: test

This is a heading

This is a paragraph.

Thank you. V. --nextPart3170385.5fSG56mABF Content-Disposition: attachment; filename="0001-Fixed-the-html-ts-mode-indentation-rule.patch" Content-Transfer-Encoding: 7Bit Content-Type: text/x-patch; charset="utf-8"; name="0001-Fixed-the-html-ts-mode-indentation-rule.patch" >From 553358e481c4a81112d2ff84ae089ecfbfa20e12 Mon Sep 17 00:00:00 2001 From: Vincenzo Pupillo Date: Mon, 10 Apr 2023 15:49:32 +0200 Subject: [PATCH] Fixed the html-ts-mode indentation rule. The indentation rule ((parent-is "fragment") point-min 0) in html-ts-mode causes an error if trying to indent nodes that have 'fragment' as parent. * lisp/textmodes/html-ts-mode.el (html-ts-mode--indent-rules): use parent-bol instead of point-min --- lisp/textmodes/html-ts-mode.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lisp/textmodes/html-ts-mode.el b/lisp/textmodes/html-ts-mode.el index 58dcc7d8cad..a58e3665ff8 100644 --- a/lisp/textmodes/html-ts-mode.el +++ b/lisp/textmodes/html-ts-mode.el @@ -42,7 +42,7 @@ html-ts-mode-indent-offset (defvar html-ts-mode--indent-rules `((html - ((parent-is "fragment") point-min 0) + ((parent-is "fragment") parent-bol 0) ((node-is "/>") parent-bol 0) ((node-is ">") parent-bol 0) ((node-is "end_tag") parent-bol 0) -- 2.39.2 --nextPart3170385.5fSG56mABF-- From debbugs-submit-bounces@debbugs.gnu.org Mon Apr 10 17:25:05 2023 Received: (at 62752-done) by debbugs.gnu.org; 10 Apr 2023 21:25:06 +0000 Received: from localhost ([127.0.0.1]:36061 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1plz0b-00060f-Li for submit@debbugs.gnu.org; Mon, 10 Apr 2023 17:25:05 -0400 Received: from new1-smtp.messagingengine.com ([66.111.4.221]:48553) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1plz0Z-000605-FS for 62752-done@debbugs.gnu.org; Mon, 10 Apr 2023 17:25:04 -0400 Received: from compute3.internal (compute3.nyi.internal [10.202.2.43]) by mailnew.nyi.internal (Postfix) with ESMTP id 505EE581E8F; Mon, 10 Apr 2023 17:24:57 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute3.internal (MEProxy); Mon, 10 Apr 2023 17:24:57 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gutov.dev; h=cc :content-transfer-encoding:content-type:content-type:date:date :from:from:in-reply-to:in-reply-to:message-id:mime-version :references:reply-to:sender:subject:subject:to:to; s=fm1; t= 1681161897; x=1681165497; bh=7/zyTNXNqmps/ZQWNYAM7J6hH4aukixeOMg m/H5e3eg=; b=rdJF0t/KixsdXKQgxjwQyE96OovDJ7TFmtcA5x4Z3FblQvIE23W cia0e9dI1ImjP52dDU8eTvCh9fKsKzzhrQ7WLZqVw3Ar7sDJqU11+t0s5u8fiF1K KkA+dA1Vntbt5C1OFZuNuG/s2JOTrGIpjfwWEZ+zYaN8wDLkqeDxMuWsdGKWVv8z j2z2pqbI/rjMC6sQRwU1nujjKGtiAcJZR5dkclQbwOiVdu731W5rel8wsK/9i82T B42ZijPBvm7q0z6nnXMqqdNB4WL/hK4Iatrtf0GLVYIWa05oEhvkfYZjAc9O/Xz6 QfE9JsUL0XgffmomzElHYme0reKKQmd5uqw== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:content-type :content-type:date:date:feedback-id:feedback-id:from:from :in-reply-to:in-reply-to:message-id:mime-version:references :reply-to:sender:subject:subject:to:to:x-me-proxy:x-me-proxy :x-me-sender:x-me-sender:x-sasl-enc; s=fm2; t=1681161897; x= 1681165497; bh=7/zyTNXNqmps/ZQWNYAM7J6hH4aukixeOMgm/H5e3eg=; b=Z JOLbnxlC9nmoEBnufLh3VJpNrjqeEVnYnG1huK27eZu0oXHwP1SziETLdVxF1uvR M6OUNLI0gDNoWI1d6OxIhV8MWT9iYM4hepHuV44OB7embmhHtQOOfPpQwfz79nmZ kcGi1KqiEqVkgRrfhaRUZnYeTKudv7WRNtWF+hV3qO7ieeEalm5QRCAXbLVdYLBu /imQqrOq9KBCn1mcp7HF7/BQLIFu2wVaJRLoBPC8Q72t2N6B+w5n2xBspwlSZuRk sDXuSOaoNxsYJ2yTUbogQ+7gbrBy5nJGBwZ++C0WNg+Xl+lW4bqnCC16X/ykTl3K YxTIFkgmoykjmwnZRoCbw== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvhedrvdekvddgudeitdcutefuodetggdotefrod ftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfgh necuuegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmd enucfjughrpefkffggfgfuvfhfhfgjtgfgsehtjeertddtfeejnecuhfhrohhmpeffmhhi thhrhicuifhuthhovhcuoegumhhithhrhiesghhuthhovhdruggvvheqnecuggftrfgrth htvghrnhepgeehtdehudejieetuedttdejkeehjeetueekheffuddtjeeuvdefveeuveei uddunecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmrghilhhfrhhomhepug hmihhtrhihsehguhhtohhvrdguvghv X-ME-Proxy: Feedback-ID: i0e71465a:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Mon, 10 Apr 2023 17:24:55 -0400 (EDT) Message-ID: <0f1c27e1-4ff5-8909-ffd7-f185065e082e@gutov.dev> Date: Tue, 11 Apr 2023 00:24:54 +0300 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.9.0 Subject: Re: bug#62752: html-ts-mode: treesit--simple-indent-eval: Wrong number of arguments: #, 3 Content-Language: en-US To: Vincenzo Pupillo , 62752-done@debbugs.gnu.org References: <9103509.CDJkKcVGEf@zarathustrawsp500> From: Dmitry Gutov In-Reply-To: <9103509.CDJkKcVGEf@zarathustrawsp500> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Score: -1.1 (-) X-Debbugs-Envelope-To: 62752-done 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: -2.0 (--) Hi! Thanks for the report. On 10/04/2023 17:32, Vincenzo Pupillo wrote: > Hi, > 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. From debbugs-submit-bounces@debbugs.gnu.org Tue Apr 11 01:53:26 2023 Received: (at 62752) by debbugs.gnu.org; 11 Apr 2023 05:53:26 +0000 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 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 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==; 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 Date: Tue, 11 Apr 2023 08:53:58 +0300 Message-Id: <83a5zfarrd.fsf@gnu.org> From: Eli Zaretskii To: Dmitry Gutov In-Reply-To: <0f1c27e1-4ff5-8909-ffd7-f185065e082e@gutov.dev> (message from Dmitry Gutov on Tue, 11 Apr 2023 00:24:54 +0300) Subject: Re: bug#62752: html-ts-mode: treesit--simple-indent-eval: Wrong number of arguments: #, 3 References: <9103509.CDJkKcVGEf@zarathustrawsp500> <0f1c27e1-4ff5-8909-ffd7-f185065e082e@gutov.dev> X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 62752 Cc: v.pupillo@gmail.com, 62752@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: -3.3 (---) > 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. From debbugs-submit-bounces@debbugs.gnu.org Tue Apr 11 04:25:22 2023 Received: (at 62752) by debbugs.gnu.org; 11 Apr 2023 08:25:22 +0000 Received: from localhost ([127.0.0.1]:36591 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pm9Ja-0001wH-G7 for submit@debbugs.gnu.org; Tue, 11 Apr 2023 04:25:22 -0400 Received: from mail-ej1-f49.google.com ([209.85.218.49]:40518) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pm9JY-0001w1-3P for 62752@debbugs.gnu.org; Tue, 11 Apr 2023 04:25:20 -0400 Received: by mail-ej1-f49.google.com with SMTP id ud9so18062717ejc.7 for <62752@debbugs.gnu.org>; Tue, 11 Apr 2023 01:25:20 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; t=1681201514; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=KfRDYZb++oqjH6R5kgBZCAOeOlzf2Or69PwHCdKvdLo=; b=FbpTiBbyv8MGigR7gAhzFxifK3wXiA5cqb0oiIIO4OYtCHrm0kQ0DdDUdn93ERfBJ0 sZjf0rX+44BZ5UX+eV777AaUL6E0X9L5eInMEqjdp038FsYf5dcMrTG5lv9AUQV6M1CG FjQa1I/tZ9SLHsTbfnifKoVP5UM3o4YyoDEY8lE3sDxAVUEOrKAqQTt3b90QgUJWz4x5 JUbXNax+6DWvgdoLcOk5Lh+JarSV5QJ+1Yh6B8l75ZxnquXiuqZ+TDPTGwNfQgHbf3Vm gSmwRPhVHAdkaECqw+shRlU6iZeKlUUmUdWH+QHVkz/2v27aGJrcU8ej397v9UOpqs/R 6yyA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1681201514; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=KfRDYZb++oqjH6R5kgBZCAOeOlzf2Or69PwHCdKvdLo=; b=YWo7UpvPbd7uviJrjGPeOFx2OSbawHVFOdFa5ce9NhphOanQo97zrN2a/P2tju46Y5 r21jDXasvDu1aEgNs2+Nm2woCEp5diQmUdD+HbqVJMXZ5xdKS94A1pqrmAdeUtBS6kOw DIKvzZvVdIWZrB8mOvPEucOy+eO1N/sfFLKceozVO+pWIqTO5InVIt8mkaqigJlFBLPJ ToAyoC8Bx5dBpZdywnXLAE0HcnmYsZ62bDCHi/OHDPvlYWLJXHE6eSkIF4rwYr3cqYan UK97Ey/9egkJS9hnYbevPjnRzMXrlRnfNr5hDc2yTY9rCeqOm4lpxSbv0ZG8CjgZWDew WYrA== X-Gm-Message-State: AAQBX9fhj3J9BHQsZxg5Be4Zqs0Js08OYucTOGE7RZrhYsIUx2yVJjMs AoMUZfUoD3IbfOz54XHJ0RY= X-Google-Smtp-Source: AKy350a8TB3O3NM1KTWmt/anCzB7H4Q+uNBH/5VHbfK9q2y3buWkhz/UFyHbl2kvUhaz85HatXo/ZQ== X-Received: by 2002:a17:907:c608:b0:94a:5361:fe4e with SMTP id ud8-20020a170907c60800b0094a5361fe4emr6909640ejc.63.1681201513972; Tue, 11 Apr 2023 01:25:13 -0700 (PDT) Received: from 3-191.divsi.unimi.it (3-191.divsi.unimi.it. [159.149.3.191]) by smtp.gmail.com with ESMTPSA id hs40-20020a1709073ea800b009351546fb54sm5829195ejc.28.2023.04.11.01.25.13 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 11 Apr 2023 01:25:13 -0700 (PDT) From: Vincenzo Pupillo To: Dmitry Gutov , Eli Zaretskii Subject: Re: bug#62752: html-ts-mode: treesit--simple-indent-eval: Wrong number of arguments: #, 3 Date: Tue, 11 Apr 2023 10:25:12 +0200 Message-ID: <1849187.tdWV9SEqCh@3-191.divsi.unimi.it> In-Reply-To: <83a5zfarrd.fsf@gnu.org> References: <9103509.CDJkKcVGEf@zarathustrawsp500> <0f1c27e1-4ff5-8909-ffd7-f185065e082e@gutov.dev> <83a5zfarrd.fsf@gnu.org> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="UTF-8" X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 62752 Cc: 62752@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 (-) Thank you Dmitry. V. In data marted=EF=BF=BD 11 aprile 2023 07:53:58 CEST, Eli Zaretskii ha scri= tto: > > Resent-To: bug-gnu-emacs@gnu.org > > Date: Tue, 11 Apr 2023 00:24:54 +0300 > > From: Dmitry Gutov > >=20 > > > 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 f= ollowing > > > error: > > > Matched rule: ((parent-is "fragment") point-min 0) > > > treesit--simple-indent-eval: Wrong number of arguments: #, 3 > > >=20 > > > Using parent-bol instead of point-min solves the problem. > > >=20 > > > 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 > >=20 > > I think the indention here was to use 'column-0', though. The mode was= =20 > > just missed in the update in commit 4c16fd3a51286e1b1. > >=20 > > The practical difference is minimal, but still. > >=20 > > I've pushed this change to master; closing. Let us know if something's= =20 > > still amiss, though. >=20 > Thanks. >=20 > Any reasons not to backport to emacs-29? This mode is new in Emacs > 29, so no compatibility issues should exist. >=20 From debbugs-submit-bounces@debbugs.gnu.org Tue Apr 11 15:31:13 2023 Received: (at 62752) by debbugs.gnu.org; 11 Apr 2023 19:31:13 +0000 Received: from localhost ([127.0.0.1]:38285 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pmJhx-0007I0-Gr for submit@debbugs.gnu.org; Tue, 11 Apr 2023 15:31:13 -0400 Received: from new3-smtp.messagingengine.com ([66.111.4.229]:37463) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pmJhu-0007Hm-SV for 62752@debbugs.gnu.org; Tue, 11 Apr 2023 15:31:12 -0400 Received: from compute5.internal (compute5.nyi.internal [10.202.2.45]) by mailnew.nyi.internal (Postfix) with ESMTP id CABC1582003; Tue, 11 Apr 2023 15:31:05 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute5.internal (MEProxy); Tue, 11 Apr 2023 15:31:05 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gutov.dev; h=cc :cc:content-transfer-encoding:content-type:content-type:date :date:from:from:in-reply-to:in-reply-to:message-id:mime-version :references:reply-to:sender:subject:subject:to:to; s=fm1; t= 1681241465; x=1681245065; bh=h8UVAdmOzLccOZtmvBHK1zANdlZq8JATtQ4 NlLDx2pI=; b=NbighbAq8G2tZE4kfv/Qej5yZ0eAEkTF/Z9mcsOLUDHXKa8aLzp bbG4+SOXhrO02L0pJ0yX8t3cwoipDSAVfWtdJ0qJAeNzno7lTxoWxt9NPW3SL1JS 4iTCeAIUU7fy+yuQn96ZTetj0Jqc+fDy5p/p9YuC6d4FDJ6KPB+0wv5O4COm7fvX N+Mr0iK79zmrP6f+HI6/cc0E9Q+Q7xvG4uKoGx5h63lL/dcjb8j0VF1hqnH43xlq GVdSjakVmACqwGBEuDuS53d8drZqzm9gjqSYOyVdZGe7ULZibHYoogDilwVZkRrf dW0RFykiFl8U65tUNVBtAOZwf740mbKJJgQ== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-transfer-encoding :content-type:content-type:date:date:feedback-id:feedback-id :from:from:in-reply-to:in-reply-to:message-id:mime-version :references:reply-to:sender:subject:subject:to:to:x-me-proxy :x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm3; t= 1681241465; x=1681245065; bh=h8UVAdmOzLccOZtmvBHK1zANdlZq8JATtQ4 NlLDx2pI=; b=Aqsz0EHQ1MF7fzU2xjfRPCpd0r47gQm/+ZLauTtZKkbQpl91JN9 OlTCJhqbXkcCRdU2ZMYQPDM2rs12PVl0oxFWTH+nZE3V0YFgyIrADNrpk+IOMC9b ETY0KoPRLojJOGqiTvAli47t4mz35d5yc2J6wa2JOKzGvXPCF19uRZGgv1t3SxFr fF1aQpbYjjDCXEyfv4IF+nzc7zIAiVmWBMPHTPPCYg18SGdvQ/UgHzkJ2xvoKV7K fysN2lA8GMMWZRTHWyOf1uqCx22VuBanwymwFeT1Gm8U5hCDkqilUZqAgVQSiojW psln69rAwCb4klum2Wg3sacF5tGn5EgZ84Q== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvhedrvdekgedgudeflecutefuodetggdotefrod ftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfgh necuuegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmd enucfjughrpefkffggfgfuvfevfhfhjggtgfesthejredttdefjeenucfhrhhomhepffhm ihhtrhihucfiuhhtohhvuceoughmihhtrhihsehguhhtohhvrdguvghvqeenucggtffrrg htthgvrhhnpeeigfetveehveevffehledtueekieeikeeufeegudfgfeeghfdulefgfeev ledvveenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpe gumhhithhrhiesghhuthhovhdruggvvh X-ME-Proxy: Feedback-ID: i0e71465a:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Tue, 11 Apr 2023 15:31:04 -0400 (EDT) Message-ID: <4f90394b-c701-5053-fab2-433ff73f628c@gutov.dev> Date: Tue, 11 Apr 2023 22:31:02 +0300 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.9.0 Subject: Re: bug#62752: html-ts-mode: treesit--simple-indent-eval: Wrong number of arguments: #, 3 Content-Language: en-US To: Eli Zaretskii References: <9103509.CDJkKcVGEf@zarathustrawsp500> <0f1c27e1-4ff5-8909-ffd7-f185065e082e@gutov.dev> <83a5zfarrd.fsf@gnu.org> From: Dmitry Gutov In-Reply-To: <83a5zfarrd.fsf@gnu.org> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Score: -1.1 (-) X-Debbugs-Envelope-To: 62752 Cc: v.pupillo@gmail.com, 62752@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: -2.1 (--) On 11/04/2023 08:53, Eli Zaretskii wrote: >> 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. html-ts-mode is not in emacs-29. From debbugs-submit-bounces@debbugs.gnu.org Tue Apr 11 15:38:07 2023 Received: (at 62752) by debbugs.gnu.org; 11 Apr 2023 19:38:07 +0000 Received: from localhost ([127.0.0.1]:38295 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pmJoc-0007RZ-ND for submit@debbugs.gnu.org; Tue, 11 Apr 2023 15:38:06 -0400 Received: from eggs.gnu.org ([209.51.188.92]:42664) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pmJob-0007R5-2n for 62752@debbugs.gnu.org; Tue, 11 Apr 2023 15:38:05 -0400 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 1pmJoU-00006S-Ed; Tue, 11 Apr 2023 15:37:58 -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=y/KrxuhsYrUEY0AFlX/vjuCJ/d/Cd235R/wazSBu+iQ=; b=A2A+hzVzeuSL ZpmG/p4T4fkMxh+S0KX0fvThdfq+AWGISuAjjywU9UE/IWdxWLrt60PIIIxflNyJ4c7xpLPtBsOaO F+DCaqTSNiWlPdZkxjSjlcYQEVE7Gh95c2Eg10l91RtQvdh+ZsRLpGK68q6PJuwBNZ4EPugGH6i5o KIeNCX+i/1vc1kpALLwsKG4CEh/E00v79CbG3i7fy+4MC4+tkSyhovtoeA/38wv45PU56HP/n17nK JJtkaxlj9fr1bCn+wbWT+ZpMF5B3zjariwmuiMcfFiytAFyOcHaY49N+bCBusdNEO+uQfMdj6Os0N mMlkvxgmxF/jscLhT7zwfQ==; 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 1pmJoS-00064W-TZ; Tue, 11 Apr 2023 15:37:57 -0400 Date: Tue, 11 Apr 2023 22:38:40 +0300 Message-Id: <83sfd68b0f.fsf@gnu.org> From: Eli Zaretskii To: Dmitry Gutov In-Reply-To: <4f90394b-c701-5053-fab2-433ff73f628c@gutov.dev> (message from Dmitry Gutov on Tue, 11 Apr 2023 22:31:02 +0300) Subject: Re: bug#62752: html-ts-mode: treesit--simple-indent-eval: Wrong number of arguments: #, 3 References: <9103509.CDJkKcVGEf@zarathustrawsp500> <0f1c27e1-4ff5-8909-ffd7-f185065e082e@gutov.dev> <83a5zfarrd.fsf@gnu.org> <4f90394b-c701-5053-fab2-433ff73f628c@gutov.dev> X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 62752 Cc: v.pupillo@gmail.com, 62752@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: -3.3 (---) > Date: Tue, 11 Apr 2023 22:31:02 +0300 > Cc: 62752@debbugs.gnu.org, v.pupillo@gmail.com > From: Dmitry Gutov > > > Any reasons not to backport to emacs-29? This mode is new in Emacs > > 29, so no compatibility issues should exist. > > html-ts-mode is not in emacs-29. Oops, I confused it with css-ts-mode. From unknown Sat Aug 16 18:42:50 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Wed, 10 May 2023 11:24:08 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator