From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Robert Pollard Newsgroups: gmane.emacs.help Subject: Re: [NEWBIE] Error - Search for program: no such file or directory, ls Date: Tue, 16 Sep 2003 08:55:21 -0700 Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Message-ID: <2D182A0A-E85E-11D7-B783-000A957A7EA8@apple.com> References: <20030915223238.41480.qmail@web41905.mail.yahoo.com> NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 (Apple Message framework v552) Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1063727772 25890 80.91.224.253 (16 Sep 2003 15:56:12 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 16 Sep 2003 15:56:12 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Tue Sep 16 17:56:08 2003 Return-path: Original-Received: from monty-python.gnu.org ([199.232.76.173]) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 19zIBT-0001XD-00 for ; Tue, 16 Sep 2003 17:56:07 +0200 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.22) id 19zIB3-00077d-Cd for geh-help-gnu-emacs@m.gmane.org; Tue, 16 Sep 2003 11:55:41 -0400 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.22) id 19zIAo-00077X-F9 for help-gnu-emacs@gnu.org; Tue, 16 Sep 2003 11:55:26 -0400 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.22) id 19zIAm-00077M-Rt for help-gnu-emacs@gnu.org; Tue, 16 Sep 2003 11:55:25 -0400 Original-Received: from [17.254.0.51] (helo=mail-out2.apple.com) by monty-python.gnu.org with esmtp (Exim 4.22) id 19zIAm-00077J-G5 for help-gnu-emacs@gnu.org; Tue, 16 Sep 2003 11:55:24 -0400 Original-Received: from mailgate1.apple.com (A17-128-100-225.apple.com [17.128.100.225]) by mail-out2.apple.com (8.12.9/8.12.9) with ESMTP id h8GFtLiZ014041 for ; Tue, 16 Sep 2003 08:55:21 -0700 (PDT) Original-Received: from scv1.apple.com (scv1.apple.com) by mailgate1.apple.com (Content Technologies SMTPRS 4.2.1) with ESMTP id ; Tue, 16 Sep 2003 08:54:54 -0700 Original-Received: from apple.com ([17.101.117.23]) by scv1.apple.com (8.12.9/8.12.9) with ESMTP id h8GFt1sH014472; Tue, 16 Sep 2003 08:55:01 -0700 (PDT) Original-To: Kevin Rodgers , help-gnu-emacs@gnu.org In-Reply-To: <20030915223238.41480.qmail@web41905.mail.yahoo.com> X-Mailer: Apple Mail (2.552) X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.2 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: main.gmane.org gmane.emacs.help:12544 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:12544 Hey Kevin, Thanks for your time. I just have a couple of questions if you don't mind: My path is set to the where the ls program is located. I found this by using "which ls" and it located it in /bin. This path is defined in my PATH variable. So what is broken that prevent EMacs from finding the program? If ls-lisp.el is not loaded does it use file.el instead to find the programs? Thanks for your valuable time, Robert Pollard On Monday, September 15, 2003, at 03:32 PM, Kevin Rodgers wrote: > Robert Pollard wrote: >> The insert-directory-program has ls as the value. I also tried to get >> another listing and it came back with the same error except the >> program >> was df instead of ls. I have looking at the ls-lisp.el file but am >> stumped as to what is going on. > > Loading it simply overrides the normal definition of the > insert-directory > program, which usually uses the external ls program to insert directory > listings into a buffer. The ls-lisp.el version uses other Emacs > functions > instead. > >> I try to get the value of variables >> like ls-lisp-use-insert-directory-program or anything that starts with >> ls- and it comes up with no variable found. So, I loaded the >> ls-lisp.el library and the variables all of a sudden show up. >> ls-lisp-use-insert-directory-program has a value of nil. Should I set >> this to the directory where my ls, df, etc. commands are located? > > If you've got them installed, then that directory ought to be in > exec-path, > which on Unix is initialized from your PATH environment variable. But > once > you've loaded ls-lisp, the ls-lisp-use-insert-directory-program > prevents > the external ls program will be used (unless you reset it to t). > >> And, how do I get the library to load automatically? > > Most libraries do load automatically, via the ###autoload cookies that > are > used to generated the loaddefs.el file. But libraries like ls-lisp.el > that > overwrite function definitions have to be explicitly loaded like this: > > (require 'ls-lisp) > >> This OS X which has >> the lisp directory in a package. I believe there is something funky >> going on with this directory layout. > > Sorry, I can't help you with the Mac OS X issues. But I wouldn't jump > to > any conclusions about the directory layout yet... > > -- > Kevin > > > __________________________________ > Do you Yahoo!? > Yahoo! SiteBuilder - Free, easy-to-use web site design software > http://sitebuilder.yahoo.com >