delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2009/10/19/14:47:46

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
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=
Subject: RE: Help getting emacsclient working from Eclipse
Date: Mon, 19 Oct 2009 11:47:32 -0700
Message-ID: <E0529A8FFC2C9143A5F1BB9A89101D0606DBBF95@BD01MSXMB018.US.Cingular.Net>
In-Reply-To: <E0529A8FFC2C9143A5F1BB9A89101D0606DBBDCC@BD01MSXMB018.US.Cingular.Net>
References: <E0529A8FFC2C9143A5F1BB9A89101D0606DBBDCC AT BD01MSXMB018 DOT US DOT Cingular DOT Net>
From: "KARR, DAVID (ATTCINW)" <dk068x AT att DOT com>
To: "KARR, DAVID (ATTCINW)" <dk068x AT att DOT com>, <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

> -----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\<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

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019