From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Vincenzo Pupillo Newsgroups: gmane.emacs.bugs Subject: 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> 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" Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="6440"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 62752@debbugs.gnu.org To: Dmitry Gutov , Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Tue Apr 11 10:26:25 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 1pm9Kb-0001Qv-2C for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 11 Apr 2023 10:26:25 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pm9KG-0004ig-9Z; Tue, 11 Apr 2023 04:26: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 1pm9KF-0004iF-0G for bug-gnu-emacs@gnu.org; Tue, 11 Apr 2023 04: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 1pm9KE-0005ol-Og for bug-gnu-emacs@gnu.org; Tue, 11 Apr 2023 04:26:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1pm9KE-0001xO-EE for bug-gnu-emacs@gnu.org; Tue, 11 Apr 2023 04:26:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Vincenzo Pupillo Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 11 Apr 2023 08:26: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.16812015227461 (code B ref 62752); Tue, 11 Apr 2023 08:26:02 +0000 Original-Received: (at 62752) by debbugs.gnu.org; 11 Apr 2023 08:25:22 +0000 Original-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 Original-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 Original-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) Original-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) 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:259628 Archived-At: 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