emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[nongnu] elpa/go-mode 093a492 274/495: Rename go--in-function-p to go--b


From: ELPA Syncer
Subject: [nongnu] elpa/go-mode 093a492 274/495: Rename go--in-function-p to go--below-anonymous-function
Date: Sat, 7 Aug 2021 09:05:30 -0400 (EDT)

branch: elpa/go-mode
commit 093a49291f7afec3651b88ca66c886803a800bbe
Author: Lowe Thiderman <lowe.thiderman@gmail.com>
Commit: Dominik Honnef <dominik@honnef.co>

    Rename go--in-function-p to go--below-anonymous-function
---
 go-mode.el | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/go-mode.el b/go-mode.el
index b4cf1fa..65fe48e 100644
--- a/go-mode.el
+++ b/go-mode.el
@@ -1609,7 +1609,7 @@ If one prefix argument is given, anonymous functions are 
skipped."
       ;; If we have landed at an anonymous function, it is possible that we
       ;; were not inside it but below it. If we were not inside it, we should
       ;; go to the containing function.
-      (while (go--in-function-p p)
+      (while (go--below-anonymous-function p)
         (go-goto-function arg)))))
 
   (cond
@@ -1622,8 +1622,8 @@ If one prefix argument is given, anonymous functions are 
skipped."
     ;; been supplied, redo the call so that we skip the anonymous function.
     (go-goto-function arg))))
 
-(defun go--in-function-p (compare-point)
-  "Return t if `compare-point' is inside the function that point is currently 
on.
+(defun go--below-anonymous-function (compare-point)
+  "Return t if `compare-point' is below the function that point is currently 
on.
 This should only be called as a helper when point is looking at \"func\".
 
 Returns nil in all other cases."



reply via email to

[Prev in Thread] Current Thread [Next in Thread]