From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Richard Stallman Newsgroups: gmane.emacs.devel Subject: Re: desktop.el: autosave? Date: Fri, 30 Nov 2007 18:35:57 -0500 Message-ID: References: Reply-To: rms@gnu.org NNTP-Posting-Host: lo.gmane.org Content-Type: text/plain; charset=ISO-8859-15 X-Trace: ger.gmane.org 1196465773 29948 80.91.229.12 (30 Nov 2007 23:36:13 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 30 Nov 2007 23:36:13 +0000 (UTC) Cc: emacs-devel@gnu.org To: Reuben Thomas Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sat Dec 01 00:36:21 2007 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1IyFPA-0001Yt-8W for ged-emacs-devel@m.gmane.org; Sat, 01 Dec 2007 00:36:20 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IyFOu-0003E4-8I for ged-emacs-devel@m.gmane.org; Fri, 30 Nov 2007 18:36:04 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1IyFOq-0003Cl-5s for emacs-devel@gnu.org; Fri, 30 Nov 2007 18:36:00 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1IyFOo-0003CB-M7 for emacs-devel@gnu.org; Fri, 30 Nov 2007 18:35:59 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IyFOo-0003C2-EY for emacs-devel@gnu.org; Fri, 30 Nov 2007 18:35:58 -0500 Original-Received: from fencepost.gnu.org ([140.186.70.10]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1IyFOn-0003Wo-PQ for emacs-devel@gnu.org; Fri, 30 Nov 2007 18:35:58 -0500 Original-Received: from rms by fencepost.gnu.org with local (Exim 4.60) (envelope-from ) id 1IyFOn-0007EB-20; Fri, 30 Nov 2007 18:35:57 -0500 In-reply-to: (message from Reuben Thomas on Fri, 30 Nov 2007 14:08:07 +0000 (GMT)) X-detected-kernel: by monty-python.gnu.org: Linux 2.6, seldom 2.4 (older, 4) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:84392 Archived-At: auto-save-hook could do this job. Date: Fri, 30 Nov 2007 14:08:07 +0000 (GMT) From: Reuben Thomas To: bug-emacs@gnu.org Message-ID: 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)