Emacs saving automatically (*not* auto-save)

1

When I edit Haskell files, Emacs saves the file whenever I stop typing for more than a second. This is not auto-save mode, as it's overwriting the original file. Also, I disabled auto-save mode, and it still happens. It doesn't happen if I edit Java files or plain text files. How can I figure out what's happening, or better yet, stop it?

Adam Crume

Posted 2013-01-20T03:35:50.533

Reputation: 243

You should take a look at haskell-mode.el. Try to search save word there -- if You know elisp. Otherwise -- find the email of the author (in the top of haskell-mode.el) -- and drop him an email about it. – Adobe – 2013-03-28T05:19:58.583

Answers

0

A couple of things you can try:

  • Try M-x debug-on-entry save-buffer (or save-current-buffer etc.

  • M-: (add-hook 'before-save-hook '(lambda () (debug)))

The debugger should open whenever Emacs tries to save a buffer, so you can see what function (farther down the stack is asking for the buffer to be saved.

Drew

Posted 2013-01-20T03:35:50.533

Reputation: 1 898

For unrelated reasons, I reinstalled my OS, and haskell-mode is working now. Thanks for the tip, though. – Adam Crume – 2013-09-02T02:28:23.140