From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Angelo Graziosi Newsgroups: gmane.emacs.devel Subject: Re: bug#4347: Bug for .emacs.d? Date: Sun, 13 Sep 2009 15:06:23 +0200 Message-ID: <4AACEE4F.6060404@alice.it> References: <4AA1B07E.3080703@alice.it> <4AAABF56.40802@alice.it> <4AAB5BD0.2010503@alice.it> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1252847230 21025 80.91.229.12 (13 Sep 2009 13:07:10 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 13 Sep 2009 13:07:10 +0000 (UTC) Cc: Juanma Barranquero , 4347@emacsbugs.donarmstrong.com, Emacs To: Stefan Monnier Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sun Sep 13 15:07:02 2009 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1MmonD-0002tO-Gi for ged-emacs-devel@m.gmane.org; Sun, 13 Sep 2009 15:06:59 +0200 Original-Received: from localhost ([127.0.0.1]:43936 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MmonC-0002QZ-M8 for ged-emacs-devel@m.gmane.org; Sun, 13 Sep 2009 09:06:58 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Mmon7-0002Oy-8h for emacs-devel@gnu.org; Sun, 13 Sep 2009 09:06:53 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Mmon5-0002Ng-OF for emacs-devel@gnu.org; Sun, 13 Sep 2009 09:06:52 -0400 Original-Received: from [199.232.76.173] (port=36756 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Mmon5-0002NT-Jw for emacs-devel@gnu.org; Sun, 13 Sep 2009 09:06:51 -0400 Original-Received: from smtp-out113.alice.it ([85.37.17.113]:2832) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1Mmon5-0002rz-0h for emacs-devel@gnu.org; Sun, 13 Sep 2009 09:06:51 -0400 Original-Received: from FBCMMO01.fbc.local ([192.168.68.195]) by smtp-out113.alice.it with Microsoft SMTPSVC(6.0.3790.3959); Sun, 13 Sep 2009 15:06:40 +0200 Original-Received: from FBCMCL01B06.fbc.local ([192.168.69.87]) by FBCMMO01.fbc.local with Microsoft SMTPSVC(6.0.3790.3959); Sun, 13 Sep 2009 15:06:40 +0200 Original-Received: from [87.1.239.12] ([87.1.239.12]) by FBCMCL01B06.fbc.local with Microsoft SMTPSVC(6.0.3790.3959); Sun, 13 Sep 2009 15:06:24 +0200 User-Agent: Thunderbird 2.0.0.23 (Windows/20090812) In-Reply-To: X-OriginalArrivalTime: 13 Sep 2009 13:06:24.0572 (UTC) FILETIME=[FF2FCFC0:01CA3472] X-detected-operating-system: by monty-python.gnu.org: Windows 2000 SP4, XP SP1+ X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:115268 Archived-At: Stefan Monnier ha scritto: >>> There's no question that the behavior changed. And clearly you do not >>> like it. But ... what's the harm? >>> Lots of programs create a ~/.foo directory at start. >> Just a question: is the creation of this empty directory (~/.emacs.d) the >> result of a design in the code for the next Emacs 23.2 or is it a unexpected >> result of that code? > > It's not on-purpose, no. It's not exactly unexpected, tho. The issue > is pretty simple: Emacs packages often can use either ~/. (old > style) or ~/.emacs.d/ (new style) files to store some customization > or state. > > If neither of the two files exist, we prefer to use ~/.emacs.d/, > but at the time we make this choice, we usually don't know yet whether > the file will be written, and at the time the file is written, we > generally assume that the parent directory already exists. > > So the ~/.emacs.d directory is created eagerly. > > In other words, this behavior is clearly not a feature, but "fixing" it > is somewhat of a pain for very little gain. OK. If you want to give a more deep meaning to that ~/-emacs.d directory, you can left that Emacs creates it, *and* move ALL files/directories which Emacs creates in $HOME, there!! So, instead to have: ~/.emacs ~/.emacs.desktop ~/.emacs.desktop.lock ... we could have: ~/.emacs.d/.emacs ~/.emacs.d/.emacs.desktop ~/.emacs.d/.emacs.desktop.lock ~/.emacs.d/mail ... In this way we could have a more clean HOME!!! Cheers, Angelo.