NEWS (4871B)
1 go-mode-1.4.0 (2016/05/12) 2 3 * Fix minor bugs in fontification. 4 5 * Use unwind-protect in gofmt, ensuring that temporary files will be 6 removed in all cases. 7 8 * Improve go-remove-unused-imports: don't fail to remove unused 9 imports because of compilation errors in other files. 10 11 * Add new commands for jumping to various parts of function 12 declarations: 13 14 - go-goto-arguments (C-c C-f a) 15 - go-goto-docstring (C-c C-f d) 16 - go-goto-function (C-c C-f f) 17 - go-goto-function-name (C-c C-f n) 18 - go-goto-return-values (C-c C-f r) 19 - go-goto-method-receiver (C-c C-f m) 20 21 Thanks to Lowe Thiderman for contributing these commands. 22 23 * Add new customizable variable go-packages-function, which allows 24 choosing between different ways of finding installed packages. 25 Currently, go-packages-native (the default) and go-packages-go-list 26 are provided. 27 28 * Automatically detect if goimports is used instead of gofmt and pass 29 the -srcdir flag, enabling support for vendoring. 30 31 * Add new customizable variable gofmt-args, a list of strings that 32 will be passed to gofmt as additional arguments. Primarily this 33 allows using the -s flag with gofmt. 34 35 * Add detection of GOPATH, Godep, wgo and gb. A new non-interactive 36 function go-guess-gopath will try a list of functions (the 37 customizable variable go-guess-gopath-functions) to detect a 38 suitable value for GOPATH. A new interactive command go-set-project 39 uses the result of go-guess-gopath to actually set GOPATH. This 40 interactive function could be used from inside a 41 projectile-switch-project-hook, directory variables or some other 42 way of invoking per-project code. 43 44 * Add new command go-reset-gopath, which resets GOPATH to the value 45 it had when Emacs started. 46 47 * Add customizable variable godoc-command, which allows choosing 48 between using godoc and go doc, and generally specifying 49 alternative paths to those tools. 50 51 It defaults to go doc, which differs from prior versions which always 52 used godoc. 53 54 * Add customizable variable godoc-use-completing-read, which allows 55 turning on or off the completion of import paths in the godoc 56 command. This is only really useful when using godoc instead of go 57 doc, and thus defaults to off. 58 59 * Fix parsing of test output in compilation-mode for new versions of 60 Emacs. It's probably broken in older versions now. 61 62 * Add support for electric-indent-mode and only reindent for closing 63 parens, not colons, commas or equal signs. 64 65 * Avoid warnings by the byte compiler -- Use cl-lib instead of cl, 66 and utilize a macro to conditionally compile fallback code. 67 68 * Use null-device instead of /dev/null to work better on Windows. 69 70 * Add new customizable variable godoc-at-point-function, which allows 71 choosing between strategies for finding an identifier's 72 documentation. 73 74 * Add new function godoc-and-godef, which is the default function 75 used for godoc-at-point and matches the previous behaviour. 76 77 * Add new customizable variable godoc-and-godef-command, which allows 78 specifying the path to the godoc binary. 79 80 * Add the function godoc-gogetdoc, which provides godoc-at-point 81 functionality by using the third party tool gogetdoc. 82 83 * The godoc command no longer defaults to the symbol under point. It 84 rarely defaulted to a useful value. If you're interested in 85 documentation for the identifier at point, use godoc-at-point 86 instead. 87 88 * Set compilation-error-screen-columns to nil in go-mode buffers. Go 89 uses tabs for indentation, and go/parser-based tools emit column 90 numbers in terms of characters, where a tab is one character wide. 91 Emacs defaults to interpreting columns as screen columns, where a 92 tab is tab-width columns wide. This breaks jumping to the right 93 columns from compilation-mode 94 95 * Use HTTPS when talking to the Go Playground. Not only is it safer, 96 it is required nowadays. 97 98 go-mode-1.3.1 (2015-07-03) 99 100 * The 1.3.0 release forgot to update the version in the package 101 metadata. This version fixes that. 102 103 go-mode-1.3.0 (2015-05-03) 104 105 * Add a new minor mode godoc-mode, used instead of view-mode when 106 displaying godoc output. 107 108 go-mode-1.2.1 (2015-04-10) 109 110 * After using godef-jump, don't temporarily mark old buffer as 111 active. 112 113 go-mode-1.2.0 (2015/03/22): 114 115 * Add a menu for go-mode. 116 117 * Add a new variable go-play-browsw-function that controls the 118 behaviour of go-play-region and go-play-buffer. 119 120 * Fix minor bug in fontification. 121 122 * Fix minor bug in go-remove-unused-imports that sometimes prevented 123 it from removing unused imports. 124 125 go-mode-1.1.0 (2015-02-25): 126 127 * Add a new variable godef-command, allowing customization of the 128 godef command. 129 130 * Automatically hide the gofmt error window after fixing errors. 131 132 go-mode-1.0.0 (2014-11-28): 133 134 * First release since go-mode was removed from the Go distribution.