bug-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#72116: 30.0.60; Filling c-ts-mode documentation is broken


From: Eli Zaretskii
Subject: bug#72116: 30.0.60; Filling c-ts-mode documentation is broken
Date: Sun, 14 Jul 2024 21:44:32 +0300

> From: Damien Cassou <damien@cassou.me>
> Date: Sun, 14 Jul 2024 20:23:09 +0200
> 
> Filling documentation in a c-ts-mode buffer doesn't insert the " * "
> prefix. It works fine in c-mode. How to reproduce:
> 
> 1. Install the C treesitter grammar
> 2. Start emacs with "emacs -Q"
> 3. Open the attached file in a new buffer
> 4. Run M-x c-ts-mode
> 5. Move point to the middle of line 2
> 6. Press M-q

You can work around this by enabling auto-fill-mode.  Then typing SPC
at the end of the long line will produce the effect you want.

Yuan, can you please look into this?

> If you remove step 4 from the above instructions, c-mode will do the
> work just fine.

In c-mode, M-q is bound to a c-mode specific function, which makes no
sens in c-ts-mode.  We need a ts-specific solution (and we already
seem to have it, it just isn't working in this case for some reason).





reply via email to

[Prev in Thread] Current Thread [Next in Thread]