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 22:31:02 +0300 Message-ID: <4f90394b-c701-5053-fab2-433ff73f628c@gutov.dev> References: <9103509.CDJkKcVGEf@zarathustrawsp500> <0f1c27e1-4ff5-8909-ffd7-f185065e082e@gutov.dev> <83a5zfarrd.fsf@gnu.org> 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="13840"; 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 Cc: v.pupillo@gmail.com, 62752@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Tue Apr 11 21:32:19 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 1pmJj0-0003Lw-MX for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 11 Apr 2023 21:32:18 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pmJim-0003qD-FI; Tue, 11 Apr 2023 15:32:04 -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 1pmJik-0003q1-Hw for bug-gnu-emacs@gnu.org; Tue, 11 Apr 2023 15:32:02 -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 1pmJik-0006q1-9a for bug-gnu-emacs@gnu.org; Tue, 11 Apr 2023 15:32:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1pmJij-0007J1-Su for bug-gnu-emacs@gnu.org; Tue, 11 Apr 2023 15:32:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Dmitry Gutov Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 11 Apr 2023 19:32:01 +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.168124147328028 (code B ref 62752); Tue, 11 Apr 2023 19:32:01 +0000 Original-Received: (at 62752) by debbugs.gnu.org; 11 Apr 2023 19:31:13 +0000 Original-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 Original-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 Original-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) Original-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 Original-Received: by mail.messagingengine.com (Postfix) with ESMTPA; Tue, 11 Apr 2023 15:31:04 -0400 (EDT) Content-Language: en-US In-Reply-To: <83a5zfarrd.fsf@gnu.org> 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:259670 Archived-At: 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.