X-Recipient: archive-cygwin AT delorie DOT com X-SWARE-Spam-Status: No, hits=-2.2 required=5.0 tests=AWL,BAYES_00 X-Spam-Check-By: sourceware.org X-VirusChecked: Checked X-Env-Sender: dk068x AT att DOT com X-Msg-Ref: server-9.tower-120.messagelabs.com!1255978053!49508953!1 X-StarScan-Version: 6.1.3; banners=-,-,- MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable x-cr-puzzleid: {C17C399D-DBF3-46EB-9C1C-974053D0AC0F} x-cr-hashedpuzzle: GhM= BS8b Ca3X Dcfb E4FF FXpe Fl9Z Frbf F7E/ GO5z HCqA HqdZ ILu7 JXQH K28J MGus;1;YwB5AGcAdwBpAG4AQABjAHkAZwB3AGkAbgAuAGMAbwBtAA==;Sosha1_v1;7;{C17C399D-DBF3-46EB-9C1C-974053D0AC0F};ZABrADAANgA4AHgAQABhAHQAdAAuAGMAbwBtAA==;Mon, 19 Oct 2009 18:47:32 GMT;UgBFADoAIABIAGUAbABwACAAZwBlAHQAdABpAG4AZwAgAGUAbQBhAGMAcwBjAGwAaQBlAG4AdAAgAHcAbwByAGsAaQBuAGcAIABmAHIAbwBtACAARQBjAGwAaQBwAHMAZQA= Content-class: urn:content-classes:message Subject: RE: Help getting emacsclient working from Eclipse Date: Mon, 19 Oct 2009 11:47:32 -0700 Message-ID: In-Reply-To: References: From: "KARR, DAVID (ATTCINW)" To: "KARR, DAVID (ATTCINW)" , X-IsSubscribed: yes Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com > -----Original Message----- > From: cygwin-owner AT cygwin DOT com [mailto:cygwin-owner AT cygwin DOT com] On > Behalf Of KARR, DAVID (ATTCINW) >=20 > I could use some help getting through a quoting problem. >=20 > I'm using Cygwin 1.5.25, Emacs 23.0.92.1, and Eclipse 3.5.1. >=20 > 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=3D"$@" emacsclient -n -a textpad "$(cygpath -u "$path")" ------------- And the resulting command line: c:\cygwin\home\\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