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: Barry Margolin
Subject: Re: Checking whether a list contains a particular element
Date: Sun, 16 Jul 2006 15:22:06 -0400
User-agent: MT-NewsWatcher/3.5.2b1 (PPC Mac OS X)

In article <mailman.4145.1153076026.9609.help-gnu-emacs@gnu.org>,
 Peter Dyballa <Peter_Dyballa@Web.DE> wrote:

> Hello!
> 
> How can I check whether load-path contains a particular path (so that  
> I could add it if necessary)?

The built-in 'add-to-list' function already performs this check, so you 
shouldn't need to do it yourself.  But if you do, you can use the 
function 'member'.

-- 
Barry Margolin, barmar@alum.mit.edu
Arlington, MA
*** PLEASE post questions in newsgroups, not directly to me ***
*** PLEASE don't copy me on replies, I'll read them in the group ***


reply via email to

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