Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

4
  • Ok, that cleans up the look. I may be missing something, but how does one execute that termination of the graphical session? The easiest thing I could think of would be a custom OS signal handler. Commented Feb 11, 2015 at 10:13
  • 2
    If you have an active client frame, you can issue kill-emacs directly. If you have no current clients, you can run emacsclient -e '(kill-emacs)'. If you just want Emacs to shut down more gracefully when killed by a signal, you'll probably need to M-x report-emacs-bug (after checking to see whether it's already been logged). Commented Feb 11, 2015 at 23:32
  • Sure. The thing is that I do not want to bother and manually tell every program to shut down gracefully. Desktop session managers do tell programs the session is about to terminate. I want emacs to automatically take action at that time. Commented Feb 12, 2015 at 8:19
  • Well check the bug reports, report a new one if necessary, and once you have more information, update the question, or post an answer. Commented Feb 12, 2015 at 10:26