From 9a8bd7640d9fe9fd74f4b55fd3bfd786b2e8ba5e Mon Sep 17 00:00:00 2001 From: Richard Fliam Date: Wed, 20 Feb 2019 14:52:11 -0700 Subject: [PATCH] Fix Emacs Company Mode for External Packages Apply changes in https://github.com/mdempsky/gocode/issues/79 to emacs company-go mode so auto-completion of non-local packages works. Mirrors changes in https://github.com/nsf/gocode/pull/530. This way completion works if you just checkout this repo and point emacs to this instance of go-code. --- emacs-company/company-go.el | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/emacs-company/company-go.el b/emacs-company/company-go.el index 5aeed3de..113be108 100644 --- a/emacs-company/company-go.el +++ b/emacs-company/company-go.el @@ -76,7 +76,8 @@ symbol is preceded by a \".\", ignoring `company-minimum-prefix-length'." (defun company-go--invoke-autocomplete () (let ((code-buffer (current-buffer)) (gocode-args (append company-go-gocode-args - (list "-f=csv-with-package" + (list "-source" + "-f=csv" "autocomplete" (or (buffer-file-name) "") (concat "c" (int-to-string (- (point) 1)))))))