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: Wed, 05 Dec 2007 21:11:56 -0500 Message-ID: References: <8763zjfe0v.fsf@jurta.org> <87mysridxt.fsf@jurta.org> <47550419.2080503@gmx.at> <47566942.9090208@gmx.at> Reply-To: rms@gnu.org NNTP-Posting-Host: lo.gmane.org Content-Type: text/plain; charset=ISO-8859-15 X-Trace: ger.gmane.org 1196907204 23249 80.91.229.12 (6 Dec 2007 02:13:24 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 6 Dec 2007 02:13:24 +0000 (UTC) Cc: juri@jurta.org, emacs-devel@gnu.org To: martin rudalics Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Dec 06 03:13:32 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 1J06F0-000767-77 for ged-emacs-devel@m.gmane.org; Thu, 06 Dec 2007 03:13:30 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1J06Ej-0000Um-Ah for ged-emacs-devel@m.gmane.org; Wed, 05 Dec 2007 21:13:13 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1J06DZ-00089K-U3 for emacs-devel@gnu.org; Wed, 05 Dec 2007 21:12:01 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1J06DV-000872-9Z for emacs-devel@gnu.org; Wed, 05 Dec 2007 21:12:01 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1J06DV-00086w-4n for emacs-devel@gnu.org; Wed, 05 Dec 2007 21:11:57 -0500 Original-Received: from fencepost.gnu.org ([140.186.70.10]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1J06DU-0001dQ-SJ for emacs-devel@gnu.org; Wed, 05 Dec 2007 21:11:56 -0500 Original-Received: from rms by fencepost.gnu.org with local (Exim 4.60) (envelope-from ) id 1J06DU-00007M-8j; Wed, 05 Dec 2007 21:11:56 -0500 In-reply-to: <47566942.9090208@gmx.at> (message from martin rudalics on Wed, 05 Dec 2007 10:02:58 +0100) 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:84768 Archived-At: It occurred to me because Juri wanted to auto-save the desktop only every hour. Hence, I'd first wait for an hour and then until Emacs has become idle for at least five minutes. One cannot argue with tastes, but one drawback is that if he never takes a 5-minute break, it will never auto-save the desktop. That's why I suggest auto-saving whenever Emacs is idle for N minutes _or_ H hours have elapsed since the last save. If you take breaks often enough, it will save in the breaks and only in the breaks. But if you don't take breaks, it will eventually save anyway.