From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Lennart Borgman Newsgroups: gmane.emacs.help Subject: Re: how to check if xyz-mode is on load path? Date: Mon, 2 Mar 2009 11:03:27 +0100 Message-ID: References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1235988739 8399 80.91.229.12 (2 Mar 2009 10:12:19 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 2 Mar 2009 10:12:19 +0000 (UTC) Cc: help-gnu-emacs@gnu.org To: Xah Lee Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Mon Mar 02 11:13:34 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 1Le59P-00057V-9c for geh-help-gnu-emacs@m.gmane.org; Mon, 02 Mar 2009 11:13:31 +0100 Original-Received: from localhost ([127.0.0.1]:54687 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Le584-0002wz-1R for geh-help-gnu-emacs@m.gmane.org; Mon, 02 Mar 2009 05:12:08 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Le4zj-00051V-7i for help-gnu-emacs@gnu.org; Mon, 02 Mar 2009 05:03:31 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Le4zh-000500-FF for help-gnu-emacs@gnu.org; Mon, 02 Mar 2009 05:03:30 -0500 Original-Received: from [199.232.76.173] (port=33843 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Le4zg-0004zX-PM for help-gnu-emacs@gnu.org; Mon, 02 Mar 2009 05:03:28 -0500 Original-Received: from mail-gx0-f160.google.com ([209.85.217.160]:49001) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1Le4zg-0004r0-8t for help-gnu-emacs@gnu.org; Mon, 02 Mar 2009 05:03:28 -0500 Original-Received: by gxk4 with SMTP id 4so4375322gxk.18 for ; Mon, 02 Mar 2009 02:03:27 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:cc:content-type :content-transfer-encoding; bh=iFlSHpg2P9g+SJ5PL9SqoiZ1f1JLiEsfjeLSk4iWEnU=; b=fDWVESIXwFPFSD/thffN9q+2Hcg1V4H6QPniSyxVbvpkqkdY0HStgKUz2D2DBitjZU wMXFkIc7nvhl959VaMijJvDOvZHBzgmQIpxw0XBk+MRqcCgk3wXBcgzq62zDJB1v3Gfz ENuom8sIPGVrSTJ8MJ8wtSNmclM6f7R38Go94= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; b=Xx9Mar1PqZnAA18SgWAtgNAtOgCbyea9li42UFe6suI4tB/GMvatgigiI+SqPqgy8E 8CtY/QHyGE1qfoxfcQQJ50ZSG7glkjZPladh3wNeBDyZg/u/jY6sB3QOxlULMORgX7Jo anLk6uFvZ4u1aqffQS47dYux7vrc3zMfliGYM= Original-Received: by 10.231.30.67 with SMTP id t3mr3200718ibc.21.1235988207086; Mon, 02 Mar 2009 02:03:27 -0800 (PST) In-Reply-To: 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:62516 Archived-At: On Mon, Mar 2, 2009 at 5:48 AM, Xah Lee wrote: > how can i check if a package already exists in the load path? > > what i want to do is to put a package into autoload, but don't do that > if that package is already included in user's load path (e.g. either > the package is included in the emacs version she's got, or she already > installed it herself). > > e.g. pseudo code: > > (when > =C2=A0 =C2=A0(not (isPackageInstalledQ "ocaml-mode")) > =C2=A0(autoload ocaml-mode "~/xahdir/ocaml-mode" ) > ) locate-library > Thanks > > =C2=A0Xah > =E2=88=91 http://xahlee.org/ > > =E2=98=84 >