all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
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.
>
>
>
>

  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

* 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.
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.