From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Josh Newsgroups: gmane.emacs.devel Subject: Re: Emacs and XDG Base Dir Spec was: persistent storage for Emacs packages Date: Mon, 21 Oct 2013 13:54:40 -0700 Message-ID: References: <201310202119.19244.thomas@koch.ro> <17329_1382360340_52652514_17329_164_1_1c38477173ab4b6cb80a8c50bd6dd0e9@EXHUB2010-1.campus.MCGILL.CA> <20874_1382379012_52656E04_20874_7_7_6906997aba2b4fc2b717f1f695c0e3df@EXHUB2010-2.campus.MCGILL.CA> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 X-Trace: ger.gmane.org 1382388923 21284 80.91.229.3 (21 Oct 2013 20:55:23 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 21 Oct 2013 20:55:23 +0000 (UTC) Cc: Tyler Smith , Thomas Koch , =?ISO-8859-1?Q?Jan_Dj=E4rv?= , "emacs-devel@gnu.org" To: Stefan Monnier Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Oct 21 22:55:25 2013 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 1VYMVY-0004eH-Qv for ged-emacs-devel@m.gmane.org; Mon, 21 Oct 2013 22:55:24 +0200 Original-Received: from localhost ([::1]:41810 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VYMVY-0001Jn-Hy for ged-emacs-devel@m.gmane.org; Mon, 21 Oct 2013 16:55:24 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:44307) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VYMVQ-0001Jd-JW for emacs-devel@gnu.org; Mon, 21 Oct 2013 16:55:21 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VYMVL-00054j-QT for emacs-devel@gnu.org; Mon, 21 Oct 2013 16:55:16 -0400 Original-Received: from mail-wg0-f43.google.com ([74.125.82.43]:61689) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VYMVL-00054e-L7 for emacs-devel@gnu.org; Mon, 21 Oct 2013 16:55:11 -0400 Original-Received: by mail-wg0-f43.google.com with SMTP id b13so7181888wgh.10 for ; Mon, 21 Oct 2013 13:55:10 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:sender:in-reply-to:references:from :date:message-id:subject:to:cc:content-type; bh=wIETcsdzP9vaTq50t+Dwzby2hwgraOCftyCcz0Co8MA=; b=e42Rjq+IfAyPxcSdZQH+6qh4mBEUXMfAUzSJoDnF6WhF6y3mc4pYhXJmpTM7o3gV4o IIhvVbwyEZEOR4SuOEaPKBs4aDWsLKeb2ZVB0MLJq5eNMS8ooY+tpo2mCSuvhXuTPDYr 04LXoDirVcEspQ6tYrFKyyA2sZsJ66Su5r1zVp6XVcmQ0Ef4he1R44SvJ/p+LGE2G/7G 7vGXAHVmlmYTrnJt3qZ+xqZriQMfCHSe6ZPE/ZHKPoKWFTIN1NDxVnxnLlDZHbhBIDBu 6n67soxbAjXMnAJstRAfQLeGH1/a2Tos3TkaDUGH0T2F1dFtN21Er520P04hWlUT/HRH RlGg== X-Gm-Message-State: ALoCoQmAkyUhjumelMDWI1M4ZKrEeCTrNSqPBaTuOH2afBlkZqfER1O3Yz7k8Leeb+lHlNkPrxqg X-Received: by 10.194.11.67 with SMTP id o3mr15853689wjb.0.1382388910811; Mon, 21 Oct 2013 13:55:10 -0700 (PDT) Original-Received: by 10.194.22.225 with HTTP; Mon, 21 Oct 2013 13:54:40 -0700 (PDT) In-Reply-To: X-Google-Sender-Auth: ePvPDb-iUEehmH-5TcQnYq6gUV4 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-Received-From: 74.125.82.43 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:164435 Archived-At: On Mon, Oct 21, 2013 at 12:37 PM, Stefan Monnier wrote: >> From Stefan's comment it sounds as if I should pull everything out of >> .emacs.d except init and elpa. But it's convenient for me to have emacs in >> its own contained world on my computer. Is there a risk of breaking >> something with this approach? > > The problem with adding ~/.emacs.d to your load-path is one > of namespace. E.g. Gnus expects ~/.emacs.d/gnus.el to be the user's > Gnus config. So if you have such a file and add ~/.emacs.d to your > load-path, you'll have a conflict where (load "gnus") will load your > Gnus config file rather then loading Gnus proper. I do not mean to nitpick, but this is the first I have heard that load-path should not include ~/.emacs.d (or I suppose more generally user-emacs-directory), so I would like to understand the thinking here. I see the following in trunk: gnus-init-file is a variable defined in `gnus-start.el'. Its value is "~/.gnus" Documentation: Your Gnus Emacs-Lisp startup file name. If a file with the `.el' or `.elc' suffixes exists, it will be read instead. You can customize this variable. Leaving aside the fact that this file is located by default in ~ instead of ~/.emacs.d, it seems that the config filename's leading dot would obviate any namespace issue. If that is so, are there any concrete examples of trouble that could result from ~/.emacs.d's presence in load-path?