unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Dmitry Gutov <dmitry@gutov.dev>
To: Eli Zaretskii <eliz@gnu.org>
Cc: v.pupillo@gmail.com, 62752@debbugs.gnu.org
Subject: bug#62752: html-ts-mode: treesit--simple-indent-eval: Wrong number of arguments: #<subr point-min>, 3
Date: Tue, 11 Apr 2023 22:31:02 +0300	[thread overview]
Message-ID: <4f90394b-c701-5053-fab2-433ff73f628c@gutov.dev> (raw)
In-Reply-To: <83a5zfarrd.fsf@gnu.org>

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<dmitry@gutov.dev>
>>
>>> 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: #<subr point-min>, 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.





  parent reply	other threads:[~2023-04-11 19:31 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-04-10 14:32 bug#62752: html-ts-mode: treesit--simple-indent-eval: Wrong number of arguments: #<subr point-min>, 3 Vincenzo Pupillo
2023-04-10 21:24 ` Dmitry Gutov
2023-04-11  5:53   ` Eli Zaretskii
2023-04-11  8:25     ` Vincenzo Pupillo
2023-04-11 19:31     ` Dmitry Gutov [this message]
2023-04-11 19:38       ` Eli Zaretskii

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4f90394b-c701-5053-fab2-433ff73f628c@gutov.dev \
    --to=dmitry@gutov.dev \
    --cc=62752@debbugs.gnu.org \
    --cc=eliz@gnu.org \
    --cc=v.pupillo@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).