From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.help Subject: Re: is the ls-lisp package switched on or off? Date: 01 Dec 2003 08:10:29 +0200 Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Message-ID: References: Reply-To: Eli Zaretskii NNTP-Posting-Host: deer.gmane.org X-Trace: sea.gmane.org 1070259108 10314 80.91.224.253 (1 Dec 2003 06:11:48 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Mon, 1 Dec 2003 06:11:48 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Mon Dec 01 07:11:45 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 1AQhHd-000715-00 for ; Mon, 01 Dec 2003 07:11:45 +0100 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.24) id 1AQiCh-0008Lw-2e for geh-help-gnu-emacs@m.gmane.org; Mon, 01 Dec 2003 02:10:43 -0500 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.24) id 1AQiCP-0008JH-IX for help-gnu-emacs@gnu.org; Mon, 01 Dec 2003 02:10:25 -0500 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.24) id 1AQiBt-0007qm-Eq for help-gnu-emacs@gnu.org; Mon, 01 Dec 2003 02:10:24 -0500 Original-Received: from [207.232.27.5] (helo=WST0054) by monty-python.gnu.org with asmtp (Exim 4.24) id 1AQiBs-0007lw-Um for help-gnu-emacs@gnu.org; Mon, 01 Dec 2003 02:09:53 -0500 Original-To: help-gnu-emacs@gnu.org In-reply-to: (halloleo@noospaam.myrealbox.com) 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:14775 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:14775 > From: "leo" > Newsgroups: gnu.emacs.help > Date: Mon, 1 Dec 2003 15:01:36 +1100 > > how can i (inside emacs) find out wether the ls-lisp package is in use or > not? Every ELisp package has a line near its end saying this: (provide 'package-name) This is so you could make a test of whether the package has been loaded into Emacs, like this: (featurep 'package-name) This expression returns t if the package was loaded, nil otherwise. So in your case, (featurep 'ls-lisp) will supply the answer. > i just found out the hard way, hid the excuteable and dired was still able > to produce a directory. > > so i guess it uses ls-lisp (or did it uses ls-lisp only beacuse it couln't > find the ls command?) I'm guessing that you are running on Windows. Emacs on Windows uses ls-lisp by default, since most Windows machines don't have an external `ls' command. > but is there a switch or so in emacs? If you want to turn off the Lisp emulation of `ls', customize the value of the variable `ls-lisp-use-insert-directory-program': if set to non-nil, it will cause Emacs to use the external `ls'. (However, I don't recommend to do that if your `ls' is a Cygwin program, since Cygwin programs have compatibility issues with Emacs.)