From xemacs-m  Mon Jul 28 20:41:08 1997
Received: from mailbox1.ucsd.edu (mailbox1.ucsd.edu [132.239.1.53])
	by xemacs.org (8.8.5/8.8.5) with ESMTP id UAA24869
	for <xemacs-beta@xemacs.org>; Mon, 28 Jul 1997 20:41:07 -0500 (CDT)
Received: from sdnp5.ucsd.edu (sdnp5.ucsd.edu [132.239.79.10]) by mailbox1.ucsd.edu (8.8.5/8.6.9) with SMTP id SAA23072 for <xemacs-beta@xemacs.org>; Mon, 28 Jul 1997 18:41:00 -0700 (PDT)
Received: by sdnp5.ucsd.edu (SMI-8.6/SMI-SVR4)
	id SAA23074; Mon, 28 Jul 1997 18:40:24 -0700
To: xemacs-beta@xemacs.org
Subject: Re: How to determine build-dir within running XEmacs?
References: <rxszprrme68.fsf@ecf.teradyne.com> <199707131143.EAA02550@xemacs.eng.sun.com> <rxsyb6srtji.fsf@tomorrow.ecf.teradyne.com> <rxsvi1wm6ez.fsf@ecf.teradyne.com> <rxsbu3o2hbf.fsf@tomorrow.ecf.teradyne.com> <m2vi1w6nfa.fsf@altair.xemacs.org>
X-Face: "oX;zS#-JU$-,WKSzG.1gGE]x^cIg!hW.dq>.f6pzS^A+(k!T|M:}5{_%>Io<>L&{hO7W4cicOQ|>/lZ1G(m%7iaCf,6Qgk0%%Bz7b2-W3jd0m_UG\Y;?]}4s0O-U)uox>P3JN)9cm]O\@,vy2e{`3pb!"pqmRy3peB90*2L
Mail-Copies-To: never
Mime-Version: 1.0 (generated by tm-edit 7.108)
Content-Type: text/plain; charset=US-ASCII
From: David Moore <dmoore@ucsd.edu>
Date: 28 Jul 1997 18:40:23 -0700
In-Reply-To: SL Baur's message of "27 Jul 1997 17:16:41 -0700"
Message-ID: <rvpvs2tz3s.fsf@sdnp5.ucsd.edu>
Lines: 23
X-Mailer: Gnus v5.4.63/XEmacs 20.3(beta14) - "Vienna"

SL Baur <steve@xemacs.org> writes:

> Yielding the unuseful result srcdir, $srcdir.  I see two places where
> srcdir occurs in the config.values file and only the first one is
> useful.  Does the following patch to config.el make things work a

How about lists for things that appear multiple times.  Cause taking the 
first item loses when it says:
foo=-lx
foo=$foo -lm



(let* ((key (read buf))
       (value (read buf))
       (prev (gethash key config-value-hash-table)))
  (cond ((null prev)
	 (puthash key value config-value-hash-table))
	((atom prev)
	 (puthash key (list prev value) config-value-hash-table))
	(t
	 (nconc prev (list value)))))

