From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Tom Tromey Newsgroups: gmane.emacs.devel Subject: Re: package.el Date: Fri, 25 May 2007 15:39:46 -0600 Message-ID: References: <2cd46e7f0705101124r72000f78xdf05d18ca815ca57@mail.gmail.com> <17991.47259.210100.801472@localhost.localdomain> <85d50wq6a9.fsf@lola.goethe.zz> <54877.128.165.123.18.1179791333.squirrel@webmail.lanl.gov> Reply-To: tromey@redhat.com NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1180130410 14551 80.91.229.12 (25 May 2007 22:00:10 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Fri, 25 May 2007 22:00:10 +0000 (UTC) Cc: David Reitter , emacs-devel@gnu.org To: herring@lanl.gov Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sat May 26 00:00:09 2007 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 1HrhpQ-0001Gh-JZ for ged-emacs-devel@m.gmane.org; Sat, 26 May 2007 00:00:08 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HrhpQ-0007id-0b for ged-emacs-devel@m.gmane.org; Fri, 25 May 2007 18:00:08 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1HrhpK-0007hs-QB for emacs-devel@gnu.org; Fri, 25 May 2007 18:00:02 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1HrhpI-0007hd-Es for emacs-devel@gnu.org; Fri, 25 May 2007 18:00:01 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HrhpI-0007ha-7K for emacs-devel@gnu.org; Fri, 25 May 2007 18:00:00 -0400 Original-Received: from mx1.redhat.com ([66.187.233.31]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1HrhpH-0005py-Va for emacs-devel@gnu.org; Fri, 25 May 2007 18:00:00 -0400 Original-Received: from int-mx1.corp.redhat.com (int-mx1.corp.redhat.com [172.16.52.254]) by mx1.redhat.com (8.13.1/8.13.1) with ESMTP id l4PLxvXD007911; Fri, 25 May 2007 17:59:57 -0400 Original-Received: from pobox.corp.redhat.com (pobox.corp.redhat.com [10.11.255.20]) by int-mx1.corp.redhat.com (8.13.1/8.13.1) with ESMTP id l4PLxv9D008068; Fri, 25 May 2007 17:59:57 -0400 Original-Received: from opsy.redhat.com (ton.toronto.redhat.com [172.16.14.15]) by pobox.corp.redhat.com (8.13.1/8.13.1) with ESMTP id l4PLxu7W012312; Fri, 25 May 2007 17:59:56 -0400 Original-Received: by opsy.redhat.com (Postfix, from userid 500) id 823EF508101; Fri, 25 May 2007 15:39:46 -0600 (MDT) X-Attribution: Tom In-Reply-To: <54877.128.165.123.18.1179791333.squirrel@webmail.lanl.gov> (Davis Herring's message of "Mon\, 21 May 2007 16\:48\:53 -0700 \(PDT\)") User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.95 (gnu/linux) X-detected-kernel: Linux 2.6, seldom 2.4 (older, 4) 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:71815 Archived-At: >>>>> "Davis" == Davis Herring writes: Davis> This (the customizable setting) has been discussed before[1], Davis> and I even offered to go find all the hardcoded ~/.emacs.d/ Davis> usages, but there wasn't much evident interest. Is there now, Davis> especially given the issue of differing standards among OSes? Ah, cool. I wasn't aware of this. Today I made a quick pass over Emacs to fix this. I haven't tested my patch yet, since I ran into a few difficulties: * xterm.c uses ~/.emacs.d: char *file = "~/.emacs.d/gtkrc"; I'm not familiar with Emacs internals but I would guess this is run before .emacs -- so I don't see how the user could customize this...? But for the Aquamacs case I suppose this doesn't matter. * emacsclient.c: sprintf (path, "%s/.emacs.d/server/%s", home, server_file); We'd need an environment variable or command line argument here. Also some -- but not all -- of the Emacs lisp code uses _emacs_d on 'ms-dos. Is this different from Windows? Does emacsclient work on ms-dos? (If so then the code looks incorrect...) * Lots of places hard-code .emacs.d, some use _emacs_d, and one uses convert-standard-filename. My patch uses option #2 but maybe convert-standard-filename is better? * I wasn't sure what to do about the doc strings and the Texinfo. Should they all mention `user-emacs-directory'? Or just leave them as-is, mentioning ~.emacs.d/, and let the reader figure it out? * More trivially, what :group should the new user-emacs-directory defcustom be in? Anyway I am happy to send the patch to anybody interested. And I'm going to do a bit of testing of it "soon" :) Tom