summaryrefslogtreecommitdiff
path: root/NEWS
blob: 675655b6296548ee4eb4c3bb6c84038d42d153eb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
go-mode-1.4.0 (2016/05/12)

 * Fix minor bugs in fontification.

 * Use unwind-protect in gofmt, ensuring that temporary files will be
   removed in all cases.

 * Improve go-remove-unused-imports: don't fail to remove unused
   imports because of compilation errors in other files.

 * Add new commands for jumping to various parts of function
   declarations:

    - go-goto-arguments (C-c C-f a)
    - go-goto-docstring (C-c C-f d)
    - go-goto-function (C-c C-f f)
    - go-goto-function-name (C-c C-f n)
    - go-goto-return-values (C-c C-f r)
    - go-goto-method-receiver (C-c C-f m)

   Thanks to Lowe Thiderman for contributing these commands.

 * Add new customizable variable go-packages-function, which allows
   choosing between different ways of finding installed packages.
   Currently, go-packages-native (the default) and go-packages-go-list
   are provided.

 * Automatically detect if goimports is used instead of gofmt and pass
   the -srcdir flag, enabling support for vendoring.

 * Add new customizable variable gofmt-args, a list of strings that
   will be passed to gofmt as additional arguments. Primarily this
   allows using the -s flag with gofmt.

 * Add detection of GOPATH, Godep, wgo and gb. A new non-interactive
   function go-guess-gopath will try a list of functions (the
   customizable variable go-guess-gopath-functions) to detect a
   suitable value for GOPATH. A new interactive command go-set-project
   uses the result of go-guess-gopath to actually set GOPATH. This
   interactive function could be used from inside a
   projectile-switch-project-hook, directory variables or some other
   way of invoking per-project code.

 * Add new command go-reset-gopath, which resets GOPATH to the value
   it had when Emacs started.

 * Add customizable variable godoc-command, which allows choosing
   between using godoc and go doc, and generally specifying
   alternative paths to those tools.

   It defaults to go doc, which differs from prior versions which always
   used godoc.

 * Add customizable variable godoc-use-completing-read, which allows
   turning on or off the completion of import paths in the godoc
   command. This is only really useful when using godoc instead of go
   doc, and thus defaults to off.

 * Fix parsing of test output in compilation-mode for new versions of
   Emacs. It's probably broken in older versions now.

 * Add support for electric-indent-mode and only reindent for closing
   parens, not colons, commas or equal signs.

 * Avoid warnings by the byte compiler -- Use cl-lib instead of cl,
   and utilize a macro to conditionally compile fallback code.

 * Use null-device instead of /dev/null to work better on Windows.

 * Add new customizable variable godoc-at-point-function, which allows
   choosing between strategies for finding an identifier's
   documentation.

 * Add new function godoc-and-godef, which is the default function
   used for godoc-at-point and matches the previous behaviour.

 * Add new customizable variable godoc-and-godef-command, which allows
   specifying the path to the godoc binary.

 * Add the function godoc-gogetdoc, which provides godoc-at-point
   functionality by using the third party tool gogetdoc.

 * The godoc command no longer defaults to the symbol under point. It
   rarely defaulted to a useful value. If you're interested in
   documentation for the identifier at point, use godoc-at-point
   instead.

 * Set compilation-error-screen-columns to nil in go-mode buffers. Go
   uses tabs for indentation, and go/parser-based tools emit column
   numbers in terms of characters, where a tab is one character wide.
   Emacs defaults to interpreting columns as screen columns, where a
   tab is tab-width columns wide. This breaks jumping to the right
   columns from compilation-mode

 * Use HTTPS when talking to the Go Playground. Not only is it safer,
   it is required nowadays.

go-mode-1.3.1 (2015-07-03)

 * The 1.3.0 release forgot to update the version in the package
   metadata. This version fixes that.

go-mode-1.3.0 (2015-05-03)

 * Add a new minor mode godoc-mode, used instead of view-mode when
   displaying godoc output.

go-mode-1.2.1 (2015-04-10)

  * After using godef-jump, don't temporarily mark old buffer as
    active.

go-mode-1.2.0 (2015/03/22):

 * Add a menu for go-mode.

 * Add a new variable go-play-browsw-function that controls the
   behaviour of go-play-region and go-play-buffer.

 * Fix minor bug in fontification.

 * Fix minor bug in go-remove-unused-imports that sometimes prevented
   it from removing unused imports.

go-mode-1.1.0 (2015-02-25):

 * Add a new variable godef-command, allowing customization of the
   godef command.

 * Automatically hide the gofmt error window after fixing errors.

go-mode-1.0.0 (2014-11-28):

 * First release since go-mode was removed from the Go distribution.