From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: martin rudalics Newsgroups: gmane.emacs.devel Subject: Re: desktop-auto-save-timeout Date: Thu, 05 Jun 2014 09:48:42 +0200 Message-ID: <539020DA.3090206@gmx.at> References: <838upkh29q.fsf@gnu.org> <878upcffys.fsf@mail.jurta.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-15; format=flowed Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1401954572 6183 80.91.229.3 (5 Jun 2014 07:49:32 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 5 Jun 2014 07:49:32 +0000 (UTC) Cc: Juanma Barranquero , emacs-devel@gnu.org To: Juri Linkov , Eli Zaretskii Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Jun 05 09:49:23 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 1WsSQN-00024h-Lq for ged-emacs-devel@m.gmane.org; Thu, 05 Jun 2014 09:49:23 +0200 Original-Received: from localhost ([::1]:38916 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WsSQN-0000Ny-9c for ged-emacs-devel@m.gmane.org; Thu, 05 Jun 2014 03:49:23 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:60100) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WsSQB-0000J0-Hy for emacs-devel@gnu.org; Thu, 05 Jun 2014 03:49:19 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WsSQ3-0002of-AU for emacs-devel@gnu.org; Thu, 05 Jun 2014 03:49:11 -0400 Original-Received: from mout.gmx.net ([212.227.15.19]:52560) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WsSPv-0002ln-6L; Thu, 05 Jun 2014 03:48:55 -0400 Original-Received: from [88.117.57.70] ([88.117.57.70]) by mail.gmx.com (mrgmx102) with ESMTPSA (Nemesis) id 0LtlG5-1WlD1i3k9N-0117nF; Thu, 05 Jun 2014 09:48:52 +0200 In-Reply-To: <878upcffys.fsf@mail.jurta.org> X-Provags-ID: V03:K0:soQBp08vYouKnVxIc5Pv4L67PGA17o0v6O167HYUS3JtksWAKgP C04Uglo7fG0C6lYlKke5tCIBeykSzMykVB9ic6sdjYmz7gbxdrqtKEpSvEe3rNtmdmrq9KG Q7crgz1MlLXdqdxZ19Pfmco9eaIDx3ML1DmJSPpf42DE/yOHGdrF7aztwSGgyPsVQB4iX// FgX8+iPtcIzeZ8NEQDZ1Q== X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.4.x-2.6.x [generic] X-Received-From: 212.227.15.19 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:172358 Archived-At: > 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. martin