Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 4 additions & 3 deletions go-projectile.el
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
;; URL: https://github.com/dougm/go-projectile
;; Keywords: project, convenience
;; Version: 0.2.1
;; Package-Requires: ((projectile "0.10.0") (go-mode "0") (go-eldoc "0.16") (go-rename "0") (go-guru "0") (dash "2.17.0"))
;; Package-Requires: ((cl-lib "0.5") (projectile "0.10.0") (go-mode "0") (go-eldoc "0.16") (go-rename "0") (go-guru "0") (dash "2.17.0"))

;; This file is NOT part of GNU Emacs.

Expand Down Expand Up @@ -36,6 +36,7 @@

;;; Code:

(require 'cl-lib)
(require 'projectile)
(require 'go-eldoc)
(require 'go-guru)
Expand Down Expand Up @@ -208,9 +209,9 @@ When `projectile-project-type' set to `go', GOPATH is checked, calling `go-proje
(frame (backtrace-frame index))
(found 0))
(while (not (equal found 2))
(setq frame (backtrace-frame (incf index)))
(setq frame (backtrace-frame (cl-incf index)))
(when (equal t (first frame))
(incf found)))
(cl-incf found)))
(let ((caller (second frame)))
(if (and (eq caller 'select-window)
(not (go-projectile-directory-gopath-p)))
Expand Down