From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Harry Putnam Newsgroups: gmane.emacs.help Subject: Re: test for presence of library Date: Thu, 25 Feb 2010 12:59:42 -0600 Organization: Still searching... Message-ID: <877hq1gmzl.fsf@newsguy.com> References: <87mxz6116b.fsf@galatea.lan.informatimago.com> <87fx4u6nfg.fsf@galatea.lan.informatimago.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: dough.gmane.org 1267125298 21243 80.91.229.12 (25 Feb 2010 19:14:58 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Thu, 25 Feb 2010 19:14:58 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Thu Feb 25 20:14:55 2010 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1NkjAk-0005dV-Ks for geh-help-gnu-emacs@m.gmane.org; Thu, 25 Feb 2010 20:14:54 +0100 Original-Received: from localhost ([127.0.0.1]:41666 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Nkj4X-0007D4-W5 for geh-help-gnu-emacs@m.gmane.org; Thu, 25 Feb 2010 14:08:30 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NkiwU-0001bB-OR for help-gnu-emacs@gnu.org; Thu, 25 Feb 2010 14:00:10 -0500 Original-Received: from [140.186.70.92] (port=37057 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NkiwP-0001ZN-EX for help-gnu-emacs@gnu.org; Thu, 25 Feb 2010 14:00:09 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1NkiwO-0008Tg-6A for help-gnu-emacs@gnu.org; Thu, 25 Feb 2010 14:00:04 -0500 Original-Received: from lo.gmane.org ([80.91.229.12]:51582) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1NkiwN-0008Sb-Tp for help-gnu-emacs@gnu.org; Thu, 25 Feb 2010 14:00:04 -0500 Original-Received: from list by lo.gmane.org with local (Exim 4.69) (envelope-from ) id 1NkiwL-0006gf-0N for help-gnu-emacs@gnu.org; Thu, 25 Feb 2010 20:00:01 +0100 Original-Received: from c-98-215-178-110.hsd1.in.comcast.net ([98.215.178.110]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 25 Feb 2010 20:00:00 +0100 Original-Received: from reader by c-98-215-178-110.hsd1.in.comcast.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 25 Feb 2010 20:00:00 +0100 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 26 Original-X-Complaints-To: usenet@dough.gmane.org X-Gmane-NNTP-Posting-Host: c-98-215-178-110.hsd1.in.comcast.net User-Agent: Gnus/5.110011 (No Gnus v0.11) Emacs/23.1 (gnu/linux) Cancel-Lock: sha1:2jMCBsCYNKPmVe1PJelQk3PWadY= X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:72137 Archived-At: Sorry for my tardy response... I got distracted for a while. Thanks posters one and all... good suggestions and great helpful info. I have several solutions now. One case, the one that actually pertains here that didn't get mentioned by TimX is where something being required is only useful in certain environments.. An example might be using emacs as root when doing system configs. There are really quite a few aspects of emacs I'll never use in that situation. Yet its handy to have a portable emacs that loads the stuff I need in some environments but skips it when working as root doing system configs. Or maybe running emacs as user but while setting up a new os where I won't expect many things to be available... In those cases the idea that things may fail down the road from not loading certain libs is not a problem since those things will not even be attempted. Now I know how to do it. Thanks to all.