From: Eli Zaretskii <eliz@gnu.org>
To: "Yang Yingchao" <yang.yingchao@qq.com>,
"Jostein Kjønigsen" <jostein@kjonigsen.net>
Cc: 72489@debbugs.gnu.org
Subject: bug#72489: 29.4.50; forward-comment not working as expected in toml-ts-mode
Date: Tue, 06 Aug 2024 14:50:45 +0300 [thread overview]
Message-ID: <86cymlq38q.fsf@gnu.org> (raw)
In-Reply-To: <tencent_9A2AE3C89CBF8CCC4A4065BBBEB0E8534405@qq.com> (bug-gnu-emacs@gnu.org)
> Date: Tue, 06 Aug 2024 13:57:28 +0800
> From: Yang Yingchao via "Bug reports for GNU Emacs,
> the Swiss army knife of text editors" <bug-gnu-emacs@gnu.org>
>
>
>
> Steps to reproduce:
>
> 1. Open a new buffer in `toml-ts-mode`.
> 2. Insert the following simple snippets:
> ```
> # (forward-comment 1)
> # [[keyboard.bindings]]
> # chars = "a"
> # key = "Tab"
> # mods = "Alt"
> ```
> 3. Move the cursor to the first line and call `eval-last-sexp`.
>
> This should move the cursor to the beginning of the line "chars = a", but actually it moves the cursor to the end of the whole block.
>
> This might be an issue with `toml-ts-mode--syntax-table`.
>
> Making a change in https://github.com/emacs-mirror/emacs/blob/e993e479c324bb720bca3f1cf194e55e32f01ccd/lisp/textmodes/toml-ts-mode.el#L53 can fix this issue:
>
> ```
> - (modify-syntax-entry ?\n "> b" table)
> + (modify-syntax-entry ?\n ">" table)
> ```
Thanks.
Jostein, could you please look into this?
next prev parent reply other threads:[~2024-08-06 11:50 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 [this message]
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
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=86cymlq38q.fsf@gnu.org \
--to=eliz@gnu.org \
--cc=72489@debbugs.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.