delorie.com/archives/browse.cgi | search |
X-Recipient: | archive-cygwin AT delorie DOT com |
X-SWARE-Spam-Status: | Yes, hits=6.6 required=5.0 tests=BAYES_50,BOTNET,RCVD_IN_DNSWL_NONE,SPF_NEUTRAL |
X-Spam-Check-By: | sourceware.org |
Message-id: | <4F5DD987.4050502@jackson.io> |
Date: | Mon, 12 Mar 2012 07:09:59 -0400 |
From: | Ken Jackson <cygwin AT jackson DOT io> |
User-Agent: | Mozilla/5.0 (X11; Linux x86_64; rv:10.0.2) Gecko/20120217 Thunderbird/10.0.2 |
MIME-version: | 1.0 |
To: | cygwin AT cygwin DOT com |
Subject: | Re: Cygwin Emacs and windows paths |
References: | <1DDD8780-2F3A-4399-8D33-2029B69F7271 AT letterboxes DOT org> |
In-reply-to: | <1DDD8780-2F3A-4399-8D33-2029B69F7271@letterboxes.org> |
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 |
On 03/10/2012 01:17 AM, Leo wrote: > Now my normal Windows paths copied from Windows Explorer don't work > anymore in Emacs - and vice versa. I know I can use `cygpath` to > convert /on the command line/, but is there any integration for this > in Cygwin Emacs? I prefer to wrap everything in a shell script. This is the one I use, though I actually use "cygpath -w" because I still use NTemacs because I don't always start X. EVAL isn't needed but I make all my shell scripts work with -n or --dry-run so I can see what would happen. #!/bin/sh ARGS=(); EVAL=eval; EMACS=emacs; AMP='&' while [ $# -gt 0 ]; do case "$1" in -e|--existing) EMACS='emacsclient --no-wait'; AMP= ;; -n|-nn|--dry-run) EVAL='echo #' ;; -*|+*) ARGS[${#ARGS[*]}]="'$1'" ;; *) ARGS[${#ARGS[*]}]="'$(cygpath "$1")'" ;; esac shift done $EVAL $EMACS "${ARGS[@]}" "$AMP" -Ken Jackson -- 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 |