From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Xah Lee Newsgroups: gmane.emacs.help Subject: how to check if xyz-mode is on load path? Date: Sun, 1 Mar 2009 20:48:50 -0800 (PST) Organization: http://groups.google.com Message-ID: 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 1235988079 6203 80.91.229.12 (2 Mar 2009 10:01:19 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 2 Mar 2009 10:01:19 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Mon Mar 02 11:02:35 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 1Le4yd-00019b-KL for geh-help-gnu-emacs@m.gmane.org; Mon, 02 Mar 2009 11:02:23 +0100 Original-Received: from localhost ([127.0.0.1]:48571 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Le4xI-00047W-Lz for geh-help-gnu-emacs@m.gmane.org; Mon, 02 Mar 2009 05:01:00 -0500 Original-Path: news.stanford.edu!newsfeed.stanford.edu!postnews.google.com!k36g2000pri.googlegroups.com!not-for-mail Original-Newsgroups: gnu.emacs.help,comp.emacs Original-Lines: 20 Original-NNTP-Posting-Host: 24.6.175.142 Original-X-Trace: posting.google.com 1235969330 2540 127.0.0.1 (2 Mar 2009 04:48:50 GMT) Original-X-Complaints-To: groups-abuse@google.com Original-NNTP-Posting-Date: Mon, 2 Mar 2009 04:48:50 +0000 (UTC) Complaints-To: groups-abuse@google.com Injection-Info: k36g2000pri.googlegroups.com; posting-host=24.6.175.142; posting-account=bRPKjQoAAACxZsR8_VPXCX27T2YcsyMA User-Agent: G2/1.0 X-HTTP-UserAgent: Mozilla/5.0 (Macintosh; U; PPC Mac OS X 10_4_11; en) AppleWebKit/525.27.1 (KHTML, like Gecko) Version/3.2.1 Safari/525.27.1, gzip(gfe), gzip(gfe) Original-Xref: news.stanford.edu gnu.emacs.help:167205 comp.emacs:97891 X-Mailman-Approved-At: Mon, 02 Mar 2009 04:58:38 -0500 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:62511 Archived-At: 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 (not (isPackageInstalledQ "ocaml-mode")) (autoload ocaml-mode "~/xahdir/ocaml-mode" ) ) Thanks Xah =E2=88=91 http://xahlee.org/ =E2=98=84