From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 13756 invoked by alias); 27 Jul 2019 18:27:50 -0000 Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner@cygwin.com Mail-Followup-To: cygwin@cygwin.com Received: (qmail 13749 invoked by uid 89); 27 Jul 2019 18:27:50 -0000 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 Received: from smtp-out-no.shaw.ca (HELO smtp-out-no.shaw.ca) (64.59.134.13) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Sat, 27 Jul 2019 18:27:48 +0000 Received: from kylheku.com ([70.79.163.252]) by shaw.ca with ESMTPA id rRQ0hdvgpUIS2rRQ1hOqN7; Sat, 27 Jul 2019 12:27:46 -0600 Received: from www-data by kylheku.com with local (Exim 4.72) (envelope-from <920-082-4242@kylheku.com>) id 1hrRQ0-0004u4-JI; Sat, 27 Jul 2019 11:27:44 -0700 To: cygwin@cygwin.com Subject: RE: Interest in Emacs patched to handle Windows =?UTF-8?Q?=20paths=3F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: quoted-printable Date: Sat, 27 Jul 2019 18:27:00 -0000 From: Kaz Kylheku <920-082-4242@kylheku.com> Cc: michael.soegtrop@intel.com Message-ID: <23a9789b9880e266b34f92c2728cdfa4@mail.kylheku.com> X-Sender: 920-082-4242@kylheku.com User-Agent: Roundcube Webmail/0.9.2 X-IsSubscribed: yes X-SW-Source: 2019-07/txt/msg00240.txt.bz2 On 2019-07-26 13:08, Soegtrop, Michael wrote: > Dear Kaz, >=20 >> You might be interested in the Cygnal project: >> http://www.kylheku.com/cygnal/ >=20 > 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=20 a POSIX-like system interface, but which takes Windows paths. If the=20 program manipulates paths, that has to be ported/extended to support=20 Windows paths. What it provides is that the open() system call and others understand=20 drive letter names and such. chdir() understands the concept of a per-drive current working=20 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=20 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