From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: Re: next-error fails to find file on Cygwin with recursive make Date: Fri, 25 Apr 2008 17:39:30 +0300 Message-ID: References: <4811D3FA.9000802@pobox.com> Reply-To: Eli Zaretskii NNTP-Posting-Host: lo.gmane.org X-Trace: ger.gmane.org 1209134397 30952 80.91.229.12 (25 Apr 2008 14:39:57 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 25 Apr 2008 14:39:57 +0000 (UTC) Cc: bug-gnu-emacs@gnu.org To: Gareth Rees Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Fri Apr 25 16:40:27 2008 connect(): Connection refused Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1JpP6B-0003Ie-2i for geb-bug-gnu-emacs@m.gmane.org; Fri, 25 Apr 2008 16:40:27 +0200 Original-Received: from localhost ([127.0.0.1]:50107 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JpP5U-0001TK-Vr for geb-bug-gnu-emacs@m.gmane.org; Fri, 25 Apr 2008 10:39:45 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1JpP5O-0001S4-JK for bug-gnu-emacs@gnu.org; Fri, 25 Apr 2008 10:39:38 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1JpP5N-0001Rn-M8 for bug-gnu-emacs@gnu.org; Fri, 25 Apr 2008 10:39:38 -0400 Original-Received: from [199.232.76.173] (port=33157 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JpP5N-0001Ri-JW for bug-gnu-emacs@gnu.org; Fri, 25 Apr 2008 10:39:37 -0400 Original-Received: from mtaout6.012.net.il ([84.95.2.16]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1JpP5N-0006Xk-25 for bug-gnu-emacs@gnu.org; Fri, 25 Apr 2008 10:39:37 -0400 Original-Received: from HOME-C4E4A596F7 ([83.130.1.82]) by i-mtaout6.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0JZV00K9RYPGUJI0@i-mtaout6.012.net.il> for bug-gnu-emacs@gnu.org; Fri, 25 Apr 2008 17:53:46 +0300 (IDT) In-reply-to: <4811D3FA.9000802@pobox.com> X-012-Sender: halo1@inter.net.il X-detected-kernel: by monty-python.gnu.org: Solaris 10 (1203?) X-BeenThere: bug-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:17882 Archived-At: > Date: Fri, 25 Apr 2008 13:52:10 +0100 > From: Gareth Rees > Cc: Gareth Rees > > Find this error in (default src/test.c): c:/cygdrive/c/tmp/test > > The reason it can't find the file is that > `compilation-directory-matcher' has matched the recursive make's > "Entering directory" line, which contains an absolute path name in > Cygwin syntax; and then `compilation-find-file' has called > `expand-file-name', which has converted `/cygdrive/c/tmp/test' into the > incorrect `c:/cygdrive/c/tmp/test' instead of the correct `c:/tmp/test'. > > I am aware that I can work around this problem by advising > `expand-file-name' to recognize Cygwin path names and convert them to > path names that Emacs recognizes, for example like this: > > (defadvice expand-file-name (before cygpath-convert-to-emacs-path activate) > (let ((name (ad-get-arg 0))) > (when (string-match "^/cygdrive/\\([a-z]\\)\\(/.*\\)" name) > (ad-set-arg 0 (concat (match-string 1 name) ":" (match-string 2 > name)))))) > > However, it would be nice if recursive make in Cygwin worked in Emacs > out of the box. It does, if you use the Cygwin build of Emacs.