From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Theodor Thornhill via "Bug reports for GNU Emacs, the Swiss army knife of text editors" Newsgroups: gmane.emacs.bugs Subject: bug#60805: [PATCH] Extend go-ts-mode with command to add docstring to function Date: Fri, 20 Jan 2023 21:39:42 +0100 Message-ID: <87a62dkkj5.fsf@thornhill.no> References: <83ilh98sln.fsf@gnu.org> <87358dz6hy.fsf@thornhill.no> <83tu0t718s.fsf@gnu.org> <87sfgdtga2.fsf@thornhill.no> <875yd4njdc.fsf@thornhill.no> <87r0vpv7fp.fsf@thornhill.no> Reply-To: Theodor Thornhill Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="8979"; mail-complaints-to="usenet@ciao.gmane.io" Cc: dev@rjt.dev, Eli Zaretskii , 60805@debbugs.gnu.org To: Evgeni Kolev Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Fri Jan 20 21:40:28 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 1pIyBY-00027D-7V for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 20 Jan 2023 21:40:28 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pIyBK-0001FL-A8; Fri, 20 Jan 2023 15:40:14 -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 1pIyB8-0001Et-Mi for bug-gnu-emacs@gnu.org; Fri, 20 Jan 2023 15:40:04 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1pIyB8-0002Pp-C6 for bug-gnu-emacs@gnu.org; Fri, 20 Jan 2023 15:40:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1pIyB8-0007vA-5T for bug-gnu-emacs@gnu.org; Fri, 20 Jan 2023 15:40:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Theodor Thornhill Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 20 Jan 2023 20:40:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 60805 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch Original-Received: via spool by 60805-submit@debbugs.gnu.org id=B60805.167424718930425 (code B ref 60805); Fri, 20 Jan 2023 20:40:02 +0000 Original-Received: (at 60805) by debbugs.gnu.org; 20 Jan 2023 20:39:49 +0000 Original-Received: from localhost ([127.0.0.1]:47256 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pIyAv-0007ue-20 for submit@debbugs.gnu.org; Fri, 20 Jan 2023 15:39:49 -0500 Original-Received: from out2.migadu.com ([188.165.223.204]:24252) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pIyAr-0007uU-TY for 60805@debbugs.gnu.org; Fri, 20 Jan 2023 15:39:46 -0500 X-Report-Abuse: Please report any abuse attempt to abuse@migadu.com and include these headers. DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=thornhill.no; s=key1; t=1674247184; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=Ks7ET5lEYR3bPvHWn/c6Q111bUR5HqZyMspLGTNNZoo=; b=aqLN3tXPoLC3xySGlr8ijmzP83AMgZ5HrGkSBZammA241p7farT8hNah33TFLx198Bip2Y v1JKRAg+2Iz2AbKPS9RlPCY5vd54HnwnoNI4ngJk1NssQmaQE97YLMKpXSOKO9w8LDaA0u q6/BY6Rn8YQE1d4pDlo3f08gHLmw08sl+jeTp7kGI5TeLyf7VpcYZanDj8rQSHGw5WwT0y p4COQ2xENvtS+74gw+Gygx084qr7PT77VRfKApls5YCbLsDHH7gjMMImX7ZF2Qk3Wy3Wnd FoK5ClSgSSWJfe3gBV2/PmemrbVZkZ6bK6vawQYbn/T8lGVHcwGwmWE2aqvYGw== In-Reply-To: X-Migadu-Flow: FLOW_OUT 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:253797 Archived-At: Evgeni Kolev writes: > I'm sending an updated patch. The improvement is that empty lines are > not considered comments. Example: > ``` > // unrelated comment > > // docstring > func sum(a, b int) int { > return a + b > } > ``` > With point in the function body, C-c C-d jumps to "// docstring" > instead of "// unrelated comment". > > Patch is below. > Thanks! @Randy, anything you want to add? By the way, the patch doesn't apply cleanly on my system, could you resend the patch as an attachment, maybe? And also, have you done the paperwork for emacs contributions? Theo