branch: elpa/go-mode
commit f63d9822b72b67798f49d7cf8443a27fa05b009e
Author: kostya-sh <[email protected]>
Commit: Dominik Honnef <[email protected]>

    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