GNU bug report logs - #65695
29.1; fill-paragraph not working in python-ts-mode

Previous Next

Package: emacs;

Reported by: George Kettleborough <kettleg <at> gmail.com>

Date: Sat, 2 Sep 2023 08:25:01 UTC

Severity: normal

Found in version 29.1

Full log


Message #8 received at 65695 <at> debbugs.gnu.org (full text, mbox):

From: Eli Zaretskii <eliz <at> gnu.org>
To: George Kettleborough <kettleg <at> gmail.com>, Yuan Fu <casouri <at> gmail.com>
Cc: 65695 <at> debbugs.gnu.org
Subject: Re: bug#65695: 29.1; fill-paragraph not working in python-ts-mode
Date: Sat, 02 Sep 2023 12:06:41 +0300
> Date: Fri, 1 Sep 2023 19:52:37 +0100
> From: George Kettleborough <kettleg <at> gmail.com>
> 
> 
> Use python-ts-mode (with an installed language grammar). Type a very
> long function docstring and use `fill-paragraph' (M-q).
> 
> Expected: This should reformat the docstring to fit in the fill width
> (by calling `python-fill-paragraph' by default).
> 
> Actual: Nothing happens.
> 
> Note: Normal fill behaviour still works in python-mode.

Yuan, could you please look into fixing this?  It looks like the
fill-paragraph-function used by python-ts-mode is still
python-fill-paragraph, but the latter depends on syntax tables being
set, which I guess isn't done in python-ts-mode?  So we probably need
a different function that uses tree-sitter information?

Thanks.




This bug report was last modified 1 year and 284 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.