bug-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

desktop.el: autosave?


From: Reuben Thomas
Subject: desktop.el: autosave?
Date: Fri, 30 Nov 2007 14:08:07 +0000 (GMT)
User-agent: Alpine 0.99999 (DEB 796 2007-11-08)

desktop.el is great; I've used it since before it became part of Emacs.

However, I sometimes lose my Emacs session for various reasons (hardly ever because of Emacs itself, usually for some stupid reason like updating a kernel, and then suspending instead of rebooting). When I come back, I get my old Emacs session. Of course, the files I'm editing all have auto-saved copies, if I need them. It would be nice if desktop mode could similarly write a desktop save file from time to time during the editing session so that if like me, you leave Emacs running all the time, you don't risk going back to a collection of files days or weeks out of date should you lose your Emacs session.

Since desktop already does things when Emacs is idle, it seems to me (I admit I know nothing about this area of programming Emacs, I've only dabbled in elisp to the extent I need to to customize Emacs) that it should be fairly simple to add the ability to save out a new desktop save file from time to time when Emacs is idle. I imagine the period would be customizable, but every half hour or so would seem to be the right order of default.

--
http://rrt.sc3d.org/ | The Next Station Is Oval (Anon)




reply via email to

[Prev in Thread] Current Thread [Next in Thread]