From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Reuben Thomas Newsgroups: gmane.emacs.bugs Subject: desktop.el: autosave? Date: Fri, 30 Nov 2007 14:08:07 +0000 (GMT) Message-ID: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed X-Trace: ger.gmane.org 1196431782 10584 80.91.229.12 (30 Nov 2007 14:09:42 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 30 Nov 2007 14:09:42 +0000 (UTC) To: bug-emacs@gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Fri Nov 30 15:09:51 2007 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1Iy6Yv-0000Y1-LG for geb-bug-gnu-emacs@m.gmane.org; Fri, 30 Nov 2007 15:09:49 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Iy6Yf-0005q7-TE for geb-bug-gnu-emacs@m.gmane.org; Fri, 30 Nov 2007 09:09:33 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Iy6XX-0005W3-IW for bug-gnu-emacs@gnu.org; Fri, 30 Nov 2007 09:08:23 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Iy6XW-0005V2-CN for bug-gnu-emacs@gnu.org; Fri, 30 Nov 2007 09:08:22 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Iy6XV-0005Ut-3K for bug-gnu-emacs@gnu.org; Fri, 30 Nov 2007 09:08:21 -0500 Original-Received: from fencepost.gnu.org ([140.186.70.10]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1Iy6XU-00004u-MC for bug-gnu-emacs@gnu.org; Fri, 30 Nov 2007 09:08:20 -0500 Original-Received: from mail.gnu.org ([199.232.76.166] helo=mx10.gnu.org) by fencepost.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1Iy6XU-00050p-Cp for bug-emacs@gnu.org; Fri, 30 Nov 2007 09:08:20 -0500 Original-Received: from Debian-exim by monty-python.gnu.org with spam-scanned (Exim 4.60) (envelope-from ) id 1Iy6XR-0008Vn-N6 for bug-emacs@gnu.org; Fri, 30 Nov 2007 09:08:20 -0500 Original-Received: from pelican.sc3d.org ([216.184.201.86]) by monty-python.gnu.org with esmtps (SSL 3.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1Iy6XR-0008V2-5r for bug-emacs@gnu.org; Fri, 30 Nov 2007 09:08:17 -0500 DomainKey-Signature: a=rsa-sha1; s=key1024; d=sc3d.org; c=nofws; q=dns; b=MQW7zFZeh6xHq45eWRiXwsPqADzfnz9ncoiFIxUcJl13DU3JHzdEXwfvl5aOTJSwc3pH2cb6t1/EnEZwlJ/2Rwww+MHNnpI7GPI2XQGNhMJsouIcGzcfp4QV6NfiS+Fz8AUyPrAuUSH+gf/ZZow1RAOTJM34Cx0t+Daa+PdkuMY= Original-Received: from localhost (cpc4-hitc1-0-0-cust477.lutn.cable.ntl.com [86.11.13.222]) by pelican.sc3d.org (pf ESMTP spamd IP-based SPAM blocker) with ASMTP (SSL) id JZM42214 for ; Fri, 30 Nov 2007 09:08:14 -0500 X-X-Sender: rrt@localhost.localdomain User-Agent: Alpine 0.99999 (DEB 796 2007-11-08) X-detected-kernel: by monty-python.gnu.org: Windows 2000 SP4, XP SP1+ X-detected-kernel: by monty-python.gnu.org: Linux 2.6, seldom 2.4 (older, 4) X-BeenThere: bug-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:17096 Archived-At: 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)