From: "B. T. Raven" <ecinmn@alcisp.com>
Subject: Re: Checking whether a list contains a particular element
Date: Sun, 16 Jul 2006 15:19:05 -0500 [thread overview]
Message-ID: <d0bd$44ba9f45$49f11c5$2580@DIALUPUSA.NET> (raw)
In-Reply-To: mailman.4145.1153076026.9609.help-gnu-emacs@gnu.org
"Peter Dyballa" <Peter_Dyballa@Web.DE> wrote in message
news:mailman.4145.1153076026.9609.help-gnu-emacs@gnu.org...
> Hello!
>
> How can I check whether load-path contains a particular path (so that
> I could add it if necessary)?
>
> --
> Greetings
>
> Pete
Since load-path variable is a list of strings, you could try:
(setq my-path "x:/my/subdir")
(setq found (car (member-ignore-case my-path load-path))
(if (not found) ;; do whatever )
Ed.
>
> Real Time, adj.:
> Here and now, as opposed to fake time, which only occurs there and then.
>
>
>
>
next prev parent reply other threads:[~2006-07-16 20:19 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <mailman.4145.1153076026.9609.help-gnu-emacs@gnu.org>
2006-07-16 19:22 ` Checking whether a list contains a particular element Barry Margolin
2006-07-17 9:17 ` Peter Dyballa
[not found] ` <mailman.4170.1153127856.9609.help-gnu-emacs@gnu.org>
2006-07-17 9:22 ` David Kastrup
2006-07-16 20:19 ` B. T. Raven [this message]
2006-07-17 7:57 ` Tim X
2006-07-16 18:53 Peter Dyballa
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
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='d0bd$44ba9f45$49f11c5$2580@DIALUPUSA.NET' \
--to=ecinmn@alcisp.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.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).