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: Wed, 25 Jun 2014 02:23:54 +0300 Organization: JURTA Message-ID: <87fvitj3hx.fsf@mail.jurta.org> References: <20140426180427.GA2944@acm.acm> <87eh0jji5s.fsf@mail.jurta.org> <20140427091555.GA3091@acm.acm> <87fvkzf6bi.fsf@mail.jurta.org> <1ud2e177bf.fsf@fencepost.gnu.org> <87y4wo5ynb.fsf@mail.jurta.org> <0rionsjxr3.fsf@fencepost.gnu.org> <874mzbz11m.fsf@mail.jurta.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1403652512 2870 80.91.229.3 (24 Jun 2014 23:28:32 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 24 Jun 2014 23:28:32 +0000 (UTC) Cc: Alan Mackenzie , 17351@debbugs.gnu.org To: Glenn Morris Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Wed Jun 25 01:28:24 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 1Wza8V-0004Jg-OY for geb-bug-gnu-emacs@m.gmane.org; Wed, 25 Jun 2014 01:28:23 +0200 Original-Received: from localhost ([::1]:34264 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Wza8V-0007KK-7c for geb-bug-gnu-emacs@m.gmane.org; Tue, 24 Jun 2014 19:28:23 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:44124) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Wza8I-00075K-N5 for bug-gnu-emacs@gnu.org; Tue, 24 Jun 2014 19:28:18 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Wza8A-00014A-S8 for bug-gnu-emacs@gnu.org; Tue, 24 Jun 2014 19:28:10 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:40360) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Wza8A-000143-ON for bug-gnu-emacs@gnu.org; Tue, 24 Jun 2014 19:28:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1Wza8A-0001H5-65 for bug-gnu-emacs@gnu.org; Tue, 24 Jun 2014 19:28: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: Tue, 24 Jun 2014 23:28: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.14036524524842 (code B ref 17351); Tue, 24 Jun 2014 23:28:02 +0000 Original-Received: (at 17351) by debbugs.gnu.org; 24 Jun 2014 23:27:32 +0000 Original-Received: from localhost ([127.0.0.1]:59743 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Wza7f-0001G1-BZ for submit@debbugs.gnu.org; Tue, 24 Jun 2014 19:27:31 -0400 Original-Received: from alc-vshost7.dreamhost.com ([69.163.216.107]:51368 helo=ps18281.dreamhostps.com) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Wza7c-0001Fs-QX for 17351@debbugs.gnu.org; Tue, 24 Jun 2014 19:27:29 -0400 Original-Received: from localhost.jurta.org (ps18281.dreamhostps.com [69.163.222.226]) by ps18281.dreamhostps.com (Postfix) with ESMTP id 69633301927BEB; Tue, 24 Jun 2014 16:27:26 -0700 (PDT) In-Reply-To: (Glenn Morris's message of "Tue, 24 Jun 2014 14:30:13 -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:90759 Archived-At: > As I see it, the point is that normal auto-save distinguishes automatic > save from a manual save initiated by the user, by using separate files. > Whereas desktop's version of auto-save removes that distinction. > (But I'm not familiar with the details.) It's possible to periodically update the desktop file buffer, but not to save it, thus allowing normal auto-save to create a #desktop# backup. But this might cause some problems, e.g. modes that call `save-some-buffers' like `compilation-mode' will ask whether to save the updated desktop file. Also it's not clear how to restore the auto-saved backup copy after a crash. OTOH, saving the desktop file buffer will create a desktop~ backup that the user can restore when something goes wrong. This is implemented in the latest patch that is intended for the trunk. Meanwhile, I installed the patch that temporarily disables the autosave in `desktop-read' into the emacs-24 branch, so people won't lose the desktop in case of errors.