From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Edward O'Connor Newsgroups: gmane.emacs.help Subject: Re: require a package only if present Date: Sat, 11 Jul 2009 11:46:23 -0700 Message-ID: References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 (iPhone Mail 7A341) Content-Type: text/plain; charset=us-ascii; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1247338059 618 80.91.229.12 (11 Jul 2009 18:47:39 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 11 Jul 2009 18:47:39 +0000 (UTC) Cc: "help-gnu-emacs@gnu.org" To: Andrei Alexandrescu Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sat Jul 11 20:47:32 2009 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.50) id 1MPhbf-000856-C1 for geh-help-gnu-emacs@m.gmane.org; Sat, 11 Jul 2009 20:47:31 +0200 Original-Received: from localhost ([127.0.0.1]:59800 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MPhbe-0000pv-SW for geh-help-gnu-emacs@m.gmane.org; Sat, 11 Jul 2009 14:47:30 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MPhbF-0000pq-Rf for help-gnu-emacs@gnu.org; Sat, 11 Jul 2009 14:47:05 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MPhbB-0000pA-D8 for help-gnu-emacs@gnu.org; Sat, 11 Jul 2009 14:47:05 -0400 Original-Received: from [199.232.76.173] (port=56789 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MPhbB-0000p7-5L for help-gnu-emacs@gnu.org; Sat, 11 Jul 2009 14:47:01 -0400 Original-Received: from mail-pz0-f202.google.com ([209.85.222.202]:50639) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1MPhbA-0003rS-Ot for help-gnu-emacs@gnu.org; Sat, 11 Jul 2009 14:47:00 -0400 Original-Received: by pzk40 with SMTP id 40so454523pzk.14 for ; Sat, 11 Jul 2009 11:46:59 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:references:message-id:from:to :in-reply-to:content-type:content-transfer-encoding:x-mailer :mime-version:subject:date:cc; bh=qt+3tjTYjwsUVgYsVDQ5COuro3KoPUsebiDEYbqmt+w=; b=TBsqmYiTvOeCcFhTpaYJoY+4TVY0el0TcA5UPeCQ93P0231Q8BjOJKVF62lIzsk0fH xIoMZl5tdbC9b1N3DLA3PnN+JsPbg70fnXYv6NuZnCmRFHFHcMUzm4NEYO5Zi/iW10o8 FZ9qciOJLCym7+7PmDk5kqM8MnxuD0fwniupg= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=references:message-id:from:to:in-reply-to:content-type :content-transfer-encoding:x-mailer:mime-version:subject:date:cc; b=b9v6o0qf3m8MhXVIl99D/lQMzM/Rrzm6YFFzLgjXBjJtY885iH7uFZGmQ3bW8IT69G qwTd87kNta2Iyi76SQ7CDYwQmL8pbEc/3kiE2N/Ifi5HOmDEERSicqFBFPQue9WIkCtT nbMvCFTpw4ZAU0U8lsiZ86EV/z6qj0zEgd3EU= Original-Received: by 10.140.127.20 with SMTP id z20mr2048937rvc.186.1247338019218; Sat, 11 Jul 2009 11:46:59 -0700 (PDT) Original-Received: from ?10.240.40.74? ([166.205.130.186]) by mx.google.com with ESMTPS id f21sm5921645rvb.16.2009.07.11.11.46.57 (version=TLSv1/SSLv3 cipher=RC4-MD5); Sat, 11 Jul 2009 11:46:58 -0700 (PDT) In-Reply-To: X-Mailer: iPhone Mail (7A341) X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 2) 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:65966 Archived-At: > I am trying to use the same copy of .emacs across various machines. > Some, however, don't have certain packages. So I need to replace > lines like: > > (require 'tex-site) > > with code that checks whether tex-site is present and only loads it > if there. How can I do that? Any pointers welcome. (require 'tex-site nil t)