delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2009/05/13/11:45:31

X-Recipient: archive-cygwin AT delorie DOT com
X-SWARE-Spam-Status: No, hits=-1.4 required=5.0 tests=AWL,BAYES_00,SPF_HELO_PASS,SPF_PASS
X-Spam-Check-By: sourceware.org
Message-ID: <23524451.post@talk.nabble.com>
Date: Wed, 13 May 2009 08:45:16 -0700 (PDT)
From: Marc Girod <marc DOT girod AT gmail DOT com>
To: cygwin AT cygwin DOT com
Subject: Re: insert-directory function in Gnu emacs returns nil
In-Reply-To: <4A0AE529.2000506@cornell.edu>
MIME-Version: 1.0
References: <23523466 DOT post AT talk DOT nabble DOT com> <4A0AE529 DOT 2000506 AT cornell DOT edu>
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


Ken Brown-6 wrote:
> 
> I doubt if anyone on the cygwin list is going to be able to help you 
> debug this.
> 
Unless the problem is in fact with the 1.7 root...

I have 1.5 installed as c:/cygwin and 1.7 as c:/cygwin2.
Now running 1.7:

emacs> df /tmp
Filesystem           1K-blocks      Used Available Use% Mounted on
C:/cygwin2            58612732  40769352  17843380  70% /

The insert-dired function seems to invoke ls as follows,
from my "*scratch*" buffer:

(call-process "/usr/bin/ls" nil t "-la" "--" "/tmp")
0

(call-process "/usr/bin/ls" nil t "-la" "--" "/tmp/foo")
/usr/bin/ls: cannot access /tmp/foo: No such file or directory
2

(call-process "/usr/bin/ls" nil t "-la" "--" "/cygdrive/c/cygwin/tmp/foo")
/cygdrive/c/cygwin/tmp/foo
0

So, ls finds something under the 1.5 root, but the 1.7 ones seems empty.



> But you might try a more recent version of emacs to see if 
> you still have the problem.  I've built emacs 23 (still in pre-release 
> testing) for cygwin-1.7, and it works fine for me except for a minor bug 
> that's easy to work around:
> 
> 	http://cygwin.com/ml/cygwin-apps/2009-04/msg00116.html
> 

Excellent. Of course I wish to try this.
Thanks,
Marc
-- 
View this message in context: http://www.nabble.com/insert-directory-function-in-Gnu-emacs-returns-nil-tp23523466p23524451.html
Sent from the Cygwin list mailing list archive at Nabble.com.


--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019