> -----Original Message----- > From: cygwin-ow...@cygwin.com [mailto:cygwin-ow...@cygwin.com] On > Behalf Of KARR, DAVID (ATTCINW) > > I could use some help getting through a quoting problem. > > I'm using Cygwin 1.5.25, Emacs 23.0.92.1, and Eclipse 3.5.1. > > There's a "PathTools" plugin for Eclipse that lets me specify a command > line to open a file in an external editor, or open a shell in the > directory the file is in. I have no trouble with the latter, but the > former gives me trouble when I try to use emacsclient to load the file > in my running Emacs. I was able to get it to work with Textpad, but > I'd > prefer to get emacsclient/emacs working.
Well, in any case, I've managed to get this working, although it required both a BAT script and a Bash script. Weird. With "emacsclientbat.bat": -------------- @echo off c:\cygwin\bin\bash -l -c "emacsclienttocyg "%1"" -------------- And "emacsclienttocyg": -------------- #! /bin/bash path="$@" emacsclient -n -a textpad "$(cygpath -u "$path")" ------------- And the resulting command line: c:\cygwin\home\<myuid>\bin\emacsclientbat.bat "{path-slashes}" -- 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