[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: desktop.el: autosave?
From: |
Richard Stallman |
Subject: |
Re: desktop.el: autosave? |
Date: |
Fri, 30 Nov 2007 18:35:57 -0500 |
auto-save-hook could do this job.
Date: Fri, 30 Nov 2007 14:08:07 +0000 (GMT)
From: Reuben Thomas <address@hidden>
To: address@hidden
Message-ID: <address@hidden>
MIME-Version: 1.0
Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed
Cc:
Subject: desktop.el: autosave?
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)
- Re: desktop.el: autosave?,
Richard Stallman <=