From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 127245 invoked by alias); 20 Jan 2016 09:20:23 -0000 Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner@cygwin.com Mail-Followup-To: cygwin@cygwin.com Received: (qmail 127234 invoked by uid 89); 20 Jan 2016 09:20:23 -0000 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 Received: from smtp.ht-systems.ru (HELO smtp.ht-systems.ru) (78.110.50.177) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES256-GCM-SHA384 encrypted) ESMTPS; Wed, 20 Jan 2016 09:20:21 +0000 Received: from [95.165.144.62] (helo=darkdragon.lan) by smtp.ht-systems.ru with esmtpa (Exim 4.80.1) (envelope-from ) (Authenticated sender: postmaster@rootdir.org) id 1aLovy-0005Ew-VQ ; Wed, 20 Jan 2016 12:20:11 +0300 Received: from [192.168.1.10] (HELO daemon2.darkdragon.lan) by daemon2 (Office Mail Server 0.8.12 build 08053101) with SMTP; Wed, 20 Jan 2016 09:19:46 -0000 Date: Wed, 20 Jan 2016 12:19:00 -0000 From: Andrey Repin Reply-To: cygwin@cygwin.com Message-ID: <158550468.20160120121946@yandex.ru> To: Ken Brown , 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 X-SW-Source: 2016-01/txt/msg00236.txt.bz2 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