super-save icon indicating copy to clipboard operation
super-save copied to clipboard

org-mode capture prevents saving when emacs looses focus

Open heikkil opened this issue 4 years ago • 1 comments

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?

heikkil avatar Dec 23 '20 16:12 heikkil

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?

bbatsov avatar Apr 18 '22 20:04 bbatsov