From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Alan Mackenzie Newsgroups: gmane.emacs.bugs Subject: bug#17351: Trunk emacs splats .emacs.desktop at startup Date: Sun, 27 Apr 2014 09:15:55 +0000 Message-ID: <20140427091555.GA3091@acm.acm> References: <20140426180427.GA2944@acm.acm> <87eh0jji5s.fsf@mail.jurta.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1398590429 5830 80.91.229.3 (27 Apr 2014 09:20:29 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 27 Apr 2014 09:20:29 +0000 (UTC) Cc: 17351@debbugs.gnu.org To: Juri Linkov Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sun Apr 27 11:20:22 2014 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 1WeLG1-0005JA-Md for geb-bug-gnu-emacs@m.gmane.org; Sun, 27 Apr 2014 11:20:21 +0200 Original-Received: from localhost ([::1]:38593 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WeLG1-0006ME-2j for geb-bug-gnu-emacs@m.gmane.org; Sun, 27 Apr 2014 05:20:21 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:55815) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WeLFq-0006AH-UB for bug-gnu-emacs@gnu.org; Sun, 27 Apr 2014 05:20:18 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WeLFj-0005md-E3 for bug-gnu-emacs@gnu.org; Sun, 27 Apr 2014 05:20:10 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:51446) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WeLFj-0005mU-Aa for bug-gnu-emacs@gnu.org; Sun, 27 Apr 2014 05:20:03 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1WeLFi-0007o5-GJ for bug-gnu-emacs@gnu.org; Sun, 27 Apr 2014 05:20:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Alan Mackenzie Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 27 Apr 2014 09:20:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 17351 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 17351-submit@debbugs.gnu.org id=B17351.139859039829994 (code B ref 17351); Sun, 27 Apr 2014 09:20:02 +0000 Original-Received: (at 17351) by debbugs.gnu.org; 27 Apr 2014 09:19:58 +0000 Original-Received: from localhost ([127.0.0.1]:59603 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WeLFd-0007nh-PU for submit@debbugs.gnu.org; Sun, 27 Apr 2014 05:19:58 -0400 Original-Received: from colin.muc.de ([193.149.48.1]:53895 helo=mail.muc.de) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WeLFb-0007nW-1j for 17351@debbugs.gnu.org; Sun, 27 Apr 2014 05:19:55 -0400 Original-Received: (qmail 68352 invoked by uid 3782); 27 Apr 2014 09:19:54 -0000 Original-Received: from acm.muc.de (pD9518658.dip0.t-ipconnect.de [217.81.134.88]) by colin.muc.de (tmda-ofmipd) with ESMTP; Sun, 27 Apr 2014 11:19:53 +0200 Original-Received: (qmail 3666 invoked by uid 1000); 27 Apr 2014 09:15:55 -0000 Content-Disposition: inline In-Reply-To: <87eh0jji5s.fsf@mail.jurta.org> User-Agent: Mutt/1.5.21 (2010-09-15) X-Delivery-Agent: TMDA/1.1.12 (Macallan) X-Primary-Address: acm@muc.de 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:88328 Archived-At: Morning, Juri. On Sun, Apr 27, 2014 at 11:22:39AM +0300, Juri Linkov wrote: > > This is horrible. I started a GUI emacs session, and there were errors > > loading the desktop. I loaded the file .emacs.desktop into my emacs > > session to see what the problem was. And lo and behold, that file had > > already been overwritten by Emacs. :-( > I lost my desktop too. :-( After starting a GUI session, loading the > desktop failed to read \.\.\. characters. I see the only way how > \.\.\. got into the desktop: some mode temporarily changed the buffer-local > value of `print-length' that abbreviated a value while saving the desktop. > I added precautions against this problem on the emacs-24 branch. > But the remaining problem is that it overwrote the desktop with the > broken file while leaving no backups of the previous desktop. > > This is crazy. What's the point of overwriting .emacs.desktop at > > startup? It's either going to be overwriting itself with a functionally > > identical copy, or (as in the current case) its going to be losing > > information needed for debugging. > If after startup you paused for 30 seconds then auto-saving overwrote > your desktop indeed. It seems we need to keep a backup of the desktop > from the previous session when saving the desktop in a new session > for the case when the desktop gets broken by the errors in it. Yes, I think so. This needs to be mentioned in the manual, too. 30 seconds seems a very short time (by default) to trigger this saving of the desktop. Especially when there's been no change since the previous save. -- Alan Mackenzie (Nuremberg, Germany).