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

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

[nongnu] elpa/go-mode f63d982 323/495: Make godoc interactive again


From: ELPA Syncer
Subject: [nongnu] elpa/go-mode f63d982 323/495: Make godoc interactive again
Date: Sat, 7 Aug 2021 09:05:40 -0400 (EDT)

branch: elpa/go-mode
commit f63d9822b72b67798f49d7cf8443a27fa05b009e
Author: kostya-sh <kostya-sh@users.noreply.github.com>
Commit: Dominik Honnef <dominik@honnef.co>

    Make godoc interactive again
    
    Fix regression added in 205672f.
    
    Closes: gh-132 [via git-merge-pr]
---
 go-mode.el | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/go-mode.el b/go-mode.el
index 929890d..bbf8a2c 100644
--- a/go-mode.el
+++ b/go-mode.el
@@ -1244,10 +1244,10 @@ you save any file, kind of defeating the point of 
autoloading."
 ;;;###autoload
 (defun godoc (query)
   "Show Go documentation for QUERY, much like M-x man."
+  (interactive (list (godoc--read-query)))
   (go--godoc query godoc-command))
 
 (defun go--godoc (query command)
-  (interactive (list (godoc--read-query)))
   (unless (string= query "")
     (set-process-sentinel
      (start-process-shell-command "godoc" (godoc--get-buffer query)



reply via email to

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