Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(882)

Issue 42040043: code review 42040043: go.tools/oracle: improvements to Emacs integration.

Can't Edit
Can't Publish+Mail
Start Review
Created:
10 years, 4 months ago by adonovan
Modified:
9 years, 4 months ago
Reviewers:
Dominik Honnef
CC:
Dominik Honnef, crawshaw1, golang-codereviews
Visibility:
Public.

Description

go.tools/oracle: improvements to Emacs integration. Overview: - Eliminated go-oracle minor mode (another minor hurdle to adoption). - Rebound some keys. - Added var to toggle analysis of "reflect" package in PTA. - "definition" command jumps directly to definition; oracle buffer is not shown. - Added "expand-selection" command: selects enclosing AST node. - Factored out numerous utils: go-oracle--{pos-flag,env,run,nop,jump-to,check-saved,json-query,query} - Added menu. The menu can be accessed via the menu-bar (if enabled) or via a popup menu (C-down-mouse-3). In menu-bar-mode, we additionally run a hook during redisplay that causes menu items to be enabled/greyed out as appropriate to the selection. It also rebuilds the expand-selection submenu, which displays the enclosing AST and the current package name. Emacs doesn't provide the hook we really need to run some code before the menu is displayed. We're forced to choose too often (every redisplay, iff menu-bar-mode) or too infrequently (not at all). Sigh.

Patch Set 1 #

Patch Set 2 : diff -r 4e56dc65c681 https://code.google.com/p/go.tools #

Patch Set 3 : diff -r 4e56dc65c681 https://code.google.com/p/go.tools #

Patch Set 4 : diff -r e22a9223d6a9 https://code.google.com/p/go.tools #

Patch Set 5 : diff -r e22a9223d6a9 https://code.google.com/p/go.tools #

Patch Set 6 : diff -r e22a9223d6a9 https://code.google.com/p/go.tools #

Total comments: 23

Patch Set 7 : diff -r aca7c06737e1 https://code.google.com/p/go.tools #

Patch Set 8 : diff -r aca7c06737e1 https://code.google.com/p/go.tools #

Unified diffs Side-by-side diffs Delta from patch set Stats (+345 lines, -84 lines) Patch
M cmd/oracle/oracle.el View 1 2 3 4 5 6 5 chunks +342 lines, -73 lines 0 comments Download
M oracle/TODO View 1 2 3 4 5 6 2 chunks +3 lines, -11 lines 0 comments Download

Messages

Total messages: 18
adonovan
Hello dominik.honnef@gmail.com (cc: crawshaw@google.com, golang-dev@googlegroups.com), I'd like you to review this change to https://code.google.com/p/go.tools
10 years, 4 months ago (2013-12-13 21:43:30 UTC) #1
Dominik Honnef
LGTM with a few comments (and one actual issue) https://codereview.appspot.com/42040043/diff/90001/cmd/oracle/oracle.el File cmd/oracle/oracle.el (right): https://codereview.appspot.com/42040043/diff/90001/cmd/oracle/oracle.el#newcode70 cmd/oracle/oracle.el:70: ...
10 years, 4 months ago (2013-12-14 04:29:06 UTC) #2
adonovan
https://codereview.appspot.com/42040043/diff/90001/cmd/oracle/oracle.el File cmd/oracle/oracle.el (right): https://codereview.appspot.com/42040043/diff/90001/cmd/oracle/oracle.el#newcode48 cmd/oracle/oracle.el:48: (define-key go-mode-map (kbd "C-c C-o t") #'go-oracle-describe) ; t ...
10 years, 4 months ago (2013-12-16 17:52:53 UTC) #3
Dominik Honnef
On 2013/12/16 17:52:53, adonovan wrote: > https://codereview.appspot.com/42040043/diff/90001/cmd/oracle/oracle.el > File cmd/oracle/oracle.el (right): > > https://codereview.appspot.com/42040043/diff/90001/cmd/oracle/oracle.el#newcode48 > ...
10 years, 4 months ago (2013-12-16 18:06:45 UTC) #4
adonovan
https://codereview.appspot.com/42040043/diff/90001/cmd/oracle/oracle.el File cmd/oracle/oracle.el (right): https://codereview.appspot.com/42040043/diff/90001/cmd/oracle/oracle.el#newcode48 cmd/oracle/oracle.el:48: (define-key go-mode-map (kbd "C-c C-o t") #'go-oracle-describe) ; t ...
10 years, 4 months ago (2013-12-17 19:15:50 UTC) #5
adonovan
Hello dominik.honnef@gmail.com (cc: crawshaw@google.com, golang-dev@googlegroups.com), Please take another look.
10 years, 4 months ago (2013-12-17 19:16:12 UTC) #6
Dominik Honnef
Two things: 1) for some reason, even with menu-bar-mode disabled, the context menu seems to ...
10 years, 4 months ago (2013-12-17 19:36:24 UTC) #7
adonovan
On 2013/12/17 19:36:24, Dominik Honnef wrote: > Two things: > > 1) for some reason, ...
10 years, 4 months ago (2013-12-17 20:06:20 UTC) #8
Dominik Honnef
On 2013/12/17 20:06:20, adonovan wrote: > On 2013/12/17 19:36:24, Dominik Honnef wrote: > > Two ...
10 years, 4 months ago (2013-12-17 20:16:45 UTC) #9
adonovan
On 17 December 2013 15:16, <dominik.honnef@gmail.com> wrote: > What > remains is the problem that ...
10 years, 4 months ago (2013-12-17 20:42:07 UTC) #10
Dominik Honnef
LGTM on the basis that this seems to be a bug in the oracle itself, ...
10 years, 4 months ago (2013-12-17 20:59:39 UTC) #11
adonovan
On 17 December 2013 15:59, <dominik.honnef@gmail.com> wrote: > LGTM on the basis that this seems ...
10 years, 4 months ago (2013-12-18 03:32:36 UTC) #12
gobot
Replacing golang-dev with golang-codereviews.
10 years, 4 months ago (2013-12-20 16:26:13 UTC) #13
gobot
Replacing golang-dev with golang-codereviews.
10 years, 4 months ago (2013-12-20 16:26:17 UTC) #14
gobot
Replacing golang-dev with golang-codereviews.
10 years, 4 months ago (2013-12-20 16:26:18 UTC) #15
Dominik Honnef
What happened to this?
9 years, 10 months ago (2014-06-13 09:10:59 UTC) #16
adonovan
It got put on hold because I discovered some bugs in the way Emacs menus ...
9 years, 10 months ago (2014-06-17 17:19:25 UTC) #17
gobot
9 years, 4 months ago (2014-12-19 05:17:49 UTC) #18
R=close

To the author of this CL:

The Go project has moved to Gerrit Code Review.

If this CL should be continued, please see the latest version of
https://golang.org/doc/contribute.html for instructions on
how to set up Git and the Go project's Gerrit codereview plugin,
and then create a new change with your current code.

If there has been discussion on this CL, please give a link to it
(golang.org/cl/42040043 is best) in the description in your
new CL.

Thanks very much.
Sign in to reply to this message.

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b