{"action":"closed","issue":{"url":"https://api.github.com/repos/dominikh/go-mode.el/issues/106","labels_url":"https://api.github.com/repos/dominikh/go-mode.el/issues/106/labels{/name}","comments_url":"https://api.github.com/repos/dominikh/go-mode.el/issues/106/comments","events_url":"https://api.github.com/repos/dominikh/go-mode.el/issues/106/events","html_url":"https://github.com/dominikh/go-mode.el/issues/106","id":115703942,"number":106,"title":"error in before-save-hook?","user":{"login":"stevenbenjamin","id":1538740,"avatar_url":"https://avatars.githubusercontent.com/u/1538740?v=3","gravatar_id":"","url":"https://api.github.com/users/stevenbenjamin","html_url":"https://github.com/stevenbenjamin","followers_url":"https://api.github.com/users/stevenbenjamin/followers","following_url":"https://api.github.com/users/stevenbenjamin/following{/other_user}","gists_url":"https://api.github.com/users/stevenbenjamin/gists{/gist_id}","starred_url":"https://api.github.com/users/stevenbenjamin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/stevenbenjamin/subscriptions","organizations_url":"https://api.github.com/users/stevenbenjamin/orgs","repos_url":"https://api.github.com/users/stevenbenjamin/repos","events_url":"https://api.github.com/users/stevenbenjamin/events{/privacy}","received_events_url":"https://api.github.com/users/stevenbenjamin/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-11-08T01:37:02Z","updated_at":"2015-11-08T02:02:28Z","closed_at":"2015-11-08T02:02:28Z","body":"Not sure if this is a bug in go-mode or something in my configuration. I suspect my configuration only because I don't see any instances of this reported. gofmt on the save hook was working on a previous version. \r\n\r\nRunning into the following on save:\r\n\r\nError: (wrong-number-of-arguments #[(arg) \"\\212p\\306\\211\u0018\u0019\u001A\\307\\303!\\203\u0012\u0000\u000B\u0011\\310 \\210\\311\\306\\312\\\"\\210\\313 \\203#\u0000\\314\\315!\\210\\202X\u0000\\316 \\211\u0010\\306\u001C\\211\u001D\\203Q\u0000\r\n@\u0014\\317\f!\\210\\320 \\210\u000E\u0017\\203G\u0000\\321\\322 \\323 \\\"\\210\\202J\u0000\\324 \\210\r\nA\\211\u0015\\204.\u0000*\\314\\325\bG\\\"\\210\t\\205^\u0000\\326 ,\\207\" [lines flymake-state cur-buffer flymake-mode import --dolist-tail-- nil boundp flymake-mode-off save-some-buffers #[nil \"\bp\\232\\207\" [cur-buffer] 2] buffer-modified-p message \"Cannot operate on unsaved buffer\" go-unused-imports-lines go--goto-line beginning-of-line comment-region line-beginning-position line-end-position go--delete-whole-line \"Removed %d imports\" flymake-mode-on arg] 4 (\"/Users/me/Library/Preferences/Aquamacs Emacs/Packages/elpa/go-mode-20150817.2318/go-mode.elc\" . 43046) \"P\"] 0)\r\n\r\n This is configured in .emacs with :\r\n\r\n(add-hook 'before-save-hook 'gofmt-before-save)\r\n(add-hook 'before-save-hook 'go-remove-unused-imports)"}}