1

When I open files that default to csharp-mode, they always start modified. This is only occurring for csharp-mode.

save-buffers-kill-emacs with the d option (view changes in this buffer) shows

Diff finished (no differences).

How can I stop .cs files from being modified when I open them? Why are they being modified?

EDIT:

  • files are not modified if reloaded using revert-buffer.
  • files are modified after running emacs -Q, package-initialize, and then opening the file (which defaults to csharp-mode)
  • files are modified after running emacs -Q, package-initialize, opening a C# file with a fake extension (file is not modified at this point), csharp-mode (file is now modified)

Filed a bug report with csharp-mode.

4
  • If you revert the buffer after you open file does the buffer still show it was modified?
    – Melioratus
    Commented Sep 9, 2016 at 4:33
  • 1
    Can you reproduce this with emacs -Q, M-x package-initialize and M-x csharp-mode in a suitable buffer? If yes, please open a bug report.
    – wasamasa
    Commented Sep 9, 2016 at 6:38
  • @wasamasa See my edits. I will be filing a bug report. Commented Sep 9, 2016 at 13:42
  • @Melioratus See my edits. Commented Sep 9, 2016 at 13:42

1 Answer 1

1

Issue with csharp-mode.

Fixed in melpa version 20160909.801.

See the bug report here.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.