Skip to content

misc/emacs: emacs gofmt error #4475

@LukeMauldin

Description

@LukeMauldin
What steps will reproduce the problem?
If possible, include a link to a program on play.golang.org.
1. See program at http://play.golang.org/p/AGYuQbd6kd
2. I have the go-mode.el plugin from TIP loaded in .emacs.  Here is the part of my
.emacs file:
(require 'go-mode-load)
(add-hook 'before-save-hook #'gofmt-before-save)
3. When I am editing the program posted on play.golang.org, and I save the file, I get
the "Use file" error displayed in the screenshot.

What is the expected output?
I expected for gofmt to be run on my file and saved automatically.

What do you see instead?
The "Use file" error.

Which operating system are you using?
Windows 7 X64

Which version are you using?  (run 'go version')
1.0.3

Please provide any additional information below.
I am running Emacs 24.2 on Windows 7 X64.

Attachments:

  1. EmacsError.png (129915 bytes)

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions