delorie.com/archives/browse.cgi | search |
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-4.tower-146.messagelabs.com!1255968971!14066620!1 |
X-StarScan-Version: | 6.1.3; banners=-,-,- |
MIME-Version: | 1.0 |
x-cr-puzzleid: | {84E5416C-96C6-4A2A-B913-917EE555B6D9} |
x-cr-hashedpuzzle: | BM+F Bdtb B/sb DG18 Dsyp FBdf FN6x FwUp F+Fs GCum HgVL HqlT H/yB IX1B J4Bo Kwht;1;YwB5AGcAdwBpAG4AQABjAHkAZwB3AGkAbgAuAGMAbwBtAA==;Sosha1_v1;7;{84E5416C-96C6-4A2A-B913-917EE555B6D9};ZABrADAANgA4AHgAQABhAHQAdAAuAGMAbwBtAA==;Mon, 19 Oct 2009 16:15:52 GMT;SABlAGwAcAAgAGcAZQB0AHQAaQBuAGcAIABlAG0AYQBjAHMAYwBsAGkAZQBuAHQAIAB3AG8AcgBrAGkAbgBnACAAZgByAG8AbQAgAEUAYwBsAGkAcABzAGUA |
Subject: | Help getting emacsclient working from Eclipse |
Date: | Mon, 19 Oct 2009 09:15:52 -0700 |
Message-ID: | <E0529A8FFC2C9143A5F1BB9A89101D0606DBBDCC@BD01MSXMB018.US.Cingular.Net> |
From: | "KARR, DAVID (ATTCINW)" <dk068x AT att 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-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 |
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. As I got Textpad to work with this, it's clear that the wrinkle with emacsclient is related to Cygwin, or perhaps emacsclient. I've tried numerous variations of the command line, but I still haven't found a way to communicate the entire full path (which has spaces in it) to emacsclient. For instance, the command line which loads it into Textpad is just the following ("{path-slashes}" is a marker for PathTools to substitute the file path with forward slashes): cmd /C start textpad "{path-slashes}" When I try to get this to work with emacsclient, nothing I have tried ends up getting the full path to the file to emacsclient. My current command line is this: c:\cygwin\bin/bash -l -c "c:/cygwin/home/<myuid>/bin/emacsclienttocyg "{path-slashes}"" where "emacsclienttocyg" is this: #! /bin/bash set -x path=3D"$@" emacsclient -n -a textpad "$(cygpath -u "$path")" When I run this command line in Eclipse, I see the following in the Eclipse console: ------------- c:\cygwin\bin/bash -l -c "c:/cygwin/home/<myuid>/bin/emacsclienttocyg "C:/Documents and Settings/<myuid>/<remainder of path to file>"" + path=3DC:/Documents ++ cygpath -u C:/Documents + emacsclient -n -a textpad /c/Documents ------------- As you can see, only the first word of the path gets set into the "path" variable. I've tried numerous variations of quoting in the command line, all of which fail for different reasons. I'd appreciate any ideas. -- 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 |