From: "Jostein Kjønigsen" <jostein@secure.kjonigsen.net>
To: Yang Yingchao <yang.yingchao@qq.com>
Cc: "Eli Zaretskii" <eliz@gnu.org>,
"Mr. Jostein Kjønigsen" <jostein@kjonigsen.net>,
72489@debbugs.gnu.org
Subject: bug#72489: 29.4.50; forward-comment not working as expected in toml-ts-mode
Date: Thu, 15 Aug 2024 12:10:46 +0200 [thread overview]
Message-ID: <52D8946D-CABF-413B-977E-F5FD96586509@secure.kjonigsen.net> (raw)
In-Reply-To: <tencent_D6A1E1E7A494E9511E7F0B19A600F1B65606@qq.com>
[-- Attachment #1: Type: text/plain, Size: 1190 bytes --]
> On 7 Aug 2024, at 03:02, Yang Yingchao <yang.yingchao@qq.com> wrote:
>
> I think the error in your case also proves the misbehavior of forward-comment, and it breaks `uncomment-region' in my case. And with the suggested fix applied, and then recompile/evaluate, `uncomment-region' works as expected.
>
>> Yang: Have you loaded/compiled/provided the toml typescript-grammar before using this mode?
>>
>> The *-ts-modes depends on external grammar in order to properly initialize the major-mode and provide correct highlighting and indentation.
>
> I only have the required shared libraries (libtree-sitter.so & libtree-sitter-toml.so) installed. This should be enough, right? At least `treesit-explore-mode' works fine in toml buffer.
>
> Regards,
>
> -- *Yang Yingchao*
I've recompiled from scratch and confirm this indeed fixes all issues mentioned.
Eli: Feel free to apply the supplied patch. I still don't have commit access :)
https://github.com/emacs-mirror/emacs/blob/e993e479c324bb720bca3f1cf194e55e32f01ccd/lisp/textmodes/toml-ts-mode.el#L53
> ```
> - (modify-syntax-entry ?\n "> b" table)
> + (modify-syntax-entry ?\n ">" table)
> ```
[-- Attachment #2: Type: text/html, Size: 2000 bytes --]
next prev parent reply other threads:[~2024-08-15 10:10 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-08-06 5:57 bug#72489: 29.4.50; forward-comment not working as expected in toml-ts-mode Yang Yingchao via Bug reports for GNU Emacs, the Swiss army knife of text editors
2024-08-06 11:50 ` Eli Zaretskii
2024-08-06 13:06 ` Jostein Kjønigsen
2024-08-07 1:02 ` Yang Yingchao via Bug reports for GNU Emacs, the Swiss army knife of text editors
2024-08-15 10:10 ` Jostein Kjønigsen [this message]
2024-08-17 9:31 ` 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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=52D8946D-CABF-413B-977E-F5FD96586509@secure.kjonigsen.net \
--to=jostein@secure.kjonigsen.net \
--cc=72489@debbugs.gnu.org \
--cc=eliz@gnu.org \
--cc=jostein@kjonigsen.net \
--cc=yang.yingchao@qq.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 external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.