all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: "leo" <halloleo@noospaam.myrealbox.com>
Subject: Re: is the ls-lisp package switched on or off?
Date: Tue, 2 Dec 2003 14:35:42 +1100	[thread overview]
Message-ID: <bqh19j$1ecc$1@otis.netspace.net.au> (raw)
In-Reply-To: mailman.835.1070262627.399.help-gnu-emacs@gnu.org

thanks a lot for your detailed reply!

cheers, leo

"Eli Zaretskii" <eliz@elta.co.il> wrote in message
news:mailman.835.1070262627.399.help-gnu-emacs@gnu.org...
> > From: "leo" <halloleo@noospaam.myrealbox.com>
> > 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.)
>
>
>

      parent reply	other threads:[~2003-12-02  3:35 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-12-01  4:01 is the ls-lisp package switched on or off? leo
2003-12-01  6:10 ` Eli Zaretskii
     [not found] ` <mailman.835.1070262627.399.help-gnu-emacs@gnu.org>
2003-12-01 19:36   ` Stefan Monnier
2003-12-02  3:45     ` leo
2003-12-02  8:13     ` Eli Zaretskii
2003-12-02 16:57     ` Eli Zaretskii
2003-12-02  3:35   ` leo [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='bqh19j$1ecc$1@otis.netspace.net.au' \
    --to=halloleo@noospaam.myrealbox.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.