delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2012/03/10/17:37:11

X-Recipient: archive-cygwin AT delorie DOT com
X-SWARE-Spam-Status: No, hits=0.1 required=5.0 tests=AWL,BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,TW_YG
X-Spam-Check-By: sourceware.org
Mime-Version: 1.0 (Apple Message framework v1257)
Subject: Re: Cygwin Emacs and windows paths
From: Leo <leoslists AT letterboxes DOT org>
In-Reply-To: <4F5BD356.5060102@cornell.edu>
Date: Sun, 11 Mar 2012 09:36:46 +1100
Message-Id: <3DBF511E-8A68-4041-8B2A-84AF76A31A62@letterboxes.org>
References: <1DDD8780-2F3A-4399-8D33-2029B69F7271 AT letterboxes DOT org> <4F5B6334 DOT 1090503 AT cornell DOT edu> <4F5BD356 DOT 5060102 AT cornell DOT edu>
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-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
X-MIME-Autoconverted: from quoted-printable to 8bit by delorie.com id q2AMb6pl021638

On 11/03/2012, at 9:19 AM, Ken Brown wrote:

>> On 11/03/2012, at 1:20 AM, Ken Brown wrote:
>> 
>> This can be too hard though: The problem might be to determine when the clipboard is copied for use outside emacs and when for use inside emacs. But I'll try at least to make some lisp code to convert per key-binding. Do you thinking it's advisable to call cygpath for doing the conversion? Are there some internal bindings already for this in Cygwin Emacs?
> 
> Please reply to the list instead of directly to me.  To avoid messing up the threading in the mailing list archives, I'm replying to the original thread, with your message to me pasted in.

Extremely sorry about this. With Apple Mail I use a "modern" Mail client not anymore tailored to classic mailing lists - so I have to set things like Plain-text setting, 70-character wrapping and correct reply-to by hand…

> I do think it's advisable to call cygpath, and I don't know of any bindings in the code that you can use.  But I had to do something similar once in order to make browse-url work properly on Cygwin.  (In that case I had to convert from POSIX paths to Windows paths.)  Take a look at the Cygwin-specific code in the function browse-url-file-url in lisp/net/browse-url.el.  You may be able to use a similar idea.
> 

Thanks heaps for this! I had a quick look at browse-url.el and it has the right stuff in there. Cool!

Cheers, Leo

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