bbatsov / super-save

Save Emacs buffers when they lose focus
313 stars 20 forks source link

org-mode capture prevents saving when emacs looses focus #36

Open heikkil opened 3 years ago

heikkil commented 3 years ago

I found this problem out at the worst possible way: writing a long text over a period of time and having emacs to crash when exiting the capture frame with C-c C-c. While writing, I kept changing focus between a PDF and the capture buffer. The file was never saved.

I've just tested it and the buffer the org capture is adding text to never gets saved unless I explicitly move focus to the main buffer.

The capture template I am using should not have anything special in it: ("n" "note" entry (file+olp+datetree "~/Dropbox/org/reference.org") "* %?\n :PROPERTIES:\n :CREATED: %U\n :END: \n%i")

Is there a way to get super-save respond to the org-mode capture buffer losing focus?

bbatsov commented 2 years ago

Hmm, I'm really puzzled how what you describe could be possible and not trigger the focus-out hook. How do you switch focus between those buffers normally?