From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Dmitry Gutov Newsgroups: gmane.emacs.bugs Subject: bug#62752: html-ts-mode: treesit--simple-indent-eval: Wrong number of arguments: #, 3 Date: Tue, 11 Apr 2023 00:24:54 +0300 Message-ID: <0f1c27e1-4ff5-8909-ffd7-f185065e082e@gutov.dev> References: <9103509.CDJkKcVGEf@zarathustrawsp500> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="535"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.9.0 To: Vincenzo Pupillo , 62752-done@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Mon Apr 10 23:26:28 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 1plz1v-000ATG-M4 for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 10 Apr 2023 23:26:28 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1plz1b-0005bg-5o; Mon, 10 Apr 2023 17:26:07 -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 1plz1X-0005bI-1C for bug-gnu-emacs@gnu.org; Mon, 10 Apr 2023 17:26:03 -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 1plz1W-00049s-P0 for bug-gnu-emacs@gnu.org; Mon, 10 Apr 2023 17:26:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1plz1W-000624-3J for bug-gnu-emacs@gnu.org; Mon, 10 Apr 2023 17:26:02 -0400 Resent-From: Dmitry Gutov Original-Sender: "Debbugs-submit" Resent-To: bug-gnu-emacs@gnu.org Resent-Date: Mon, 10 Apr 2023 21:26:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: cc-closed 62752 X-GNU-PR-Package: emacs Mail-Followup-To: 62752@debbugs.gnu.org, dmitry@gutov.dev, v.pupillo@gmail.com Original-Received: via spool by 62752-done@debbugs.gnu.org id=D62752.168116190623109 (code D ref 62752); Mon, 10 Apr 2023 21:26:01 +0000 Original-Received: (at 62752-done) by debbugs.gnu.org; 10 Apr 2023 21:25:06 +0000 Original-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 Original-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 Original-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) Original-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 Original-Received: by mail.messagingengine.com (Postfix) with ESMTPA; Mon, 10 Apr 2023 17:24:55 -0400 (EDT) Content-Language: en-US In-Reply-To: <9103509.CDJkKcVGEf@zarathustrawsp500> 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:259606 Archived-At: 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.