Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Warn when quitting emacs without writing changes in outorg buffer #5

Open
langston-barrett opened this issue Nov 8, 2018 · 1 comment

Comments

@langston-barrett
Copy link

If I'm editing a buffer with outorg, it might be the case that I've written the *outorg-edit-buffer* to disk (presumably in some temporary directory), but not saved the changes back to the original file. If I attempt to quit Emacs, I won't receive any warning (after all - all changes to buffers have been written to files).

In this situation, I likely want to save my changes back to the original file. Is there a way outorg could prevent Emacs from quitting and prompt the user to save, just like vanilla Emacs does when you have pending changes to a buffer?

@alphapapa
Copy link
Owner

This could definitely be done, and it would probably be a good idea. It probably wouldn't require too much work.

I doubt that I'll get around to the idea myself, at least not anytime soon. This package (these packages, really) is (are) mostly in maintenance mode other than the amazing work Thibault has done on Outshine recently. In the long term, they should probably be refactored and/or merged. But lacking that, this feature is probably worthwhile and simple enough to add in its current form.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants