From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: antono Newsgroups: gmane.emacs.devel Subject: Re: ~/.emacs.d/ in load path (Calc file conflict) Date: Mon, 12 Mar 2012 21:59:43 +0300 Message-ID: <871uoxhcgw.fsf@antono.info> References: <87hay1pvxv.fsf@gmail.com> Reply-To: self@antono.info NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: dough.gmane.org 1331580984 10966 80.91.229.3 (12 Mar 2012 19:36:24 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Mon, 12 Mar 2012 19:36:24 +0000 (UTC) Cc: jay.p.belanger@gmail.com, emacs-devel@gnu.org To: jay.p.belanger@gmail.com Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Mar 12 20:36:22 2012 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 1S7B2b-0005Nt-BA for ged-emacs-devel@m.gmane.org; Mon, 12 Mar 2012 20:36:21 +0100 Original-Received: from localhost ([::1]:43269 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1S7B2a-0003lU-O3 for ged-emacs-devel@m.gmane.org; Mon, 12 Mar 2012 15:36:20 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:43929) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1S7B2X-0003kY-9q for emacs-devel@gnu.org; Mon, 12 Mar 2012 15:36:18 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1S7B2S-0002ue-5t for emacs-devel@gnu.org; Mon, 12 Mar 2012 15:36:16 -0400 Original-Received: from ec2-50-19-243-116.compute-1.amazonaws.com ([50.19.243.116]:40874 helo=mail.antono.info) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1S7B2S-0002ti-1Y for emacs-devel@gnu.org; Mon, 12 Mar 2012 15:36:12 -0400 Original-Received: by mail.antono.info (Postfix, from userid 1003) id 307B162EFE; Mon, 12 Mar 2012 19:00:24 +0000 (UTC) Original-Received: from libero.antono.info (unknown [178.120.6.130]) (using TLSv1 with cipher DHE-RSA-AES128-SHA (128/128 bits)) (No client certificate requested) (Authenticated sender: antono) by mail.antono.info (Postfix) with ESMTPSA id A056B60DB8; Mon, 12 Mar 2012 19:00:15 +0000 (UTC) User-agent: mu4e 0.9.8.2; emacs 24.0.94.1 In-reply-to: <87hay1pvxv.fsf@gmail.com> X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 50.19.243.116 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:148983 Archived-At: On Tue 06 Mar 2012 06:53:48 PM FET, Jay Belanger wrote: > I recently got a message from a user who was having trouble starting > Calc when he had Calc settings saved in `calc-settings-file', which by > default is "~/.emacs.d/calc.el". The user has "~/.emacs.d/" in his load > path, and so when Calc is started Emacs will look in his settings file > "~/.emacs.d/calc.el" instead of ".../lisp/calc/calc.el" for autoloaded > functions. Good observation. Overall this liberal usage of ~/.emacs.d for different kinds of configs and caches does not looks good and leads to such ugly errors. What if Emacs define some emacs-cache-dir and emacs-data-dir variables and recomend to use them in extensions? What do you think, emacs gurus? Previous art: - http://en.wikipedia.org/wiki/Filesystem_Hierarchy_Standard - http://standards.freedesktop.org/basedir-spec/basedir-spec-latest.html