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, 11 Apr 2013 12:04:38 +0100 Message-ID: References: <8763zjfe0v.fsf@jurta.org> <87mysridxt.fsf@jurta.org> <20071206153806.GA20731@www.trapp.net> <87d4tjbh0g.fsf@jurta.org> <87abon5q1f.fsf@jurta.org> <87lk835rb7.fsf@jurta.org> <87ejdu6rna.fsf@jurta.org> <87mysi3wx7.fsf@jurta.org> <87k3oaswbl.fsf@mail.jurta.org> <87k3o9v5bf.fsf@mail.jurta.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=14dae94ed819ac263104da13c0e0 X-Trace: ger.gmane.org 1365678291 9936 80.91.229.3 (11 Apr 2013 11:04:51 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 11 Apr 2013 11:04:51 +0000 (UTC) Cc: tomas@tuxteam.de, emacs-devel@gnu.org To: Juri Linkov Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Apr 11 13:04:54 2013 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1UQFJF-0000O3-Ol for ged-emacs-devel@m.gmane.org; Thu, 11 Apr 2013 13:04:53 +0200 Original-Received: from localhost ([::1]:57317 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UQFJD-0003wF-1j for ged-emacs-devel@m.gmane.org; Thu, 11 Apr 2013 07:04:51 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:56351) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UQFJ7-0003uM-Bq for emacs-devel@gnu.org; Thu, 11 Apr 2013 07:04:47 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UQFJ5-0006XV-8P for emacs-devel@gnu.org; Thu, 11 Apr 2013 07:04:45 -0400 Original-Received: from exprod7og125.obsmtp.com ([64.18.2.28]:52211) by eggs.gnu.org with smtp (Exim 4.71) (envelope-from ) id 1UQFJ5-0006Wq-1A for emacs-devel@gnu.org; Thu, 11 Apr 2013 07:04:43 -0400 Original-Received: from mail-la0-f71.google.com ([209.85.215.71]) (using TLSv1) by exprod7ob125.postini.com ([64.18.6.12]) with SMTP ID DSNKUWaYyD2aNNXo5HWyQxKW7nl4/zLGKtRi@postini.com; Thu, 11 Apr 2013 04:04:42 PDT Original-Received: by mail-la0-f71.google.com with SMTP id gw10so1783021lab.10 for ; Thu, 11 Apr 2013 04:04:38 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=x-received:mime-version:x-received:in-reply-to:references:date :message-id:subject:from:to:cc:content-type:x-gm-message-state; bh=hJrBx6Vcc/k9NoqEZgR+ctvIJpEy/1Nm6apmRnQTyik=; b=dW4tlF+pEbJBjSqJz0CGMaYDTIqNLzYu7kQxe1A1edryQxXFXJKAnyxDJUBohAAcJL D4/HJAb9j1YMBykB2ZtIsO3IZ97m1snIaD2Uymbh4kLFHTHQ6JFpSYYwerA1HmO5LYLj Io7xWHzo5yx48XrxVOwTo29lSGTicpWspZNglj7Y7I8qTHxq/FRZ+nfqiGQCnvfx65XM 4bAoISL2JOrSOM0yP7tNkgbrzzUi6EH8MCyMUlRGxd/vEStcJeOI1tw6pmKsE+wAfrcM RNmBKZcOnMOJONYvqZ00MrfiKM7q9cxBSfcpXPb/8pMLiCrRoN3+Z5aNRy46dE5Ui2Wm 6d6A== X-Received: by 10.112.5.196 with SMTP id u4mr887838lbu.78.1365678278717; Thu, 11 Apr 2013 04:04:38 -0700 (PDT) X-Received: by 10.112.5.196 with SMTP id u4mr887835lbu.78.1365678278578; Thu, 11 Apr 2013 04:04:38 -0700 (PDT) Original-Received: by 10.152.5.40 with HTTP; Thu, 11 Apr 2013 04:04:38 -0700 (PDT) In-Reply-To: <87k3o9v5bf.fsf@mail.jurta.org> X-Gm-Message-State: ALoCoQnr8u2eHfCECHPaesaO4BWA4xu08WIY+i+GvX9G0q6weK7jUguYjooeil/j1RxMqISEmgq68vpjjm9avp8AnXNI6MNVTd/1y+5gk3u/Q4SNxvHlsxL1dXHwfK8GTfm15klqBNfIlWK4o/Ne61qg4XLy7jHSYw== X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.4.x X-Received-From: 64.18.2.28 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:158833 Archived-At: --14dae94ed819ac263104da13c0e0 Content-Type: text/plain; charset=ISO-8859-1 On 11 April 2013 09:29, Juri Linkov wrote: > Update the timer for next auto-saving. > Cancel the previous timer and run a new timer when the number > of seconds between auto-saves is a positive integer. > Thanks very much! The only thing I would say is that to a mathmetician the above docstring sounds as though the new timer will be run when the number of seconds between auto-saves is *any* positive integer, wheras presumably you mean that the argument should be a positive integer. Further, it sounds as though the timer will not be cancelled if the number of seconds between auto-saves is not a positive integer. I suggest: Reset the auto-save timer. Cancel any previous timer. When `desktop-auto-save-timeout' is a positive integer, start a new timer to call `desktop-auto-save' in that many seconds. -- http://rrt.sc3d.org --14dae94ed819ac263104da13c0e0 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable
On 1= 1 April 2013 09:29, Juri Linkov <juri@jurta.org> wrote:
Update the timer for next auto-saving.
Cancel the previ= ous timer and run a new timer when the number
of seconds between auto-saves is a positive integer.

Thanks very much! The only thing I w= ould say is that to a mathmetician the above docstring sounds as though the= new timer will be run when the number of seconds between auto-saves is *an= y* positive integer, wheras presumably you mean that the argument should be= a positive integer. Further, it sounds as though the timer will not be can= celled if the number of seconds between auto-saves is not a positive intege= r. I suggest:

Reset the auto-save timer.
Cancel any previous timer. When `desktop-auto-save= -timeout' is a positive integer, start a new timer to call `desktop-aut= o-save' in that many seconds.

--
http://rrt.sc3d.org
--14dae94ed819ac263104da13c0e0--