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#61923: 30.0.50; go-ts-mode, multiline raw-string-literal wrong indentation Date: Sun, 26 Nov 2023 18:37:00 +0200 Message-ID: <05ad3eeb-f756-07dc-6623-8cc1af35955c@gutov.dev> References: <877cvz5b0t.fsf@posteo.net> <6313B57B-47BB-47D3-94F4-BA0C60FFD913@gmail.com> <1d59dc78-1480-9690-204c-317d552c4b90@yandex.ru> <87pm9o2z6c.fsf@posteo.net> <87leakfreh.fsf@vodafonemail.de> 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="5347"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.13.0 To: Jens Schmidt , 61923-done@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sun Nov 26 17:38:32 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 1r7I9P-0001DA-3t for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 26 Nov 2023 17:38:32 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1r7I8v-0006IT-27; Sun, 26 Nov 2023 11:38:01 -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 1r7I8r-0006Ht-DE for bug-gnu-emacs@gnu.org; Sun, 26 Nov 2023 11:37:57 -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 1r7I8r-0001Se-42 for bug-gnu-emacs@gnu.org; Sun, 26 Nov 2023 11:37:57 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1r7I8w-0004NL-IK for bug-gnu-emacs@gnu.org; Sun, 26 Nov 2023 11:38:02 -0500 Resent-From: Dmitry Gutov Original-Sender: "Debbugs-submit" Resent-To: bug-gnu-emacs@gnu.org Resent-Date: Sun, 26 Nov 2023 16:38:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: cc-closed 61923 X-GNU-PR-Package: emacs Mail-Followup-To: 61923@debbugs.gnu.org, dmitry@gutov.dev, snyssfx@posteo.net Original-Received: via spool by 61923-done@debbugs.gnu.org id=D61923.170101663816728 (code D ref 61923); Sun, 26 Nov 2023 16:38:02 +0000 Original-Received: (at 61923-done) by debbugs.gnu.org; 26 Nov 2023 16:37:18 +0000 Original-Received: from localhost ([127.0.0.1]:42608 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1r7I8D-0004Lk-MF for submit@debbugs.gnu.org; Sun, 26 Nov 2023 11:37:18 -0500 Original-Received: from out1-smtp.messagingengine.com ([66.111.4.25]:33503) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1r7I8A-0004LT-Hv for 61923-done@debbugs.gnu.org; Sun, 26 Nov 2023 11:37:16 -0500 Original-Received: from compute1.internal (compute1.nyi.internal [10.202.2.41]) by mailout.nyi.internal (Postfix) with ESMTP id 3D8695C00CD; Sun, 26 Nov 2023 11:37:03 -0500 (EST) Original-Received: from mailfrontend1 ([10.202.2.162]) by compute1.internal (MEProxy); Sun, 26 Nov 2023 11:37:03 -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:sender:subject:subject:to:to; s=fm3; t= 1701016623; x=1701103023; bh=ZnnU3IacFzMn/uJU/aEVgT7/3iUtrhBNwZJ jHH5dQNo=; b=okpP6iAh1R8sAdMP3DpQ910HRiCh7YbaWx43CCM+R4F8y3bwLzN DbKoUI/JtY6q3FfJrCEcbGEW/oqmyWBXPa+EWiHZyXkogrpgJ/6Zy2yn2gWX0wbx 4X4gj9aHegdGgooY01v+gt3Ib3oasGKT1iXXwdttuEDEaeXgKyP1FF9/uE3lVT5T tvgv0mOyiiZvuD3gwOI6YVbStSJqx9NuXm2+/qd2EnjBLFuCEFJ+Dvr+E1nFjamH 2BOmIid1wULWTY24XY8rkqTyN/Pjx6FSZdIEcgNPRY/5oScDxFxsmDC7neOoZ/Vb HjndSxD9T88w/45FRWc7Q+k2VNE4J54jsfg== 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:sender:subject:subject:to:to:x-me-proxy:x-me-proxy :x-me-sender:x-me-sender:x-sasl-enc; s=fm1; t=1701016623; x= 1701103023; bh=ZnnU3IacFzMn/uJU/aEVgT7/3iUtrhBNwZJjHH5dQNo=; b=i ZQP1Pwny7LZB4kwNoGyw38ppC0cUTLp0c/pVqeiqdkoL0YECX/re6MAjFqFu1r05 R6bR7954qXmy1aNXAFdB3D5yO+l0KMhaSkRGhQnH4OoqdJCgf5mh4tpaTsz6WhTZ WpKUHrBevWYPmNuBc6AxXv6Pmvsmk0FaUguatEZvOy+PKUBkFqiY6xzztkEQ2Fgl MVfRRV99TXT7Nls+turFtReAqSubI9Ey0Spc/6pU6qSWxXZPf5NBApJXSKPa+kAN sA1NeQvsB77c5tl4KwzqdTNmXj0+40QzW7ZM14YuC49M3GjGxNcTd6F7l9rujYo+ zZSDIdoxMZ2fw9k9Qiymw== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvkedrudehledgleegucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucenucfjughrpefkffggfgfuvfhfhfgjtgfgsehtje ertddtfeejnecuhfhrohhmpeffmhhithhrhicuifhuthhovhcuoegumhhithhrhiesghhu thhovhdruggvvheqnecuggftrfgrthhtvghrnhepgeehtdehudejieetuedttdejkeehje etueekheffuddtjeeuvdefveeuveeiuddunecuvehluhhsthgvrhfuihiivgeptdenucfr rghrrghmpehmrghilhhfrhhomhepughmihhtrhihsehguhhtohhvrdguvghv X-ME-Proxy: Feedback-ID: i0e71465a:Fastmail Original-Received: by mail.messagingengine.com (Postfix) with ESMTPA; Sun, 26 Nov 2023 11:37:01 -0500 (EST) Content-Language: en-US In-Reply-To: <87leakfreh.fsf@vodafonemail.de> 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:275065 Archived-At: Version: 29.1 On 26/11/2023 17:47, Jens Schmidt via Bug reports for GNU Emacs, the Swiss army knife of text editors wrote: > Gleb Zakharov writes: > >> Dmitry Gutov writes: >> >>> This seems to work: >>> >>> diff --git a/lisp/progmodes/go-ts-mode.el b/lisp/progmodes/go-ts-mode.el >>> index e8f93d14744..1857c67bb82 100644 >>> --- a/lisp/progmodes/go-ts-mode.el >>> +++ b/lisp/progmodes/go-ts-mode.el >>> @@ -71,6 +71,7 @@ go-ts-mode--indent-rules >>> ((node-is "]") parent-bol 0) >>> ((node-is "}") parent-bol 0) >>> ((node-is "labeled_statement") no-indent) >>> + ((parent-is "raw_string_literal") no-indent) >>> ((parent-is "argument_list") parent-bol go-ts-mode-indent-offset) >>> ((parent-is "block") parent-bol go-ts-mode-indent-offset) >>> ((parent-is "communication_case") parent-bol >>> go-ts-mode-indent-offset) >> Thank you, it works for me as well! > It seems that this bug could be closed: AFAICT the fix is installed on > master and Gleb was happy with it. Closing!