From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "B. T. Raven" Newsgroups: gmane.emacs.help Subject: Re: how to check if xyz-mode is on load path? Date: Mon, 02 Mar 2009 00:08:50 -0600 Message-ID: <0qqdnYFggO516jbUnZ2dnUVZ_uSdnZ2d@sysmatrix.net> References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Trace: ger.gmane.org 1235976139 4469 80.91.229.12 (2 Mar 2009 06:42:19 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 2 Mar 2009 06:42: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 07:43: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 1Le1sE-000399-I2 for geh-help-gnu-emacs@m.gmane.org; Mon, 02 Mar 2009 07:43:35 +0100 Original-Received: from localhost ([127.0.0.1]:56522 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Le1qt-00069P-Fy for geh-help-gnu-emacs@m.gmane.org; Mon, 02 Mar 2009 01:42:11 -0500 Original-Path: news.stanford.edu!newsfeed.stanford.edu!postnews.google.com!news2.google.com!Xl.tags.giganews.com!border1.nntp.dca.giganews.com!nntp.giganews.com!local01.nntp.dca.giganews.com!nntp.sysmatrix.net!news.sysmatrix.net.POSTED!not-for-mail Original-NNTP-Posting-Date: Mon, 02 Mar 2009 00:08:39 -0600 User-Agent: Thunderbird 2.0.0.19 (Windows/20081209) Original-Newsgroups: gnu.emacs.help,comp.emacs In-Reply-To: Original-Lines: 23 X-Usenet-Provider: http://www.giganews.com Original-NNTP-Posting-Host: 12.73.128.178 Original-X-Trace: sv3-3HosnJ5yPJXLem9Yg7Pk3DzWUXIpo9CX6wMAlHEE9e26AtdBmH1pwaTP+xYor3ypgAiRmPV7CGW2HrE!0wvF+rWGnoWmJnvjVmystBkrqOspA4lJ72yzGvjzyrKF7naue0KRsncppWsLhuolwNpuHWymbqjr!mVmlBHMavPY2IuVvZtjkI1ohXP/Jwoo= Original-X-Complaints-To: abuse@sysmatrix.net X-Abuse-and-DMCA-Info: Please be sure to forward a copy of ALL headers X-Abuse-and-DMCA-Info: Otherwise we will be unable to process your complaint properly X-Postfilter: 1.3.39 Original-Xref: news.stanford.edu gnu.emacs.help:167207 comp.emacs:97893 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:62505 Archived-At: 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 > (not (isPackageInstalledQ "ocaml-mode")) > (autoload ocaml-mode "~/xahdir/ocaml-mode" ) > ) > > Thanks > > Xah > ∑ http://xahlee.org/ > > ☄ C-h v load-path