From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Harald Joerg Newsgroups: gmane.emacs.help Subject: Re: specifying Windows filenames Date: Wed, 25 Jun 2003 09:55:59 +0200 Organization: Unseen University Sender: help-gnu-emacs-bounces+gnu-help-gnu-emacs=m.gmane.org@gnu.org Message-ID: References: <87el1kyh73.fsf@openbsd.agero.se> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: main.gmane.org 1056528656 12181 80.91.224.249 (25 Jun 2003 08:10:56 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Wed, 25 Jun 2003 08:10:56 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+gnu-help-gnu-emacs=m.gmane.org@gnu.org Wed Jun 25 10:10:38 2003 Return-path: Original-Received: from monty-python.gnu.org ([199.232.76.173]) by main.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 19V5EH-0002oF-00 for ; Wed, 25 Jun 2003 10:02:09 +0200 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.20) id 19V5Ch-0001NA-8d for gnu-help-gnu-emacs@m.gmane.org; Wed, 25 Jun 2003 04:00:31 -0400 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!newsfeed.icl.net!newsfeed.fjserv.net!newsfeed00.sul.t-online.de!t-online.de!newsfeed.r-kom.de!newsfeed.stueberl.de!news-FFM2.ecrc.net!newsfeed1.sbs.de!news.pdb.sbs.de!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 44 Original-NNTP-Posting-Host: 172.25.86.151 Original-X-Trace: dackel.pdb.sbs.de 1056527758 17963 172.25.86.151 (25 Jun 2003 07:55:58 GMT) Original-X-Complaints-To: abuse@siemens.de Original-NNTP-Posting-Date: Wed, 25 Jun 2003 07:55:58 +0000 (UTC) User-Agent: Gnus/5.1001 (Gnus v5.10.1) Emacs/21.2 (cygwin) Cancel-Lock: sha1:ACAzJZ0Juozsftk6UaNSI6XxpEc= Original-Xref: shelby.stanford.edu gnu.emacs.help:114713 Original-To: help-gnu-emacs@gnu.org X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1b5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Help: List-Post: List-Subscribe: , List-Archive: List-Unsubscribe: , Errors-To: help-gnu-emacs-bounces+gnu-help-gnu-emacs=m.gmane.org@gnu.org Xref: main.gmane.org gmane.emacs.help:11202 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:11202 jasonr (Jason Rumney) @ f2s.com writes: > Harald Joerg writes: > >> Sorry, I really should have checked this before. I've been fooled by >> the fact that cygwin _Emacs_ does not accept Windows notation. > > Really? The cygwin port is now merged into Emacs CVS, so > M-x report-emacs-bug > I hesitate to report such things as "bugs", nevertheless, even if every software which can be vanilla-installed from a cygwin mirror is obligated to accept DOS paths (Is it? That's OT here, of course). Here and then I install stuff from elsewhere and I have been accustomed to "`cygpath -u`" DOS paths if I find them. I've learnt now that I have been too careful for most cygwin stuff, but I think it is sensible to be defensive as a general approach. Just recently I have moved from NTEmacs to cygwin Emacs because I have been unable to resolve the path misunderstandings (e.g. regarding tempfiles) between NTEmacs and either Mailcrypt or bogofilter (the latter two built on cygwin). Hmm... maybe I should have asked here...? > [...] > I would expect the Cygwin version to have the following behaviour: > > (expand-file-name "c:/test") -> "/cygdrive/c/test" > (expand-file-name "c:\\test") -> "/cygdrive/c/test" > > > Does it do something different? I should have reported my Emacs version: GNU Emacs 21.2.1 (i686-pc-cygwin, X toolkit) of 2003-01-23 on DRACO, running on Win2000. (expand-file-name "c:/test") -> "/usr/haj/c:/test" (expand-file-name "c:\\test") -> "/usr/haj/c:\\test" (my cwd happens to be /usr/haj). Maybe CVS Emacs is different. -- Cheers, haj