delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2019/07/27/14:28:49

X-Recipient: archive-cygwin AT delorie DOT com
DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id
:list-unsubscribe:list-subscribe:list-archive:list-post
:list-help:sender:to:subject:mime-version:content-type
:content-transfer-encoding:date:from:cc:message-id; q=dns; s=
default; b=tpraG5dq/huBv6FkDqZUM9fDp75gUqYgX3blod0j7SbzlyeTabnEr
mfh/L5OO7KBk55hCI8iFjzacIZhmVH3G4pOoOtzM/8Llp/uovm9cxG1Jb7f/IUkO
eDn0tKmmZqY4EzRwJWTnrp9cWvfEImDY9I6W15uBoxDcUfNe+BpG88=
DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id
:list-unsubscribe:list-subscribe:list-archive:list-post
:list-help:sender:to:subject:mime-version:content-type
:content-transfer-encoding:date:from:cc:message-id; s=default;
bh=YjY3sUo0diysmq8AZwlVYY0MnsQ=; b=uXTR7vyNtI5VUtlSfiemi7PcDCfm
bHiQdRXUfi+PGjcQt6XwRzmQqEEQM3eVu7kvjHDGl0PY0ag41iKzqt6QHd/epcai
72MIkjeahrLlExtbLM15OpP1oHoqv7Nn5FrRwbQdDe0mLJ/KoBiJ4wsxuV1jFGv8
qTrvVlticJLsb7o=
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
Authentication-Results: sourceware.org; auth=none
X-Spam-SWARE-Status: No, score=-1.2 required=5.0 tests=BAYES_00,FROM_STARTS_WITH_NUMS,RCVD_IN_DNSWL_NONE,SPF_PASS autolearn=no version=3.3.1 spammy=H*u:0.9.2, H*UA:0.9.2, lisp, H*r:4.72
X-HELO: smtp-out-no.shaw.ca
To: cygwin AT cygwin DOT com
Subject: RE: Interest in Emacs patched to handle Windows =?UTF-8?Q?=20paths=3F?=
MIME-Version: 1.0
Date: Sat, 27 Jul 2019 11:27:44 -0700
From: Kaz Kylheku <920-082-4242 AT kylheku DOT com>
Cc: michael DOT soegtrop AT intel DOT com
Message-ID: <23a9789b9880e266b34f92c2728cdfa4@mail.kylheku.com>
X-Sender: 920-082-4242 AT kylheku DOT com
User-Agent: Roundcube Webmail/0.9.2
X-IsSubscribed: yes
X-MIME-Autoconverted: from quoted-printable to 8bit by delorie.com id x6RISOw2014998

On 2019-07-26 13:08, Soegtrop, Michael wrote:
> Dear Kaz,
> 
>> You might be interested in the Cygnal project:
>> http://www.kylheku.com/cygnal/
> 
> from your description I would think this doesn't work for Emacs. Emacs
> has its own functions for path management, e.g. to decide what an
> absolute path is.

Yes, like this:   :)

   C:\Users\kaz>txr
   This is the TXR Lisp interactive listener of TXR 221.
   Quit with :quit or Ctrl-D on empty line. Ctrl-X ? for cheatsheet.
   1> (abs-path-p "C:\\foo")
   t
   2> (abs-path-p "C:foo")
   nil
   3> (abs-path-p "/foo")
   t

Cygnal is not a magic fix for programs that manipulate path; it provides 
a POSIX-like system interface, but which takes Windows paths. If the 
program manipulates paths, that has to be ported/extended to support 
Windows paths.

What it provides is that the open() system call and others understand 
drive letter names and such.

chdir() understands the concept of a per-drive current working 
directory, and the "currently logged drive". Check this out:

   4> (chdir "f:") ;; basically a bare interface to the chdir syscall
   t
   5> (pwd) ;; wrapper for getcwd
   "F:/"
   6> (chdir "c:")
   t
   7> (pwd)
   "C:/Users/kaz"
   8>

If you want a program ported to Windows via Cygwin to understand native 
conventions, Cygnal goes a long way.


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