delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2001/01/12/15:36:29

Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT sources DOT redhat DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT sources DOT redhat DOT com>
List-Help: <mailto:cygwin-help AT sources DOT redhat DOT com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner AT sources DOT redhat DOT com
Delivered-To: mailing list cygwin AT sources DOT redhat DOT com
Message-Id: <4.3.1.2.20010112145450.02293a10@pop.ma.ultranet.com>
X-Sender: lhall AT pop DOT ma DOT ultranet DOT com
X-Mailer: QUALCOMM Windows Eudora Version 4.3.1
Date: Fri, 12 Jan 2001 14:56:14 -0500
To: Daniel Barclay <Daniel DOT Barclay AT digitalfocus DOT com>
From: "Larry Hall (RFK Partners, Inc)" <lhall AT rfk DOT com>
Subject: Re: how to set CYGWIN variable for Emacs
Cc: cygwin AT sourceware DOT cygnus DOT com
In-Reply-To: <3A5F5EA5.F980F5CD@digitalfocus.com>
References: <4 DOT 3 DOT 1 DOT 2 DOT 20010112111814 DOT 02174c28 AT pop DOT ma DOT ultranet DOT com>
Mime-Version: 1.0

At 02:44 PM 1/12/2001, Daniel Barclay wrote:
>"Larry Hall (RFK Partners, Inc)" wrote:
> > 
> > At 11:12 AM 1/12/2001, Daniel Barclay wrote:
> > >What's the recommended way to set the CYGWIN environment variable
> > >when running in an NTEmacs shell buffer?
> > >
> > >The CygWin FAQ gives instructions at
> > >http://sources.redhat.com/cygwin/faq/faq.html#SEC54:
> > >
>...
> > >         (setq shell-file-name "bash")
> > >         (setenv "SHELL" shell-file-name)
> > >         (setq explicit-shell-file-name shell-file-name)
> > >         ;;
>...
> > >However, this seems to run bash directly, bypassing the cygwin.bat
> > >file.
> > >
> > >Should Emacs run cygwin.bat directly?  Should the CYGWIN variable be
> > >set in some place other than cygwin.bat (e.g., in Emacs or in the
> > >NT environment) so that it gets set even if cygwin.bat isn't run?
> > 
> > Some of the settings in CYGWIN are read by cygwin1.dll only at DLL
> > initialization time.  As a result, it is generally recommended that you
> > set CYGWIN *before* any Cygwin-dependent application runs (i.e. so that
> > the DLL is not loaded and the changes take affect when the next app is
> > run).  This is really the only rule about how and where CYGWIN should be
> > set.  Feel free to set it in your control panel (on NT/W2K) or autoexec.bat
> > (on Win 9x's) if you want.
>
>Actually, part of what I was asking was this:  Should Emacs should 
>call cygwin.bat (instead of calling bash directly)?
>
>Daniel



It doesn't have to if you make sure that everything that cygwin.bat did
is done before you run Emacs and/or you know what you're doing.  YMMV.



Larry Hall                              lhall AT rfk DOT com
RFK Partners, Inc.                      http://www.rfk.com
118 Washington Street                   (508) 893-9779 - RFK Office
Holliston, MA 01746                     (508) 893-9889 - FAX



--
Want to unsubscribe from this list?
Check out: http://cygwin.com/ml/#unsubscribe-simple

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019