From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.devel Subject: Re: desktop-auto-save-timeout Date: Fri, 06 Jun 2014 09:33:31 +0300 Message-ID: <83oay64kec.fsf@gnu.org> References: <838upkh29q.fsf@gnu.org> <878upcffys.fsf@mail.jurta.org> <539020DA.3090206@gmx.at> <87sinj55vd.fsf@mail.jurta.org> Reply-To: Eli Zaretskii NNTP-Posting-Host: plane.gmane.org X-Trace: ger.gmane.org 1402036446 11620 80.91.229.3 (6 Jun 2014 06:34:06 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 6 Jun 2014 06:34:06 +0000 (UTC) Cc: rudalics@gmx.at, emacs-devel@gnu.org, lekktu@gmail.com To: Juri Linkov Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Jun 06 08:33:59 2014 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 1Wsniw-0005EJ-87 for ged-emacs-devel@m.gmane.org; Fri, 06 Jun 2014 08:33:58 +0200 Original-Received: from localhost ([::1]:45434 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Wsniv-00054S-Kv for ged-emacs-devel@m.gmane.org; Fri, 06 Jun 2014 02:33:57 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:47115) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Wsnin-00054I-DV for emacs-devel@gnu.org; Fri, 06 Jun 2014 02:33:54 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Wsnig-0001iJ-7O for emacs-devel@gnu.org; Fri, 06 Jun 2014 02:33:49 -0400 Original-Received: from mtaout28.012.net.il ([80.179.55.184]:44519) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Wsnif-0001iF-VA for emacs-devel@gnu.org; Fri, 06 Jun 2014 02:33:42 -0400 Original-Received: from conversion-daemon.mtaout28.012.net.il by mtaout28.012.net.il (HyperSendmail v2007.08) id <0N6Q00100HNIPT00@mtaout28.012.net.il> for emacs-devel@gnu.org; Fri, 06 Jun 2014 09:31:54 +0300 (IDT) Original-Received: from HOME-C4E4A596F7 ([87.69.4.28]) by mtaout28.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0N6Q0023AI56RK90@mtaout28.012.net.il>; Fri, 06 Jun 2014 09:31:54 +0300 (IDT) In-reply-to: <87sinj55vd.fsf@mail.jurta.org> X-012-Sender: halo1@inter.net.il X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 80.179.55.184 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:172380 Archived-At: > From: Juri Linkov > Cc: Eli Zaretskii , Juanma Barranquero , emacs-devel@gnu.org > Date: Fri, 06 Jun 2014 02:35:42 +0300 > > >> I realized now that the right way to implement the desktop auto-saving > >> is to activate an idle timer only on changes in the window configuration > >> by window-configuration-change-hook. > >> > >> The desktop file is mostly about remembering a list of buffers and > >> windows. There is no point in auto-saving each time point moves. > >> This is what web browsers do by auto-saving a list of tabs > >> only when you open/close a tab. > > > > Agreed. We might lose some window-points and some buffers that have not > > been displayed yet in that case but this is no great harm. > > This is implemented by this patch. Not sure whether it fixes a regression or not. Thanks. Since this is a new functionality in Emacs 24.4, I think we can allow it on the emacs-24 branch.