From 18d228d914d06f724a734a1601148edc7c245679 Mon Sep 17 00:00:00 2001 From: Katherine Cox-Buday Date: Tue, 25 Sep 2018 14:50:51 -0500 Subject: [PATCH] [company-go]: Passes a `-source` flag to gocode by default I also noticed that the forked gocode does not support `csv-with-package`, and so I changed this at the same time. I am increasingly unsure if this change should be merged, or if the version in MELPA should be repointed to the forked company-go. Fixes #529 --- 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 a4bf1790..5895a034 100644 --- a/emacs-company/company-go.el +++ b/emacs-company/company-go.el @@ -71,7 +71,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)))))))