From xemacs-m  Tue Aug 19 14:37:29 1997
Received: from altair.xemacs.org (steve@xemacs.miranova.com [206.190.83.19])
	by xemacs.org (8.8.5/8.8.5) with ESMTP id OAA14959
	for <xemacs-beta@xemacs.org>; Tue, 19 Aug 1997 14:37:28 -0500 (CDT)
Received: (from steve@localhost)
	by altair.xemacs.org (8.8.6/8.8.6) id MAA20767;
	Tue, 19 Aug 1997 12:42:08 -0700
Mail-Copies-To: never
To: xemacs-beta@xemacs.org
Subject: Re: [patch] info fix, stringp nil: prim/packages.el
References: <199708191236.FAA13597@bittersweet.inetarena.com>
X-Face: `'%\i;ySOu]g?NlziJSk_$&@]KP`}~PEQPjZ5;nxSaDW_o$4+4%Ab]%Ifw3ZR;7TIT3,O,'
 @2{L;]ox6kc;$_5kU'n**9vFg-]eV~GbxSVCx|(s%uR[],*:^WKmC`B}(;|k9/m]gwt?&`t;^rfCJg
 khHH>pP1W\)xM0U@!FNDD72{3fDP$PkBhx^7Z?-WxH6DbFN:QOnT`llzW}VGdYv;n9lzljQvKTIBhQ
 YuV
X-Attribution: sb
From: SL Baur <steve@xemacs.org>
In-Reply-To: "Karl M. Hegbloom"'s message of "Tue, 19 Aug 1997 05:36:42 -0700"
Mime-Version: 1.0 (generated by tm-edit 7.108)
Content-Type: text/plain; charset=US-ASCII
Date: 19 Aug 1997 12:42:08 -0700
Message-ID: <m2iux29cz3.fsf@altair.xemacs.org>
Lines: 50
X-Mailer: Gnus v5.4.65/XEmacs 20.3(beta19) - "Kiev"

Karl M Hegbloom <karlheg@inetarena.com> writes:

>  The patch I sent earlier changing some regex's in `info.el' only mask 
> the real problem, which I believe is fixed by the patch attached
> below.

;; The following function is called from temacs
(defun packages-find-packages-1 (package path-only)

As a general warning be careful about patching code in packages.el.
Much of it gets called by temacs and hence most of the usual Lisp
runtime is not available.  The attached patch is O.K. from this
standpoint because `reverse' is a subr.

>  The problem was created when I made it so that the top directory
> entered in the customize-variable buffer for `Info-default-
> directory-list' would be the one used for the "dir".  That list has to
> get reversed after the last initialization is made to it during
> startup, so that things will work right in a default configuration.

>  The question remains: Do I also need to reverse the default list in
> `startup.el', or is reversing it only once after the last addition to
> it the right thing, like I think it is?

It probably would be better to build the search path up in the proper
order.

> Is anyone using the `--info' option to configure?  Can you tell me
> what that's for and what affect it has?

You mean `--infodir'?

> Will that cause an XEmacs install to place XEmacs' info's there?

Yes.

> Or just add a directory to the search list?

No.

> 1997-08-19  Karl M. Hegbloom  <karlheg@inetarena.com>

> 	* prim/packages.el (packages-find-packages-1): reverse
>  	`Info-default-directory-list' so that the main Info "dir" will be
>  	first on the list.

This patch is probably not correct.  Under a populated default setup
(${prefix}/lib/xemacs/packages/info and ~/.xemacs/info both exist)
this function will get called twice and the reversal will be done
twice.

