From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.devel Subject: Re: Emacs and XDG Base Dir Spec was: persistent storage for Emacs packages Date: Mon, 21 Oct 2013 08:58:58 -0400 Message-ID: References: <201310202119.19244.thomas@koch.ro> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1382360354 19492 80.91.229.3 (21 Oct 2013 12:59:14 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 21 Oct 2013 12:59:14 +0000 (UTC) Cc: Thomas Koch , Tyler Smith , emacs-devel@gnu.org To: Jan =?windows-1252?Q?Dj=E4rv?= Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Oct 21 14:59:17 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 1VYF4n-0005LD-5E for ged-emacs-devel@m.gmane.org; Mon, 21 Oct 2013 14:59:17 +0200 Original-Received: from localhost ([::1]:39959 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VYF4m-000626-Ra for ged-emacs-devel@m.gmane.org; Mon, 21 Oct 2013 08:59:16 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:46205) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VYF4d-000620-HZ for emacs-devel@gnu.org; Mon, 21 Oct 2013 08:59:15 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VYF4V-0003bn-UE for emacs-devel@gnu.org; Mon, 21 Oct 2013 08:59:07 -0400 Original-Received: from ironport2-out.teksavvy.com ([206.248.154.182]:38742) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VYF4V-0003bh-Pz; Mon, 21 Oct 2013 08:58:59 -0400 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: Av4EABK/CFFFxLCX/2dsb2JhbABEvw4Xc4IeAQEEAVYjBQsLNBIUGA0kiB4GwS2NJYNlA6R6gV6DE4FL X-IPAS-Result: Av4EABK/CFFFxLCX/2dsb2JhbABEvw4Xc4IeAQEEAVYjBQsLNBIUGA0kiB4GwS2NJYNlA6R6gV6DE4FL X-IronPort-AV: E=Sophos;i="4.84,565,1355115600"; d="scan'208";a="35963545" Original-Received: from 69-196-176-151.dsl.teksavvy.com (HELO pastel.home) ([69.196.176.151]) by ironport2-out.teksavvy.com with ESMTP/TLS/ADH-AES256-SHA; 21 Oct 2013 08:58:58 -0400 Original-Received: by pastel.home (Postfix, from userid 20848) id BDD9A6032F; Mon, 21 Oct 2013 08:58:58 -0400 (EDT) In-Reply-To: ("Jan =?windows-1252?Q?Dj=E4rv=22's?= message of "Mon, 21 Oct 2013 07:07:01 +0200") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (gnu/linux) X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 206.248.154.182 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:164414 Archived-At: > The freedesktop standards tend to come and go and change quite a bit. > Are we contemplating this "standard" for non-freedesktop systems also? We could work our way slowly in that direction. Currently ~/.emacs.d is pretty messy, so it might be good to try and "clean it up", and along the way, we could try and integrate some of XDG's suggestions. Not sure how much of XDG would be useful, tho. E.g. we could start with a ~/.emacs.d/cache/ directory where all the files that can be reconstructed would go. Tho there aren't many such files, IIRC. But w.r.t "config vs data" this distinction is far from clear. Still, we have the problem with ~/.emacs.d that many users put their elisp packages in there and then add it to their load-path. I think we should at least try and detect this usage and emit a warning (but we shouldn't just say "don't do that", so we need to agree on a recommendation of where to put those packages). Stefan