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#17351: Trunk emacs splats .emacs.desktop at startup Date: Sun, 27 Apr 2014 11:22:39 +0300 Organization: JURTA Message-ID: <87eh0jji5s.fsf@mail.jurta.org> References: <20140426180427.GA2944@acm.acm> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1398587132 32098 80.91.229.3 (27 Apr 2014 08:25:32 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 27 Apr 2014 08:25:32 +0000 (UTC) Cc: 17351@debbugs.gnu.org To: Alan Mackenzie Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sun Apr 27 10:25: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 1WeKOn-00085f-TJ for geb-bug-gnu-emacs@m.gmane.org; Sun, 27 Apr 2014 10:25:22 +0200 Original-Received: from localhost ([::1]:38408 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WeKOn-0004LW-E4 for geb-bug-gnu-emacs@m.gmane.org; Sun, 27 Apr 2014 04:25:21 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:47668) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WeKOc-0004LC-T3 for bug-gnu-emacs@gnu.org; Sun, 27 Apr 2014 04:25:18 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WeKOU-0006FV-Um for bug-gnu-emacs@gnu.org; Sun, 27 Apr 2014 04:25:10 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:51358) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WeKOU-0006FE-Qe for bug-gnu-emacs@gnu.org; Sun, 27 Apr 2014 04:25:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1WeKOU-00065d-1V for bug-gnu-emacs@gnu.org; Sun, 27 Apr 2014 04:25:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Juri Linkov Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 27 Apr 2014 08:25:01 +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.139858706923358 (code B ref 17351); Sun, 27 Apr 2014 08:25:01 +0000 Original-Received: (at 17351) by debbugs.gnu.org; 27 Apr 2014 08:24:29 +0000 Original-Received: from localhost ([127.0.0.1]:59515 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WeKNw-00064b-Lm for submit@debbugs.gnu.org; Sun, 27 Apr 2014 04:24:29 -0400 Original-Received: from alc-vshost7.dreamhost.com ([69.163.216.107]:57878 helo=ps18281.dreamhostps.com) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WeKNu-00064N-Go for 17351@debbugs.gnu.org; Sun, 27 Apr 2014 04:24:27 -0400 Original-Received: from localhost.jurta.org (ps18281.dreamhostps.com [69.163.222.226]) by ps18281.dreamhostps.com (Postfix) with ESMTP id 3D21437C39DF0C; Sun, 27 Apr 2014 01:24:21 -0700 (PDT) In-Reply-To: <20140426180427.GA2944@acm.acm> (Alan Mackenzie's message of "Sat, 26 Apr 2014 18:04:27 +0000") 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:88323 Archived-At: > 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.