all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* test for presence of library
@ 2010-02-18 22:56 Harry Putnam
  2010-02-18 23:10 ` Lennart Borgman
  0 siblings, 1 reply; 11+ messages in thread
From: Harry Putnam @ 2010-02-18 22:56 UTC (permalink / raw)
  To: help-gnu-emacs

Can one test for the presence of a library before requiring it?

I mean in the way one might test for the presence of a file in common
shell script; if [ -f /my/file ];then
                  blab blab
              fi

Only here we are testing for the presence of a library somewhere in
the load path rather than a specific file location.

The lisp equivalent of:

 if some-lib 
 then
    (require some-lib)
 fi





^ permalink raw reply	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2010-02-26 20:21 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <mailman.1463.1266533787.14305.help-gnu-emacs@gnu.org>
2010-02-19  1:09 ` test for presence of library Pascal J. Bourguignon
2010-02-19 22:19   ` Harry Putnam
2010-02-19 23:12     ` Dirk-Jan C. Binnema
     [not found]   ` <mailman.1516.1266618008.14305.help-gnu-emacs@gnu.org>
2010-02-20  1:09     ` Tim X
2010-02-20  9:54     ` Pascal J. Bourguignon
     [not found]   ` <slrnho35vq.493.oudeis@nephthys.thalatta.eme>
2010-02-22  1:58     ` Pascal J. Bourguignon
2010-02-25 18:59       ` Harry Putnam
     [not found]       ` <mailman.1877.1267124412.14305.help-gnu-emacs@gnu.org>
2010-02-25 20:17         ` Pascal J. Bourguignon
2010-02-26 20:21           ` Harry Putnam
2010-02-18 22:56 Harry Putnam
2010-02-18 23:10 ` Lennart Borgman

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.