unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* bug#72489: 29.4.50; forward-comment not working as expected in toml-ts-mode
@ 2024-08-06  5:57 Yang Yingchao via Bug reports for GNU Emacs, the Swiss army knife of text editors
  2024-08-06 11:50 ` Eli Zaretskii
  0 siblings, 1 reply; 6+ messages in thread
From: Yang Yingchao via Bug reports for GNU Emacs, the Swiss army knife of text editors @ 2024-08-06  5:57 UTC (permalink / raw)
  To: 72489



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)
```


Regards

yang






^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2024-08-17  9:31 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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
2024-08-17  9:31         ` Eli Zaretskii

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).