all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Eli Zaretskii <eliz@gnu.org>
To: Gareth Rees <gareth.rees@pobox.com>
Cc: bug-gnu-emacs@gnu.org
Subject: Re: next-error fails to find file on Cygwin with recursive make
Date: Fri, 25 Apr 2008 17:39:30 +0300	[thread overview]
Message-ID: <uskxa80d9.fsf@gnu.org> (raw)
In-Reply-To: <4811D3FA.9000802@pobox.com>

> Date: Fri, 25 Apr 2008 13:52:10 +0100
> From: Gareth Rees <gareth.rees@pobox.com>
> Cc: Gareth Rees <gareth.rees@pobox.com>
> 
>     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.




      parent reply	other threads:[~2008-04-25 14:39 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-04-25 12:52 next-error fails to find file on Cygwin with recursive make Gareth Rees
2008-04-25 13:40 ` Stefan Monnier
2008-04-25 15:24   ` Drew Adams
2008-04-25 17:40   ` Gareth Rees
2008-04-25 14:39 ` Eli Zaretskii [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=uskxa80d9.fsf@gnu.org \
    --to=eliz@gnu.org \
    --cc=bug-gnu-emacs@gnu.org \
    --cc=gareth.rees@pobox.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.