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#69562: 29.2.50; go-ts-mode does not handle comments with fill-paragraph Date: Tue, 05 Mar 2024 17:49:09 +0200 Message-ID: <86o7bsllvu.fsf@gnu.org> References: <7676dd25-a1f2-440f-abd2-90b2ba69b20d@gutov.dev> <9078f92b-f567-42ce-8539-30eb7d097828@gutov.dev> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="30622"; mail-complaints-to="usenet@ciao.gmane.io" Cc: ankit@argp.in, 69562@debbugs.gnu.org To: Dmitry Gutov Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Tue Mar 05 16:49:44 2024 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 1rhX31-0007fQ-R8 for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 05 Mar 2024 16:49:44 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rhX2r-0000A5-Sr; Tue, 05 Mar 2024 10:49:33 -0500 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 1rhX2q-00009o-Nh for bug-gnu-emacs@gnu.org; Tue, 05 Mar 2024 10:49:32 -0500 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 1rhX2q-0006wQ-Fo for bug-gnu-emacs@gnu.org; Tue, 05 Mar 2024 10:49:32 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1rhX3K-0007wO-EY for bug-gnu-emacs@gnu.org; Tue, 05 Mar 2024 10:50:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 05 Mar 2024 15:50:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 69562 X-GNU-PR-Package: emacs Original-Received: via spool by 69562-submit@debbugs.gnu.org id=B69562.170965379230500 (code B ref 69562); Tue, 05 Mar 2024 15:50:02 +0000 Original-Received: (at 69562) by debbugs.gnu.org; 5 Mar 2024 15:49:52 +0000 Original-Received: from localhost ([127.0.0.1]:48735 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rhX39-0007vs-Rt for submit@debbugs.gnu.org; Tue, 05 Mar 2024 10:49:52 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:34572) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rhX38-0007vb-0l for 69562@debbugs.gnu.org; Tue, 05 Mar 2024 10:49:50 -0500 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 1rhX2Y-0006tE-8A; Tue, 05 Mar 2024 10:49:14 -0500 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=Hgj2Bh15iZWrx1EdCIi5PMlusE+NDYLkOGzXI73TAV4=; b=PYHWqj5L/mmr /Xk7RTGGvDNWSFciXQE2yg5qzz3JelyklW0vDzumVa4G5N3Vlv6XLbF9mtWF9f7qWHtshutGyWAdE d+9UZ6tCl9ZD67SyXOsgJzjFOqnPjh3iMMmWKtqyvd5t/lrL808qJ2PFxK4KlcQCK9R9fGrByQQyy Y4JxGNhD0ShzXMtUDgKEEhxscHHSuC1iR6yHxavMG9bb+PQImGevBOqbTXYXWJHAgOZHWOpjFEblx KjsaIrRVMqPpWCH2MAqZ1BemVKiKSQGrgamK48qxT44b4aDFG12X/dZ9Tm9yJ3iPPbHI1tEqw5hC/ f7dA01rHV8zuD+YfgmnMjQ==; In-Reply-To: <9078f92b-f567-42ce-8539-30eb7d097828@gutov.dev> (message from Dmitry Gutov on Tue, 5 Mar 2024 16:49:44 +0200) 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:281057 Archived-At: > Cc: 69562@debbugs.gnu.org > Date: Tue, 5 Mar 2024 16:49:44 +0200 > From: Dmitry Gutov > > On 05/03/2024 16:22, Ankit Gadiya wrote: > >> Does you example originally have one long commented line? Because when I > >> try it that way, filling seems to work fine, comments are added on the > >> new lines. > > > > Yes, I think the lines got wrapped in the mail but I had a long line. Admittedly > > that sample is specifically to showcase the issue but a more realistic scenario > > is when I already have multiline comments, I update it and want to re-fill > > it. Here also, it is clear that fill-paragraph does not respect the comment > > delimiter so it moves them just like regular characters. > > > > (all comment lines start with // in case mail adds line breaks) > > > > // Sample is a sample function with a very long comment. Sample is a > > // new details added to the comment sample function with a very > > long comment. Sample is a sample function > > // with a very long comment. Sample is a sample function with a very long > > // comment. > > func Sample() { > > > > } > > > > Becomes this > > > > // Sample is a sample function with a very long comment. Sample is a // new > > details added to the comment sample function with a very long > > comment. Sample is > > a sample function // with a very long comment. Sample is a sample > > function with > > a very long // comment. > > func Sample() { > > > > } > > That's odd: here it becomes > > // Sample is a sample function with a very long comment. Sample is a > // new details added to the comment sample function with a very long > // comment. Sample is a sample function with a very long > // comment. Sample is a sample function with a very long comment. > func Sample() { Could it be that you two use different versions of the grammar library?