From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#65695: 29.1; fill-paragraph not working in python-ts-mode Date: Sat, 02 Sep 2023 12:06:41 +0300 Message-ID: <83h6od9c66.fsf@gnu.org> References: <19e9a33a-7ae9-2331-0274-fa65aecbb3f7@gmail.com> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="21460"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 65695@debbugs.gnu.org To: George Kettleborough , Yuan Fu Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sat Sep 02 11:08:08 2023 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1qcMbv-0005NJ-N7 for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 02 Sep 2023 11:08:07 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qcMbh-0004Cq-Rw; Sat, 02 Sep 2023 05:07:53 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qcMbg-0004Ci-C5 for bug-gnu-emacs@gnu.org; Sat, 02 Sep 2023 05:07:52 -0400 Original-Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1qcMbg-000763-48 for bug-gnu-emacs@gnu.org; Sat, 02 Sep 2023 05:07:52 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1qcMbp-0006I0-Np for bug-gnu-emacs@gnu.org; Sat, 02 Sep 2023 05:08:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 02 Sep 2023 09:08:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 65695 X-GNU-PR-Package: emacs Original-Received: via spool by 65695-submit@debbugs.gnu.org id=B65695.169364563224114 (code B ref 65695); Sat, 02 Sep 2023 09:08:01 +0000 Original-Received: (at 65695) by debbugs.gnu.org; 2 Sep 2023 09:07:12 +0000 Original-Received: from localhost ([127.0.0.1]:35162 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qcMb2-0006Gr-AM for submit@debbugs.gnu.org; Sat, 02 Sep 2023 05:07:12 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:38414) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qcMb0-0006Ge-Ls for 65695@debbugs.gnu.org; Sat, 02 Sep 2023 05:07:10 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qcMal-0006uf-Hw; Sat, 02 Sep 2023 05:06:55 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=kgT/xF8zWJrWaL9PzSJru+RkLZTYqZ0qctAfsaA4Kfg=; b=l+N00nb48aqt R1iwE6WzBrjTRVB0L0JMXbVV3IRRDleLCPo4grTsijuaHeit+pvj6XcvZuSV/Osr0hTctGtF0C7KN jN3C6mcTtOe0PU00ToAn9FCe4JhWKg47etA8aMhQ4IijGMEvGCM8i5iVikKqbCrqX6arQQU35w0Gx QV0JPOatMuS5HffURVxQDYuktYVXl9ezjek8IRfxx/eq7KBbaE49jmp3SJZlPYvUKXVyhHxqMF1Jr 0YcN93GYavFZMI8IaBTTH36HTbI7nKQlWPuCtpj+xjRjA1x+AaRoZhuYn8h9vcF36qd1t0pscLysm cN21IhmcKGVWILI/OdlmYQ==; In-Reply-To: <19e9a33a-7ae9-2331-0274-fa65aecbb3f7@gmail.com> (message from George Kettleborough on Fri, 1 Sep 2023 19:52:37 +0100) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:268973 Archived-At: > Date: Fri, 1 Sep 2023 19:52:37 +0100 > From: George Kettleborough > > > 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.