[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/go-mode 63e67b1 290/495: go-goto-docstring: fix insertion
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/go-mode 63e67b1 290/495: go-goto-docstring: fix insertion of function name |
Date: |
Sat, 7 Aug 2021 09:05:33 -0400 (EDT) |
branch: elpa/go-mode
commit 63e67b187e8fbe6153995a754c60f65217e53142
Author: Dominik Honnef <dominik@honnef.co>
Commit: Dominik Honnef <dominik@honnef.co>
go-goto-docstring: fix insertion of function name
We have to insert the comment marker before we call go--function-name,
otherwise we will get the name of the previous function, as there's no
docstring to walk down on yet.
---
go-mode.el | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/go-mode.el b/go-mode.el
index bf5505e..da87c00 100644
--- a/go-mode.el
+++ b/go-mode.el
@@ -1787,7 +1787,8 @@ an error is raised unless ARG is non-nil."
(t
(forward-line -1)
(newline)
- (insert (format "// %s " (go--function-name t))))))
+ (insert "// ")
+ (insert (go--function-name t)))))
(defun go--function-name (&optional arg)
"Return the name of the surrounding function.
- [nongnu] elpa/go-mode 3d801ed 268/495: Ignore anonymous functions if called with prefix, (continued)
- [nongnu] elpa/go-mode 3d801ed 268/495: Ignore anonymous functions if called with prefix, ELPA Syncer, 2021/08/07
- [nongnu] elpa/go-mode c0a3a16 269/495: Update README.md to reflect the latest version of the truth, ELPA Syncer, 2021/08/07
- [nongnu] elpa/go-mode c849d72 273/495: Don't throw errors in some go-goto-* functions, ELPA Syncer, 2021/08/07
- [nongnu] elpa/go-mode 37b9f9c 272/495: Change handling of prefix args to consider them booleans, ELPA Syncer, 2021/08/07
- [nongnu] elpa/go-mode c8c6bb0 275/495: go--function-name: return nil for anonymous functions, ELPA Syncer, 2021/08/07
- [nongnu] elpa/go-mode f58910a 276/495: Reimplement go--in-function-p to do as the name says, ELPA Syncer, 2021/08/07
- [nongnu] elpa/go-mode f44854b 278/495: More idiomatic docstrings, ELPA Syncer, 2021/08/07
- [nongnu] elpa/go-mode 9424ab3 283/495: Map C-g f to goto-function and C-g n to goto-function-name, ELPA Syncer, 2021/08/07
- [nongnu] elpa/go-mode abc56d4 286/495: Rename go-goto-return-value to go-goto-return-values, ELPA Syncer, 2021/08/07
- [nongnu] elpa/go-mode e4cd631 288/495: Update AUTHORS, automate process, ELPA Syncer, 2021/08/07
- [nongnu] elpa/go-mode 63e67b1 290/495: go-goto-docstring: fix insertion of function name,
ELPA Syncer <=
- [nongnu] elpa/go-mode 7c5e9ad 303/495: Avoid warning because of font-lock-syntactic-keywords, ELPA Syncer, 2021/08/07
- [nongnu] elpa/go-mode bdf353a 304/495: Use cl-lib instead of cl, ELPA Syncer, 2021/08/07
- [nongnu] elpa/go-mode 82ebf74 302/495: Don't make ":", ", " or "=" electric, ELPA Syncer, 2021/08/07
- [nongnu] elpa/go-mode a49cdb8 305/495: Evaluate (featurep 'xemacs) at compile time, ELPA Syncer, 2021/08/07
- [nongnu] elpa/go-mode 3200a9f 301/495: Support electric-indent-mode, ELPA Syncer, 2021/08/07
- [nongnu] elpa/go-mode 53f50f7 299/495: Make godoc command and completion configurable, ELPA Syncer, 2021/08/07
- [nongnu] elpa/go-mode 1a0541c 312/495: Simplify go-packages-go-list by using process-lines, ELPA Syncer, 2021/08/07
- [nongnu] elpa/go-mode 404f8ca 308/495: Improve README and NEWS entries for new goto commands, ELPA Syncer, 2021/08/07
- [nongnu] elpa/go-mode f12f2cc 319/495: Add support for gogetdoc, ELPA Syncer, 2021/08/07
- [nongnu] elpa/go-mode 7fec5b2 317/495: Move test Go files to testdata, ELPA Syncer, 2021/08/07