From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Reuben Thomas Newsgroups: gmane.emacs.devel Subject: Re: desktop.el: autosave? Date: Thu, 6 Dec 2007 23:44:52 +0000 (GMT) Message-ID: References: <8763zjfe0v.fsf@jurta.org> <87mysridxt.fsf@jurta.org> <20071206153806.GA20731@www.trapp.net> <87d4tjbh0g.fsf@jurta.org> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed X-Trace: ger.gmane.org 1196984716 17592 80.91.229.12 (6 Dec 2007 23:45:16 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 6 Dec 2007 23:45:16 +0000 (UTC) Cc: tomas@tuxteam.de, rms@gnu.org, emacs-devel@gnu.org To: Juri Linkov Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Dec 07 00:45:25 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 1J0QPE-0000Ao-OF for ged-emacs-devel@m.gmane.org; Fri, 07 Dec 2007 00:45:25 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1J0QOx-0006ER-QU for ged-emacs-devel@m.gmane.org; Thu, 06 Dec 2007 18:45:07 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1J0QOt-0006BF-Lt for emacs-devel@gnu.org; Thu, 06 Dec 2007 18:45:03 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1J0QOr-00066Z-NF for emacs-devel@gnu.org; Thu, 06 Dec 2007 18:45:02 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1J0QOr-000668-E4 for emacs-devel@gnu.org; Thu, 06 Dec 2007 18:45:01 -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 1J0QOn-0006FB-T4; Thu, 06 Dec 2007 18:44:58 -0500 DomainKey-Signature: a=rsa-sha1; s=key1024; d=sc3d.org; c=nofws; q=dns; b=S5jidcvza7hXcUh11HGiEhz+EHnIsiX6s1yBfruH2qUbydNfyQB3516FAefgnf/urOy+0A5NM0KGGc07vqvzs+3wZRfch1a68TQ/Dhk3rI1mhII6UAWlzKU5pxK8phZkZ6ZnC/r2uQAZRIuXsWd0Jr1bRnmPm5e5RI2qV6VJwAc= 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 LJY48456; Thu, 06 Dec 2007 18:44:56 -0500 X-X-Sender: rrt@localhost.localdomain In-Reply-To: <87d4tjbh0g.fsf@jurta.org> User-Agent: Alpine 0.99999 (DEB 796 2007-11-08) X-detected-kernel: by monty-python.gnu.org: Windows 2000 SP4, XP SP1+ 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:84816 Archived-At: On Fri, 7 Dec 2007, Juri Linkov wrote: > Saving a buffer's file is fast operation comparing to saving the desktop > that takes more time because it is a cpu-intensive task that collects > information from all buffers and some possibly long lists and writes > to the usually large desktop file. The default timeout for auto-save > is 30 sec which is ok for auto-saving normal files, but I don't see a > need to waste resources to save the desktop so often. It's easy to argue about this, but numbers are more convincing. I don't know anything about instrumenting functions in Emacs; how can I find out how long Emacs spends running desktop-save over a particular time period? > But the main problem with idle timers is that with long intervals they may > never run. So don't use long intervals: if the computer is idle anyway, why does it matter if Emacs does some work? Or does "idle" only apply to Emacs? -- http://rrt.sc3d.org/ | Travail broadens the behind