[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/go-mode f44854b 278/495: More idiomatic docstrings
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/go-mode f44854b 278/495: More idiomatic docstrings |
Date: |
Sat, 7 Aug 2021 09:05:31 -0400 (EDT) |
branch: elpa/go-mode
commit f44854b08178583aee4dd4b81a0c93d47b46d5ca
Author: Dominik Honnef <dominik@honnef.co>
Commit: Dominik Honnef <dominik@honnef.co>
More idiomatic docstrings
---
go-mode.el | 20 ++++++++++----------
1 file changed, 10 insertions(+), 10 deletions(-)
diff --git a/go-mode.el b/go-mode.el
index 81426b2..b44273a 100644
--- a/go-mode.el
+++ b/go-mode.el
@@ -1662,7 +1662,7 @@ If ARG is non-nil, anonymous functions are ignored."
If the function is a test, place point after 'Test'.
If the function is anonymous, place point on the 'func' keyword.
-If one prefix argument is given, anonymous functions are skipped."
+If ARG is non-nil, anonymous functions are skipped."
(interactive "P")
(when (not (looking-at "\\<func\\>"))
(go-goto-function arg))
@@ -1682,7 +1682,7 @@ If one prefix argument is given, anonymous functions are
skipped."
(defun go-goto-arguments (&optional arg)
"Go to the arguments of the current function.
-If one prefix argument is given, anonymous functions are skipped."
+If ARG is non-nil, anonymous functions are skipped."
(interactive "P")
(go-goto-function-name arg)
(forward-word 1)
@@ -1701,7 +1701,7 @@ If one prefix argument is given, anonymous functions are
skipped."
If there are multiple ones contained in a parenthesis, enter the parenthesis.
If there is none, make space for one to be added.
-If one prefix argument is given, anonymous functions are skipped."
+If ARG is non-nil, anonymous functions are skipped."
(interactive "P")
(go--goto-return-values arg)
@@ -1721,7 +1721,7 @@ If there is none, add parenthesis to add one.
Anonymous functions cannot have method receivers, so when this is called
interactively anonymous functions will be skipped. If called programmatically,
-an error is raised."
+an error is raised unless ARG is non-nil."
(interactive "P")
(when (and (not (called-interactively-p 'interactive))
@@ -1743,7 +1743,7 @@ If there is none, add one beginning with the name of the
current function.
Anonymous functions do not have docstrings, so when this is called
interactively anonymous functions will be skipped. If called programmatically,
-an error is raised."
+an error is raised unless ARG is non-nil."
(interactive "P")
(when (and (not (called-interactively-p 'interactive))
@@ -1776,12 +1776,12 @@ an error is raised."
(insert (format "// %s " (go--function-name t))))))
(defun go--function-name (&optional arg)
- "Return the current function name as a string.
+ "Return the name of the surrounding function.
-If `arg' is non-nil anonymous functions will be ignored and the
-name returned will be of the top-level function.
-
-Returns nil otherwise."
+If ARG is non-nil, anonymous functions will be ignored and the
+name returned will be that of the top-level function. If ARG is
+nil and the surrounding function is anonymous, nil will be
+returned."
(when (or (not (go--in-anonymous-funcion-p))
arg)
(save-excursion
- [nongnu] elpa/go-mode 7041a20 245/495: Bump version to 1.2.1, (continued)
- [nongnu] elpa/go-mode 7041a20 245/495: Bump version to 1.2.1, ELPA Syncer, 2021/08/07
- [nongnu] elpa/go-mode bbaba91 246/495: Add godoc-mode, ELPA Syncer, 2021/08/07
- [nongnu] elpa/go-mode 26493e3 264/495: Fix bug in go-goto-function if point is on a non-docstring, ELPA Syncer, 2021/08/07
- [nongnu] elpa/go-mode fa29aea 265/495: go-goto-method-receiver: handle anonymous functions, ELPA Syncer, 2021/08/07
- [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 <=
- [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, 2021/08/07
- [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