From xemacs-m  Mon Sep 22 11:57:52 1997
Received: from GS213.SP.CS.CMU.EDU (GS213.SP.CS.CMU.EDU [128.2.209.183])
	by xemacs.org (8.8.5/8.8.5) with SMTP id LAA04819
	for <xemacs-beta@xemacs.org>; Mon, 22 Sep 1997 11:57:51 -0500 (CDT)
Received: by GS213.SP.CS.CMU.EDU (AIX 3.2/UCB 5.64/4.03)
          id AA34763; Mon, 22 Sep 1997 12:57:43 -0400
Date: Mon, 22 Sep 1997 12:57:43 -0400
Message-Id: <9709221657.AA34763@GS213.SP.CS.CMU.EDU>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
From: Darrell Kindred <dkindred@cmu.edu>
To: "Karl M. Hegbloom" <karlheg@inetarena.com>
Cc: xemacs-beta@xemacs.org
Subject: Re: `find-emacs-root-internal'
Organization: Carnegie Mellon University School of Computer Science
In-Reply-To: <8767rt1mi0.fsf@bittersweet.inetarena.com>
References: <8767rt1mi0.fsf@bittersweet.inetarena.com>
X-Mailer: VM 6.34 under 19.16 "Manhattan" XEmacs Lucid

Karl M. Hegbloom writes:
 >  I'm trying to set up a resonable default for
 >  `Info-default-directory-list', and I need a way to find out where the
 >  XEmacs distribution "dir" resides.  May I use this:
 > 
 > (find-emacs-root-internal "/")
 > ==> "/usr/local/src/xemacs-20"
 > 
 > ... looking at it, I'd say yes.  Is there any reason for me to NOT use
 > this function?

I think you shouldn't.  The proper way to invoke
find-emacs-root-internal is as set-default-load-path
invokes it: 

  (find-emacs-root-internal (concat invocation-directory invocation-name))

Otherwise you often won't find the right root.

I don't think you should do that either, though.  Running
find-emacs-root-internal induces a lot of statting around in
various directories; it would be better to just use one of
the path variables that set-default-load-path sets.

In particular, set-default-load-path puts <emacsroot>/info
in Info-default-directory-list already.  Can't you make use
of that?

- Darrell

