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?
Asked
Active
Viewed 339 times
1 Answers
1
A couple of things you can try:
Try
M-x debug-on-entry save-buffer(orsave-current-bufferetc.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
- 2,144