[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/go-mode 9fde5fb 189/495: godef-jump: support jumping to pa
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/go-mode 9fde5fb 189/495: godef-jump: support jumping to package directories |
Date: |
Sat, 7 Aug 2021 09:05:10 -0400 (EDT) |
branch: elpa/go-mode
commit 9fde5fbcf4c40567cf9e807863be0809f928ecc8
Author: Dominik Honnef <dominikh@fork-bomb.org>
Commit: Dominik Honnef <dominikh@fork-bomb.org>
godef-jump: support jumping to package directories
the newest version of godef will emit a package's source directory if
point is on an import statement
---
go-mode.el | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/go-mode.el b/go-mode.el
index 54b8ef3..4b4829d 100644
--- a/go-mode.el
+++ b/go-mode.el
@@ -958,7 +958,8 @@ will be commented, otherwise they will be removed
completely."
"Given a file name in the format of `filename:line:column',
visit FILENAME and go to line LINE and column COLUMN."
(if (not (string-match "\\(.+\\):\\([0-9]+\\):\\([0-9]+\\)" specifier))
- (error "Unexpected godef output: %s" specifier)
+ ;; We've only been given a directory name
+ (funcall (if other-window 'find-file-other-window 'find-file) specifier)
(let ((filename (match-string 1 specifier))
(line (string-to-number (match-string 2 specifier)))
(column (string-to-number (match-string 3 specifier))))
@@ -1016,6 +1017,8 @@ description at POINT."
(message "%s" file))
((go--string-prefix-p "godef: no declaration found for " file)
(message "%s" file))
+ ((go--string-prefix-p "error finding import path for " file)
+ (message "%s" file))
(t
(push-mark)
(ring-insert find-tag-marker-ring (point-marker))
- [nongnu] elpa/go-mode 38f2465 164/495: display a helpful prompt in go-coverage, (continued)
- [nongnu] elpa/go-mode 38f2465 164/495: display a helpful prompt in go-coverage, ELPA Syncer, 2021/08/07
- [nongnu] elpa/go-mode 9db834a 178/495: changes from CL, ELPA Syncer, 2021/08/07
- [nongnu] elpa/go-mode f1c266d 172/495: enable godef to work in coverage buffers, ELPA Syncer, 2021/08/07
- [nongnu] elpa/go-mode 4b1c93f 173/495: use error instead of message in godef--call, ELPA Syncer, 2021/08/07
- [nongnu] elpa/go-mode 68e9626 177/495: fully implement prog-mode for older emacsen, ELPA Syncer, 2021/08/07
- [nongnu] elpa/go-mode 7694963 181/495: detect stale coverage reports, ELPA Syncer, 2021/08/07
- [nongnu] elpa/go-mode 520f070 182/495: allow users to customize path of 'go' tool., ELPA Syncer, 2021/08/07
- [nongnu] elpa/go-mode 303ba8c 180/495: reformat code, ELPA Syncer, 2021/08/07
- [nongnu] elpa/go-mode ab6853d 183/495: use (buffer-base-buffer) instead of own local variable, ELPA Syncer, 2021/08/07
- [nongnu] elpa/go-mode de4e59a 194/495: require at least one space after "type", ELPA Syncer, 2021/08/07
- [nongnu] elpa/go-mode 9fde5fb 189/495: godef-jump: support jumping to package directories,
ELPA Syncer <=
- [nongnu] elpa/go-mode 7878794 187/495: send the correct content-length to the playground, ELPA Syncer, 2021/08/07
- [nongnu] elpa/go-mode 68588e1 196/495: Support ff-find-other-file, ELPA Syncer, 2021/08/07
- [nongnu] elpa/go-mode a480b9a 205/495: more compact implementation of go--delete-whole-line, ELPA Syncer, 2021/08/07
- [nongnu] elpa/go-mode 9d0732c 201/495: refactor godef error handling, ELPA Syncer, 2021/08/07
- [nongnu] elpa/go-mode f664cff 197/495: correctly fontify methods when go-fontify-function-calls is nil, ELPA Syncer, 2021/08/07
- [nongnu] elpa/go-mode 10281b7 202/495: add godoc-at-point, ELPA Syncer, 2021/08/07
- [nongnu] elpa/go-mode 6ed8eec 206/495: style adjustments as per CL 106010043, ELPA Syncer, 2021/08/07
- [nongnu] elpa/go-mode 0e030ef 207/495: style adjustment, ELPA Syncer, 2021/08/07
- [nongnu] elpa/go-mode b626ee9 213/495: readd link to gocode in README, ELPA Syncer, 2021/08/07
- [nongnu] elpa/go-mode 541e559 212/495: when parsing GOPATH, split on the platform-specific path separator, ELPA Syncer, 2021/08/07