X-Recipient: archive-cygwin@delorie.com
DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id
	:list-unsubscribe:list-subscribe:list-archive:list-post
	:list-help:sender:date:from:reply-to:message-id:to:subject
	:in-reply-to:references:mime-version:content-type
	:content-transfer-encoding; q=dns; s=default; b=PEb/qNkmPywS9kBw
	tVEu2oTcbCtTsP6G5RhwRRVc3lrDRbOEgFxrduSGROZZOQ5YuiXFkz0av16JIbKu
	l43tc2zgPVXW6j27Xctx+v2OVzEO/TtJXRNiBkf4+l0FdS6Fd5URSsTXMKaIYkYm
	V+zY+MNv4ReeSg/ELpxqCOZbJNM=
DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id
	:list-unsubscribe:list-subscribe:list-archive:list-post
	:list-help:sender:date:from:reply-to:message-id:to:subject
	:in-reply-to:references:mime-version:content-type
	:content-transfer-encoding; s=default; bh=97wkKpkO9GMNL5C2IHjqAh
	NkVWM=; b=a3OM1kg3flhaOtoORC55fHsKr6c4oawo/p7acWsVBaSQ/wmEGihSTP
	JiBuklGjGx+E3vBV4edsfKYLCfus4+xDd40Kh9DCO0wiKWgYd/bFIy5tg7rE+yhW
	IfpMyZUA0gXy22Ql7ZGeGPGh94Uj72PAVVYIxczXAjygTx7RFG44Q=
Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com
Authentication-Results: sourceware.org; auth=none
X-Virus-Found: No
X-Spam-SWARE-Status: Yes, score=5.3 required=5.0 tests=AWL,BAYES_50,FREEMAIL_FROM,KAM_THEBAT,RCVD_IN_PSBL,SPF_SOFTFAIL autolearn=no version=3.3.2 spammy=H*UA:Bat!, H*x:Bat!, H*x:Home, H*UA:Home
X-HELO: smtp.ht-systems.ru
Date: Wed, 20 Jan 2016 12:19:46 +0300
From: Andrey Repin <anrdaemon@yandex.ru>
Reply-To: cygwin@cygwin.com
Message-ID: <158550468.20160120121946@yandex.ru>
To: Ken Brown <kbrown@cornell.edu>, cygwin@cygwin.com
Subject: Re: Any progress on "Fork issues ith long command lines and long $PATH"?
In-Reply-To: <569EE230.2060600@cornell.edu>
References: <569E92D1.9030506@cornell.edu>   <641659872.6133623.1453246485856.JavaMail.yahoo@mail.yahoo.com>  <569EE230.2060600@cornell.edu>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
X-IsSubscribed: yes

Greetings, Ken Brown!

>> (2) I was using $USERPROFILE as an example. We have dozens of these
>> environment variables pointing to dozens directories. They enable us to
>> type in the same file name to emacs's find file (ctrl-x-ctrl-f) regardless
>> of who is logged in or which computer we are logged into (assuming that
>> every account has the same directory structure and propertly defined
>> environment variables).  Yes we can manually translate them at a bash
>> prompt but this is a lot more typing, cutting and pasteing. We also share
>> the same .emacs file that contains thousands of file names that contain
>> these environment variables. We will really missing feature of native
>> emacs.

> The fact that C-x C-f expands environment variables is not a special 
> feature of native Windows emacs.  But the expansion has to yield a valid 
> file name.  In the case of Cygwin emacs, that means a Posix path.

> Maybe you could write a script that uses cygpath to convert the relevant 
> environment variables to Posix paths, and then call this script from 
> your .bashrc.

I think it would be easier to just set Cygwin to use $USERPROFILE as $HOME.
Then $HOME would be a POSIX path you can use in the emacs config.


-- 
With best regards,
Andrey Repin
Wednesday, January 20, 2016 12:18:43

Sorry for my terrible english...


--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple

