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

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

[nongnu] elpa/go-mode d1ebde8 271/495: Rename go--get-function-name to g


From: ELPA Syncer
Subject: [nongnu] elpa/go-mode d1ebde8 271/495: Rename go--get-function-name to go--function-name
Date: Sat, 7 Aug 2021 09:05:29 -0400 (EDT)

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

    Rename go--get-function-name to go--function-name
---
 go-mode.el | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/go-mode.el b/go-mode.el
index e22bea9..20bb088 100644
--- a/go-mode.el
+++ b/go-mode.el
@@ -1755,7 +1755,7 @@ an error is raised."
    ;; If we are looking at an empty comment, add a single space in front of it.
    ((looking-at "^//$")
     (forward-char 2)
-    (insert (format " %s " (go--get-function-name))))
+    (insert (format " %s " (go--function-name))))
    ;; If we are not looking at the function signature, we are looking at a 
docstring.
    ;; Move to the beginning of the first word of it.
    ((not (looking-at "^func"))
@@ -1764,9 +1764,9 @@ an error is raised."
    (t
     (forward-line -1)
     (newline)
-    (insert (format "// %s " (go--get-function-name))))))
+    (insert (format "// %s " (go--function-name))))))
 
-(defun go--get-function-name ()
+(defun go--function-name ()
   "Return the current function name as a string.
 
 Will skip anonymous functions since they do not have names."



reply via email to

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