From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Juri Linkov Newsgroups: gmane.emacs.bugs Subject: bug#15331: desktop should auto-save on idle time Date: Wed, 11 Sep 2013 22:45:48 +0300 Organization: JURTA Message-ID: <87bo3z5ehf.fsf@mail.jurta.org> References: <878uz3p907.fsf@gnu.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1378928898 21764 80.91.229.3 (11 Sep 2013 19:48:18 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 11 Sep 2013 19:48:18 +0000 (UTC) Cc: 15331@debbugs.gnu.org To: Sam Steingold Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Wed Sep 11 21:48:21 2013 Return-path: Envelope-to: geb-bug-gnu-emacs@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 1VJqOd-0001iy-9b for geb-bug-gnu-emacs@m.gmane.org; Wed, 11 Sep 2013 21:48:15 +0200 Original-Received: from localhost ([::1]:37645 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VJqOc-0005IC-MK for geb-bug-gnu-emacs@m.gmane.org; Wed, 11 Sep 2013 15:48:14 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:37441) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VJqOV-0005Cu-FZ for bug-gnu-emacs@gnu.org; Wed, 11 Sep 2013 15:48:12 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VJqOQ-0007z0-Fz for bug-gnu-emacs@gnu.org; Wed, 11 Sep 2013 15:48:07 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:48117) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VJqOQ-0007ys-DD for bug-gnu-emacs@gnu.org; Wed, 11 Sep 2013 15:48:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1VJqOP-0003XK-R0 for bug-gnu-emacs@gnu.org; Wed, 11 Sep 2013 15:48:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Juri Linkov Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 11 Sep 2013 19:48:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 15331 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch Original-Received: via spool by 15331-submit@debbugs.gnu.org id=B15331.137892882413505 (code B ref 15331); Wed, 11 Sep 2013 19:48:01 +0000 Original-Received: (at 15331) by debbugs.gnu.org; 11 Sep 2013 19:47:04 +0000 Original-Received: from localhost ([127.0.0.1]:56406 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1VJqNT-0003Vl-Nk for submit@debbugs.gnu.org; Wed, 11 Sep 2013 15:47:03 -0400 Original-Received: from ps18281.dreamhost.com ([69.163.218.105]:48767 helo=ps18281.dreamhostps.com) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1VJqNR-0003VI-JI for 15331@debbugs.gnu.org; Wed, 11 Sep 2013 15:47:02 -0400 Original-Received: from localhost.jurta.org (ps18281.dreamhostps.com [69.163.218.105]) by ps18281.dreamhostps.com (Postfix) with ESMTP id 32372258B9E935; Wed, 11 Sep 2013 12:46:58 -0700 (PDT) In-Reply-To: <878uz3p907.fsf@gnu.org> (Sam Steingold's message of "Wed, 11 Sep 2013 13:23:52 -0400") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (x86_64-pc-linux-gnu) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 140.186.70.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:78242 Archived-At: > I think the proposed solution is overly complicated. > I think the better solution is to use idle timer instead and default > `desktop-auto-save-timeout' to `auto-save-timeout' (i.e., enable by default). You can't use idle timers even with such reasonable timeouts as 5 minutes between saves, i.e. when the user needs to save the desktop every 5 minutes, with idle timers the user have to sit inactively 5 minutes waiting for Godot^H^H^H^H^H desktop saving. Thus desktop saving requires two different timers out of necessity. You can see the whole relevant emacs-devel thread where this problem was discussed here: http://thread.gmane.org/gmane.emacs.bugs/17096/focus=158816