all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Eli Zaretskii <eliz@gnu.org>
To: George Kettleborough <kettleg@gmail.com>, Yuan Fu <casouri@gmail.com>
Cc: 65695@debbugs.gnu.org
Subject: bug#65695: 29.1; fill-paragraph not working in python-ts-mode
Date: Sat, 02 Sep 2023 12:06:41 +0300	[thread overview]
Message-ID: <83h6od9c66.fsf@gnu.org> (raw)
In-Reply-To: <19e9a33a-7ae9-2331-0274-fa65aecbb3f7@gmail.com> (message from George Kettleborough on Fri, 1 Sep 2023 19:52:37 +0100)

> Date: Fri, 1 Sep 2023 19:52:37 +0100
> From: George Kettleborough <kettleg@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.





  reply	other threads:[~2023-09-02  9:06 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-09-01 18:52 bug#65695: 29.1; fill-paragraph not working in python-ts-mode George Kettleborough
2023-09-02  9:06 ` Eli Zaretskii [this message]
2023-09-10  7:46   ` 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=83h6od9c66.fsf@gnu.org \
    --to=eliz@gnu.org \
    --cc=65695@debbugs.gnu.org \
    --cc=casouri@gmail.com \
    --cc=kettleg@gmail.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.