help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Checking whether a list contains a particular element


From: B. T. Raven
Subject: Re: Checking whether a list contains a particular element
Date: Sun, 16 Jul 2006 15:19:05 -0500

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



reply via email to

[Prev in Thread] Current Thread [Next in Thread]