From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Dmitry Gutov Newsgroups: gmane.emacs.bugs Subject: bug#69562: 29.2.50; go-ts-mode does not handle comments with fill-paragraph Date: Thu, 7 Mar 2024 03:57:14 +0200 Message-ID: <3eeffc6b-edd7-462b-a7da-d3463c08ca5f@gutov.dev> References: <7676dd25-a1f2-440f-abd2-90b2ba69b20d@gutov.dev> <9078f92b-f567-42ce-8539-30eb7d097828@gutov.dev> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="31424"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Mozilla Thunderbird To: Ankit Gadiya , 69562@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Thu Mar 07 02:58:14 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 1ri31R-0007sl-6Z for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 07 Mar 2024 02:58:14 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ri30w-0004am-Rd; Wed, 06 Mar 2024 20:57:42 -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 1ri30l-0004a4-JC for bug-gnu-emacs@gnu.org; Wed, 06 Mar 2024 20:57:34 -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 1ri30l-00021I-Ay for bug-gnu-emacs@gnu.org; Wed, 06 Mar 2024 20:57:31 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1ri31F-00048u-Ug for bug-gnu-emacs@gnu.org; Wed, 06 Mar 2024 20:58:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Dmitry Gutov Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 07 Mar 2024 01:58:01 +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.170977667915915 (code B ref 69562); Thu, 07 Mar 2024 01:58:01 +0000 Original-Received: (at 69562) by debbugs.gnu.org; 7 Mar 2024 01:57:59 +0000 Original-Received: from localhost ([127.0.0.1]:52165 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ri31C-00048d-RT for submit@debbugs.gnu.org; Wed, 06 Mar 2024 20:57:59 -0500 Original-Received: from wout5-smtp.messagingengine.com ([64.147.123.21]:53511) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ri319-00048N-8T for 69562@debbugs.gnu.org; Wed, 06 Mar 2024 20:57:56 -0500 Original-Received: from compute2.internal (compute2.nyi.internal [10.202.2.46]) by mailout.west.internal (Postfix) with ESMTP id 7AAA93200906; Wed, 6 Mar 2024 20:57:16 -0500 (EST) Original-Received: from mailfrontend2 ([10.202.2.163]) by compute2.internal (MEProxy); Wed, 06 Mar 2024 20:57:16 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gutov.dev; h=cc :content-transfer-encoding:content-type:content-type:date:date :from:from:in-reply-to:in-reply-to:message-id:mime-version :references:reply-to:subject:subject:to:to; s=fm3; t=1709776636; x=1709863036; bh=vQy1wbiOgPuEAjQ1YJSXT++RWOR+Bn6JnyQ/zx1l1lo=; b= i45KFqKNknOgurnCeL8x74wTzrGnuZWqXmVd3wCi/shpRLTyRw66ciH05f1olNqC 0HT1PmWInP9hkzNkJASktSuh2YGqe979fLum7fMzie5gFpyZBVw7x/iqzFBVPyct R3KxmpuBLy1k2cIq8iZC57wkNoZCzXEtm/qDCC1rQQdF8wPoQdrC8wwtA7brTgxI 5RoP1Ta3VPTCaTT+D5oHq6R6aE1xcm4KiGErDWs49/hsWa/qtWLWFBNlYABz3eB8 /T4t6TQItAjmO/USOZzdwBHW7q5Q73cDEGf0Jf9KfBNoDqJAYHi+PJuYTDXXRpEl T9SVOoGILTc41+HQnseaVA== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:content-type :content-type:date:date:feedback-id:feedback-id:from:from :in-reply-to:in-reply-to:message-id:mime-version:references :reply-to:subject:subject:to:to:x-me-proxy:x-me-proxy :x-me-sender:x-me-sender:x-sasl-enc; s=fm1; t=1709776636; x= 1709863036; bh=vQy1wbiOgPuEAjQ1YJSXT++RWOR+Bn6JnyQ/zx1l1lo=; b=p /da0JuuSJur0OjumIjmr08ckPjXCBI/pZaeI5Pjp7KIDapNoMVuqIGCsDAg06iBO R6J62NqnQgvitskGzVuZ9IyG4uoew7GBg3imjaG+GdnFif2X8jQ4mOoCfFcJaztP yrqswITXm6aA86IaPvQTx9C9udjJAcKfWLmXATTo0CEKTyvbnTvQYyqmODxx6WzB 9YVD2qA/1ndO99vRA8YMxEETdrmcBM/3RqbZjIjPlaWmC26fEok8Bg3WHvjdSpvR +a6x3tHXdlfYPZpw5aUiikiX14PVqRZVLTysMar/5DMnpNxngzlCOsX6Z67tYxSu qOZ99n+/Bd2CDHvfE9IuA== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvledriedvgdegtdcutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenuc fjughrpefkffggfgfuvfhfhfgjtgfgsehtjeertddtvdejnecuhfhrohhmpeffmhhithhr hicuifhuthhovhcuoegumhhithhrhiesghhuthhovhdruggvvheqnecuggftrfgrthhtvg hrnheptdfhuedvtdevleegueelvedvjeevheffveevhedvuefftdefhfdvueeggfetgfdt necuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmrghilhhfrhhomhepughmih htrhihsehguhhtohhvrdguvghv X-ME-Proxy: Feedback-ID: i0e71465a:Fastmail Original-Received: by mail.messagingengine.com (Postfix) with ESMTPA; Wed, 6 Mar 2024 20:57:15 -0500 (EST) Content-Language: en-US In-Reply-To: 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:281134 Archived-At: On 06/03/2024 07:22, Ankit Gadiya wrote: >> Are you testing in the same Emacs as the one you filed the bug report in? >> > > Yes, I only have one Emacs version installed on my system and I'm currently > tracking the emacs-29 branch (last compiled maybe a week ago). I tried enabling > `debug-on-entry` for the `fill-paragraph` function. Here is the > Backtrace if it's > useful. I think beyond this it goes into lower level buffer manipulation > functions. > > > current-left-margin() > * move-to-left-margin() > * forward-paragraph(1) > * fill-forward-paragraph(1) > * fill-region(17 269 nil) Sorry, I'm not noticing anything odd here. >>> Today @stebalien@emacs.ch suggested to set adaptive-fill-regexp for go-ts-mode >>> and that solved it for me (if this is useful). >>> >>> (setq-mode-local go-ts-mode adaptive-fill-regexp "[ \t]*//+[ \t]*") >> >> TBH I'm not yet sure what the value of this variable should look like. >> But if I manage to reproduce the bug on my machine, this will be the >> next thing we can try, thanks. > > I also tried pulling the latest grammar for go and it's still > reproducing on my machine. Could you confirm that your problem reproduces if you start Emacs as 'emacs -Q'?