From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.bugs Subject: bug#10977: detail from .xession-errors concerning .desktop extension of ~./emacs.desktop Date: Mon, 12 Mar 2012 14:14:31 -0400 Message-ID: References: <201203091055.38668.trikl@online.de> <4F5A6F18.4080109@online.de> <83k42szzs8.fsf@gnu.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: dough.gmane.org 1331576131 4480 80.91.229.3 (12 Mar 2012 18:15:31 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Mon, 12 Mar 2012 18:15:31 +0000 (UTC) Cc: trikl@online.de, 10977@debbugs.gnu.org To: Glenn Morris Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon Mar 12 19:15:30 2012 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 1S79mK-00021k-7s for geb-bug-gnu-emacs@m.gmane.org; Mon, 12 Mar 2012 19:15:28 +0100 Original-Received: from localhost ([::1]:45515 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1S79mJ-0004F8-9H for geb-bug-gnu-emacs@m.gmane.org; Mon, 12 Mar 2012 14:15:27 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:53458) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1S79mA-0004Ej-To for bug-gnu-emacs@gnu.org; Mon, 12 Mar 2012 14:15:24 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1S79m2-0008Do-CN for bug-gnu-emacs@gnu.org; Mon, 12 Mar 2012 14:15:18 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:40344) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1S79m2-0008Dk-8s for bug-gnu-emacs@gnu.org; Mon, 12 Mar 2012 14:15:10 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.72) (envelope-from ) id 1S7AEv-0000p3-Nr for bug-gnu-emacs@gnu.org; Mon, 12 Mar 2012 14:45:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Stefan Monnier Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 12 Mar 2012 18:45:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 10977 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 10977-submit@debbugs.gnu.org id=B10977.13315778783120 (code B ref 10977); Mon, 12 Mar 2012 18:45:01 +0000 Original-Received: (at 10977) by debbugs.gnu.org; 12 Mar 2012 18:44:38 +0000 Original-Received: from localhost ([127.0.0.1]:47176 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1S7AEX-0000oG-BR for submit@debbugs.gnu.org; Mon, 12 Mar 2012 14:44:38 -0400 Original-Received: from chene.dit.umontreal.ca ([132.204.246.20]:60386) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1S7AEK-0000ny-4l for 10977@debbugs.gnu.org; Mon, 12 Mar 2012 14:44:35 -0400 Original-Received: from faina.iro.umontreal.ca (lechon.iro.umontreal.ca [132.204.27.242]) by chene.dit.umontreal.ca (8.14.1/8.14.1) with ESMTP id q2CIEVE9005572; Mon, 12 Mar 2012 14:14:31 -0400 Original-Received: by faina.iro.umontreal.ca (Postfix, from userid 20848) id 8DC4CB402D; Mon, 12 Mar 2012 14:14:31 -0400 (EDT) In-Reply-To: (Glenn Morris's message of "Mon, 12 Mar 2012 12:42:52 -0400") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.92 (gnu/linux) X-NAI-Spam-Flag: NO X-NAI-Spam-Threshold: 5 X-NAI-Spam-Score: 0 X-NAI-Spam-Rules: 1 Rules triggered RV4159=0 X-NAI-Spam-Version: 2.2.0.9309 : core <4159> : streams <737199> : uri <1081792> X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) 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:57732 Archived-At: >>>> I think the necessary change would be to make desktop-read set >>>> desktop-dirname to user-emacs-directory if no existing desktop is found >>>> in any of those three locations (and no DIRNAME arg was specified). >> Agreed. >>> Only in the case where "." = "~", I should have said. >> Disagreed. I would agree to special case the "."="~" in the sense of >> ignoring "." from desktop-path when "." is "~" (so that >> user-emacs-directory takes precedence over ~), but special casing it >> when setting desktop-dirname doesn't seem to bring us anything. > echo '(desktop-save-mode 1)' >| ~/.emacs > emacs > C-h v desktop-dirname > You'll find it set to the value of PWD. Yes, and that should be user-emacs-directory instead. > This controls where the desktop gets saved on exit. I'm saying that > when you start in HOME, Emacs should prefer to save in > user-emacs-directory rather than PWD; We agree on this case. > but not when you start in /some/other/place Here I disagree. If a desktop file is found somewhere up from /some/other/place, then we should use it, but otherwise desktop-dirname should be set to user-emacs-directory. > (you could never have more than one desktop then; I make use of > multiple desktops). You could still have them. The user would simply have to explicitly save it in /some/other/place. > Another option: > Save all desktops to ~/.emacs.d/desktops/; either with the directory > name encoded in the name of the desktop file, or have an index file that > maps starting directories to desktop files. That would also allow for > named desktops (desktop-project1, desktop-project2, etc). That'd be OK as well. > PS I've also changed my mind and think that .desktop.el would be a > better name than .emacs.desktop. Would need compat code to load > .emacs.desktop if it exists, but prefer saving to .desktop.el. FWIW, I think that ".el" should be reserved for files containing Elisp code, rather than any Elisp data; IOW it should be intended for `load' rather than for `read'. Not sure what to use for Elisp data, tho... maybe ".eld"? Stefan