Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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?

share|improve this question
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 Mar 28 '13 at 5:19
up vote 0 down vote accepted

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.

share|improve this answer
For unrelated reasons, I reinstalled my OS, and haskell-mode is working now. Thanks for the tip, though. – Adam Crume Sep 2 '13 at 2:28

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

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