From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Oliver Scholz Newsgroups: gmane.emacs.help Subject: Re: Extending Info-directory-list. There's got to be a better way. Date: Wed, 02 Apr 2003 00:59:36 +0200 Sender: help-gnu-emacs-bounces+gnu-help-gnu-emacs=m.gmane.org@gnu.org Message-ID: References: NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Trace: main.gmane.org 1049238461 21801 80.91.224.249 (1 Apr 2003 23:07:41 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Tue, 1 Apr 2003 23:07:41 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+gnu-help-gnu-emacs=m.gmane.org@gnu.org Wed Apr 02 01:07:39 2003 Return-path: Original-Received: from monty-python.gnu.org ([199.232.76.173]) by main.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 190Uqx-0005fG-00 for ; Wed, 02 Apr 2003 01:07:39 +0200 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.10.13) id 190UpL-0007X3-04 for gnu-help-gnu-emacs@m.gmane.org; Tue, 01 Apr 2003 18:05:59 -0500 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!paloalto-snf1.gtei.net!mtvwca1-snh1.ops.genuity.net!nycmny1-snh1.gtei.net!news.gtei.net!newsfeed.mathworks.com!fu-berlin.de!uni-berlin.de!dialin-145-254-192-128.arcor-ip.NET!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 27 Original-NNTP-Posting-Host: dialin-145-254-192-128.arcor-ip.net (145.254.192.128) Original-X-Trace: fu-berlin.de 1049238009 3822480 145.254.192.128 (16 [87814]) X-Attribution: os X-Face: "HgH2sgK|bfH$; PiOJI6|qUCf.ve<51_Od(%ynHr?=>znn#~#oS>",F%B8&\vus),2AsPYb -n>PgddtGEn}s7kH?7kH{P_~vu?]OvVN^qD(L)>G^gDCl(U9n{:d>'DkilN!_K"eNzjrtI4Ya6;Td% IZGMbJ{lawG+'J>QXPZD&TwWU@^~A}f^zAb[Ru;CT(UA]c& User-Agent: Gnus/5.090016 (Oort Gnus v0.16) Emacs/21.3.50 (windows-nt) Cancel-Lock: sha1:/gWgNoJK6IVWE+u3PD13bXne5d0= Original-Xref: shelby.stanford.edu gnu.emacs.help:111583 Original-To: help-gnu-emacs@gnu.org X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1b5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Help: List-Post: List-Subscribe: , List-Archive: List-Unsubscribe: , Errors-To: help-gnu-emacs-bounces+gnu-help-gnu-emacs=m.gmane.org@gnu.org Xref: main.gmane.org gmane.emacs.help:8083 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:8083 Alan Mackenzie writes: > I recently added the following to my .emacs, after much (too much) > searching of the docs: > > (eval-after-load "info" > '(progn (info-initialize) > (push "/usr/src/packages/BUILD/emacs-21.1/info/" Info-directory-list))) > > This was the only way I found of appending to the front of > Info-directory-list which works regardless of whether or not Info has > already been loaded (for example, by desktop). > > Surely there's got to be a better way? One that doesn't involve arcane > constructions like eval-after-load and calling functions like > info-initialise which feel like they ought to be internal private > functions rather than public functions. [...] I think, if you use `Info-default-directory-list' rather than `Info-directory-list', you can simply `push' to it. I think it is preloaded. Oliver -- 13 Germinal an 211 de la Révolution Liberté, Egalité, Fraternité!