Resume emacs on reboot

I'd like to use Lion's resuming applications feature for emacs. But if I keep

emacs open and try to shutdown the computer, it asks to exit emacs first. Is

there anyway to avoid shutting down emacs every time I have to shutdown the

computer? I'm using a MBP 13" and I don't like to resume, rather shutdown

completely when I'm not using it.


I'm using the Terminal program that comes with Lion and it always stays open

when I shutdown the computer without any issues.


Thanks.

MacBook Pro, Mac OS X (10.7.2)

Posted on Nov 18, 2011 6:23 PM

Reply
1 reply

Nov 19, 2011 7:45 PM in response to chrishenders

I don't see any easy way to do this.


You see, the Mac OS's shutdown/restore process only keeps a list of the applications that were running and restores them after a reboot. In the case of Terminal.app, it knows Terminal was running, but not necessarily what each Terminal window/shell was doing.


In most cases, it's the application that keeps track of it's own state and deals with reopening documents/windows, etc. after a reboot and Terminal.app doesn't do that here. It would require hooks into emacs (and any other shell application) to save state across a reboot, and you don't want that kind of thing to work on a piecemeal basis - if it worked for emacs then users would expect it to work for vi, nano, wireshark, any any other shell command you care to mention.

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

Resume emacs on reboot

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.