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: bug#4347: Bug for .emacs.d? Date: Sat, 12 Sep 2009 15:32:31 -0400 Message-ID: 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=us-ascii X-Trace: ger.gmane.org 1252783972 24721 80.91.229.12 (12 Sep 2009 19:32:52 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 12 Sep 2009 19:32:52 +0000 (UTC) Cc: Juanma Barranquero , 4347@emacsbugs.donarmstrong.com, Emacs To: Angelo Graziosi Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sat Sep 12 21:32:44 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 1MmYKx-00068z-Qo for ged-emacs-devel@m.gmane.org; Sat, 12 Sep 2009 21:32:44 +0200 Original-Received: from localhost ([127.0.0.1]:36715 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MmYKx-0005Wk-9y for ged-emacs-devel@m.gmane.org; Sat, 12 Sep 2009 15:32:43 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MmYKr-0005WL-R3 for emacs-devel@gnu.org; Sat, 12 Sep 2009 15:32:37 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MmYKn-0005US-7r for emacs-devel@gnu.org; Sat, 12 Sep 2009 15:32:37 -0400 Original-Received: from [199.232.76.173] (port=60493 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MmYKn-0005UH-3w for emacs-devel@gnu.org; Sat, 12 Sep 2009 15:32:33 -0400 Original-Received: from [206.248.154.183] (port=53033 helo=ironport2-out.pppoe.ca) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1MmYKm-00068i-Qg for emacs-devel@gnu.org; Sat, 12 Sep 2009 15:32:32 -0400 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AuAEAIaUq0pFpZBe/2dsb2JhbACBU9gPhBgFh3Q X-IronPort-AV: E=Sophos;i="4.44,376,1249272000"; d="scan'208";a="45608248" Original-Received: from 69-165-144-94.dsl.teksavvy.com (HELO pastel.home) ([69.165.144.94]) by ironport2-out.pppoe.ca with ESMTP; 12 Sep 2009 15:30:57 -0400 Original-Received: by pastel.home (Postfix, from userid 20848) id D5F0A83FD; Sat, 12 Sep 2009 15:32:31 -0400 (EDT) In-Reply-To: <4AAB5BD0.2010503@alice.it> (Angelo Graziosi's message of "Sat, 12 Sep 2009 10:29:04 +0200") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1.50 (gnu/linux) X-detected-operating-system: by monty-python.gnu.org: Genre and OS details not recognized. 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:115245 Archived-At: >> 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. Stefan