Hi,

I know you realize it but I could not help making it explicit - you're
suggesting to get rid of "shadowing" a "feature" by doing very much
similar thing to "require"  :-)

Latchezar

> -----Original Message-----
> From: Jason Rumney [mailto:[EMAIL PROTECTED] 
> Sent: Monday, May 03, 2004 10:27 AM
> To: [EMAIL PROTECTED]
> Cc: Paul Kinnucan; jdee
> Subject: Re: Avoid JDEE to shadow standard libraries
> 
> David PONCE <[EMAIL PROTECTED]> writes:
> 
> > +   (condition-case nil
> > +       ;; If the library if available, use it.
> > +       (require feature)
> > +     (error
> > +      ;; Try to use the one from the JDEE's distribution.
> > +      (require feature (format "jde-%s" feature)))))
> 
> It might be cleaner to use:
> 
> (if (not (require feature nil t))
>     (require feature (format "jde-%s" feature)))
> 
> 
> 

Reply via email to