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

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

[nongnu] elpa/go-mode 731b93c 152/495: godef: instead of printing just t


From: ELPA Syncer
Subject: [nongnu] elpa/go-mode 731b93c 152/495: godef: instead of printing just the first line of a definition, print all
Date: Sat, 7 Aug 2021 09:05:02 -0400 (EDT)

branch: elpa/go-mode
commit 731b93caff3070553cc648e7aed3e6157ff3d7b4
Author: Dominik Honnef <dominikh@fork-bomb.org>
Commit: Dominik Honnef <dominikh@fork-bomb.org>

    godef: instead of printing just the first line of a definition, print all
---
 go-mode.el | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/go-mode.el b/go-mode.el
index 8d10321..23dc94c 100644
--- a/go-mode.el
+++ b/go-mode.el
@@ -907,10 +907,10 @@ description at POINT."
   "Describe the expression at POINT."
   (interactive "d")
   (condition-case nil
-      (let ((description (nth 1 (godef--call point))))
-        (if (string= "" description)
+      (let ((description (cdr (butlast (godef--call point) 1))))
+        (if (not description)
             (message "No description found for expression at point")
-          (message "%s" description)))
+          (message "%s" (mapconcat 'identity description "\n"))))
     (file-error (message "Could not run godef binary"))))
 
 (defun godef-jump (point &optional other-window)



reply via email to

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