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

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

Re: test for presence of library


From: Dirk-Jan C . Binnema
Subject: Re: test for presence of library
Date: Sat, 20 Feb 2010 01:12:41 +0200
User-agent: Wanderlust/2.15.9 (Almost Unreal) Emacs/23.1 Mule/6.0 (HANACHIRUSATO)

>>>>> "HP" == Harry Putnam <reader@newsguy.com> writes:


    HP> But looking at the suggested documentation I'm left non the wiser:

    HP>  (require FEATURE &optional FILENAME NOERROR)

    HP> That isn't going to get it for me.. I've tried a few arrangements but
    HP> being an idiot and all, I have no idea how something optional is
    HP> introduced into the require.


(when (require 'foo nil 'noerror)
      ;; do something with foo
)

is a common pattern to deal with such things.

Best wishes,
Dirk.

-- 
Dirk-Jan C. Binnema                  Helsinki, Finland
e:djcb@djcbsoftware.nl           w:www.djcbsoftware.nl
pgp: D09C E664 897D 7D39 5047 A178 E96A C7A1 017D DA3C




reply via email to

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