[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/go-mode 37b9f9c 272/495: Change handling of prefix args to
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/go-mode 37b9f9c 272/495: Change handling of prefix args to consider them booleans |
Date: |
Sat, 7 Aug 2021 09:05:30 -0400 (EDT) |
branch: elpa/go-mode
commit 37b9f9c7c97f4229d787d41ca29797b6c9e1b19e
Author: Lowe Thiderman <lowe.thiderman@gmail.com>
Commit: Dominik Honnef <dominik@honnef.co>
Change handling of prefix args to consider them booleans
This changes the usage of '(4) into just caring if it is set or not.
This carries the upside that accidental extra prefix arguments will be
handled as well, not just if a single one is given.
---
go-mode.el | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/go-mode.el b/go-mode.el
index 20bb088..4aee729 100644
--- a/go-mode.el
+++ b/go-mode.el
@@ -1617,7 +1617,7 @@ If one prefix argument is given, anonymous functions are
skipped."
;; If we are still in a comment, redo the call so that we get out of it.
(go-goto-function arg))
- ((and (looking-at "func(") (equal arg '(4)))
+ ((and (looking-at "func(") arg)
;; If we are looking at an anonymous function and a prefix argument has
;; been supplied, redo the call so that we skip the anonymous function.
(go-goto-function arg))))
@@ -1721,7 +1721,7 @@ an error is raised."
(go--in-anonymous-funcion-p))
(error "Anonymous functions cannot have method receivers"))
- (go-goto-function '(4)) ; Always skip anonymous functions
+ (go-goto-function t) ; Always skip anonymous functions
(forward-char 5)
(when (not (looking-at "("))
(save-excursion
@@ -1742,7 +1742,7 @@ an error is raised."
(go--in-anonymous-funcion-p))
(error "Anonymous functions do not have docstrings"))
- (go-goto-function '(4))
+ (go-goto-function t)
(forward-line -1)
(beginning-of-line)
@@ -1771,7 +1771,7 @@ an error is raised."
Will skip anonymous functions since they do not have names."
(save-excursion
- (go-goto-function-name '(4))
+ (go-goto-function-name t)
(symbol-name (symbol-at-point))))
(defun go--in-anonymous-funcion-p ()
- [nongnu] elpa/go-mode aaea941 242/495: bump version to 1.2.0, (continued)
- [nongnu] elpa/go-mode aaea941 242/495: bump version to 1.2.0, ELPA Syncer, 2021/08/07
- [nongnu] elpa/go-mode bf4a097 243/495: add Iwasaki Yudai to AUTHORS, ELPA Syncer, 2021/08/07
- [nongnu] elpa/go-mode 498452d 244/495: Don't set old buffer as active after godef--find-file-line-column, ELPA Syncer, 2021/08/07
- [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 <=
- [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, 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