From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Jason Rumney Newsgroups: gmane.emacs.devel Subject: Re: single init file/directory for windows and linux using version control svn or cvs Date: Thu, 21 Sep 2006 13:15:12 +0100 Message-ID: <45128250.8090009@gnu.org> References: NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============1557281396==" X-Trace: sea.gmane.org 1158840997 13079 80.91.229.2 (21 Sep 2006 12:16:37 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Thu, 21 Sep 2006 12:16:37 +0000 (UTC) Cc: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Sep 21 14:16:34 2006 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1GQNTR-0004eb-Db for ged-emacs-devel@m.gmane.org; Thu, 21 Sep 2006 14:16:14 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1GQNTQ-0002Wi-L5 for ged-emacs-devel@m.gmane.org; Thu, 21 Sep 2006 08:16:12 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1GQNTD-0002W6-Cv for emacs-devel@gnu.org; Thu, 21 Sep 2006 08:15:59 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1GQNTA-0002VV-Ck for emacs-devel@gnu.org; Thu, 21 Sep 2006 08:15:59 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1GQNTA-0002VS-9H for emacs-devel@gnu.org; Thu, 21 Sep 2006 08:15:56 -0400 Original-Received: from [213.86.207.50] (helo=exchange.integrasp.com) by monty-python.gnu.org with esmtp (Exim 4.52) id 1GQNWf-0004ru-Qb for emacs-devel@gnu.org; Thu, 21 Sep 2006 08:19:34 -0400 Original-Received: from [192.168.111.61] (localhost [127.0.0.1]) by exchange.integrasp.com with SMTP (Microsoft Exchange Internet Mail Service Version 5.5.2653.13) id SWNQ1ZDN; Thu, 21 Sep 2006 13:06:33 +0100 Original-Received: from 192.168.111.61 ([192.168.111.61] helo=[192.168.111.61]) by ASSP-nospam; 21 Sep 2006 13:06:33 +0100 User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-GB; rv:1.8.0.4) Gecko/20060516 Thunderbird/1.5.0.4 Mnenhy/0.7.4.666 Original-To: CHENG Gao In-Reply-To: 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:60062 Archived-At: This is a multi-part message in MIME format. --===============1557281396== Content-Type: multipart/alternative; boundary="------------040300070404060805020907" This is a multi-part message in MIME format. --------------040300070404060805020907 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit CHENG Gao wrote: > *On Wed, 20 Sep 2006 21:58:48 -0400 > * Richard Stallman climbed out of the dark hell and cried out: > > >> Emacs ought to recognize ~/.emacs.d/init.el, on any system, when it does >> not find .emacs. If this does not work on Windows, it is a bug. >> Could you confirm that that is what is happening to you? >> > > I use ~/.emacs.d/init.el under M$ Windoze and MacOSX, thus I can put all > Emacs related setting files in one ./emacs.d/ file. I confirm this works > well under two OSes above mentioned. > The case found by the original poster is when $HOME is not set in the environment. In Emacs 22 we default to the user specific APPDATA system directory, but we first check that C:\.emacs and C:\_emacs do not exist, in case the user used a previous version of Emacs that defaulted to C:\. The original poster had created C:\.emacs.d\init.el, but we do not check for this file when deciding whether to default to the old HOME location, since it is only supported since Emacs 22. --------------040300070404060805020907 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit CHENG Gao wrote:
*On Wed, 20 Sep 2006 21:58:48 -0400
* Richard Stallman <rms@gnu.org> climbed out of the dark hell and cried out:

  
Emacs ought to recognize ~/.emacs.d/init.el, on any system, when it does
not find .emacs.  If this does not work on Windows, it is a bug.
Could you confirm that that is what is happening to you?
    

I use ~/.emacs.d/init.el under M$ Windoze and MacOSX, thus I can put all
Emacs related setting files in one ./emacs.d/ file. I confirm this works
well under two OSes above mentioned.
  

The case found by the original poster is when $HOME is not set in the environment. In Emacs 22 we default to the user specific APPDATA system directory, but we first check that C:\.emacs and C:\_emacs do not exist, in case the user used a previous version of  Emacs that defaulted to C:\. The original poster had created C:\.emacs.d\init.el, but we do not check for this file when deciding whether to default to the old HOME location, since it is only supported since Emacs 22.


--------------040300070404060805020907-- --===============1557281396== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Emacs-devel mailing list Emacs-devel@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-devel --===============1557281396==--