delorie.com/archives/browse.cgi | search |
X-Recipient: | archive-cygwin AT delorie DOT com |
X-SWARE-Spam-Status: | No, hits=-1.0 required=5.0 tests=BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,SARE_MSGID_LONG45,TW_YG,T_TO_NO_BRKTS_FREEMAIL |
X-Spam-Check-By: | sourceware.org |
MIME-Version: | 1.0 |
In-Reply-To: | <4BE1C039.8030107@gmail.com> |
References: | <83sk66gqb7 DOT fsf AT garydjones DOT name> <4BE1C039 DOT 8030107 AT gmail DOT com> |
Date: | Wed, 5 May 2010 13:42:27 -0600 |
Message-ID: | <h2p22119db31005051242g30e9723dna903022ee71ebc5f@mail.gmail.com> |
Subject: | Re: cygpath from emacs |
From: | Steven Collins <spc DOT for DOT nbc AT gmail DOT com> |
To: | cygwin AT cygwin DOT com |
X-IsSubscribed: | yes |
Mailing-List: | contact cygwin-help AT cygwin DOT com; run by ezmlm |
List-Id: | <cygwin.cygwin.com> |
List-Unsubscribe: | <mailto:cygwin-unsubscribe-archive-cygwin=delorie DOT com AT cygwin DOT com> |
List-Subscribe: | <mailto:cygwin-subscribe AT cygwin DOT com> |
List-Archive: | <http://sourceware.org/ml/cygwin/> |
List-Post: | <mailto:cygwin AT cygwin DOT com> |
List-Help: | <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs> |
Sender: | cygwin-owner AT cygwin DOT com |
Mail-Followup-To: | cygwin AT cygwin DOT com |
Delivered-To: | mailing list cygwin AT cygwin DOT com |
Amazingly enough I solved this problem for myself just yesterday. ;; Add to your .emacs file. ;; Handle locating files containing errors for compilers that report using DOS style paths. (when (eq system-type 'cygwin) =A0 (require 'compile) =A0 (setq compilation-parse-errors-filename-function =A0=A0 =A0'(lambda (path) =A0=A0 =A0=A0=A0 (replace-regexp-in-string "\n" "" =A0=A0 =A0=A0=A0=A0=A0=A0 (shell-command-to-string (concat "cygpath --unix = '" path "'")))))) On Wed, May 5, 2010 at 1:00 PM, Dave Korn <dave DOT korn DOT cygwin AT googlemail DOT com> wrote: > > On 05/05/2010 19:24, Gary wrote: > > I often find myself running a piece of software from within emacs that > > expects, and spits out, Windows-style paths ("C:\..."). Handling sending > > it Windows paths based on the Cygwin ones is fine, I just use a > > script. > > > > Of course, the tool returning Windows paths is a PITA, because it means > > I can't do M-x next-error :( Is there a solution, a way to "capture > > them" and transform them before they end up in the emacs buffer, maybe? > > I feel I should be able to work this out myself, but my brain refuses to > > bend around it :( > > =A0So you have a script that transforms the paths on the command-line and > launches the app... why doesn't the script /also/ capture the output and > transform it back? > > =A0 =A0cheers, > =A0 =A0 =A0DaveK > > -- > Problem reports: =A0 =A0 =A0 http://cygwin.com/problems.html > FAQ: =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 http://cygwin.com/faq/ > Documentation: =A0 =A0 =A0 =A0 http://cygwin.com/docs.html > Unsubscribe info: =A0 =A0 =A0http://cygwin.com/ml/#unsubscribe-simple > -- 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
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |