From xemacs-m  Fri Dec  6 07:59:17 1996
Received: from mikan.jaist.ac.jp (mikan.jaist.ac.jp [150.65.8.6]) by xemacs.cs.uiuc.edu (8.8.3/8.8.3) with ESMTP id HAA10193 for <xemacs-beta@xemacs.org>; Fri, 6 Dec 1996 07:59:15 -0600 (CST)
Received: from is18e0s01.jaist.ac.jp (MORIOKA Tomohiko <morioka@jaist.ac.jp>) by mikan.jaist.ac.jp (8.7.5); id WAA23960; Fri, 6 Dec 1996 22:59:13 +0900 (JST)
Message-Id: <199612061359.WAA23960@mikan.jaist.ac.jp>
X-MUA: mh-e 5.0.2 + tm-mh-e 7.72, tm-view 7.78
X-Face: %yc?f+O/cVKlH*K(H2X/6-d''suf|"1{S:Y0}_9$t@0G3:5M2:-Ck^[8+4^iSLeGc[Ey[WP
 PF]2M#Q9C'u~[=7TJP72J`PZdWvP=s-'-/LhFneC->=ILc~H#$lf2%hLL5U8?psIp`<[>d&@$Pm%~(
 A'"CJ.zuX@TXh\Ra4,b7M&`f"hexU-a4,#X\]Bfp'JI+MGUDRA%_$&UnWAem4}1R"4%uivgn;xFZ%"
 NS>)eCuFYNHc/:W^:{7H>bGQS],x5z[Cy~C;7j#:8y9q|"~9~UWjE<Vm_;)o<Q4S5NweLc(cl7-suY
 NF|_O*xodbmQavM
X-Emacs: Mule 2.4 =?ISO-2022-JP?B?KBskQjlITVUybBsoQik=?=
From: =?ISO-2022-JP?B?GyRCPGkyLBsoQiAbJEJDTkknGyhC?= / MORIOKA Tomohiko <morioka@jaist.ac.jp>
To: XEmacs Beta Mailing List <xemacs-beta@xemacs.org>
Subject: [20.0 b30] file-detect problem
Mime-Version: 1.0 (generated by tm-edit 7.95)
Content-Type: multipart/signed; protocol="application/pgp-signature";
 boundary="pgp-sign-Multipart_Fri_Dec__6_22:59:01_1996-1"; micalg=pgp-md5
Content-Transfer-Encoding: 7bit
Date: Fri, 06 Dec 1996 22:59:12 JST
Sender: morioka@jaist.ac.jp

--pgp-sign-Multipart_Fri_Dec__6_22:59:01_1996-1
Content-Type: multipart/mixed;
 boundary="Multipart_Fri_Dec__6_22:59:01_1996-1"
Content-Transfer-Encoding: 7bit

--Multipart_Fri_Dec__6_22:59:01_1996-1
Content-Type: text/plain; charset=US-ASCII

  file-detect.el is dumped if XEmacs 20.0 b30 is compiled with mule.
It has a variable `default-load-path', it is used to search emacs
package directory by function `add-path' or `get-latest-path'.  They
can search from all of `load-path', however in default they use
`default-load-path' to avoid to search from unnecessary directories.

  Anyway file-detect.el is dumped, so `default-load-path' has lisp
directories of source tree as initial value.  So `add-path' or
`get-latest-path' don't work.

  So I made a patch for startup.el.


--Multipart_Fri_Dec__6_22:59:01_1996-1
Content-Type: application/octet-stream; type=patch
Content-Disposition: attachment; filename="startup.el.diff"
Content-Transfer-Encoding: 7bit

--- lisp/prim/startup.el-orig	Sun Nov 17 14:44:32 1996
+++ lisp/prim/startup.el	Fri Dec  6 20:59:08 1996
@@ -1129,6 +1129,11 @@
 		  (file-name-as-directory
 		   (expand-file-name "../xemacs/lock" root))
 		  )))))
+    
+    ;; 1996/12/6 by MORIOKA Tomohiko <morioka@jaist.ac.jp>
+    ;;	define `default-load-path' for file-detect.el
+    (setq default-load-path load-path)
+    
     ;; add site-lisp dir to load-path
     (when site-lisp
       ;; If the site-lisp dir isn't on the load-path, add it to the end.
@@ -1169,6 +1174,17 @@
 			 (list (file-name-as-directory file)))))
 	  (setq files (cdr files)))))
 
+    ;; 1996/12/6 by MORIOKA Tomohiko <morioka@jaist.ac.jp>
+    ;;	define `default-load-path' for file-detect.el
+    (setq default-load-path
+	  (append default-load-path
+		  (if site-lisp
+		      (list site-lisp))
+		  (if lisp
+		      (list lisp)
+		    )
+		  ))
+    
     ;; If running from the build directory, always prefer the exec-directory
     ;; that is here over to the one that came from paths.h.
     (when (or (and (null exec-directory) lib-src)

--Multipart_Fri_Dec__6_22:59:01_1996-1
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable


  Regards,
-- 
----------------------------------------------------------------------
MORIOKA Tomohiko <morioka@jaist.ac.jp>
        Japan advanced Institute of Science and Technology, Hokuriku
                Asahi-dai, Tatsu-no-kuchi ch=F4, Nomi, Ishikawa, Japan
------------------------------------------ Frisch, Frei, Fr=F6hlich! ---

--Multipart_Fri_Dec__6_22:59:01_1996-1--

--pgp-sign-Multipart_Fri_Dec__6_22:59:01_1996-1
Content-Type: application/pgp-signature
Content-Transfer-Encoding: 7bit

-----BEGIN PGP MESSAGE-----
Version: 2.6.3ia
Comment: Processed by Mailcrypt 3.4, an Emacs/PGP interface

iQCVAwUBMqgmqxnuUGV7wuH5AQEUsQP/Rzd8Pwx3m4+XQ0TqDEiedhNa7eRkju5c
T1amx3wmqWUTkLIt5QAVncAG4Gxd5oXKbqgC0nYU5OLFyMRqxKP7BuSlXuRNq6qr
zceEQGm5sehb507FaSowRQ3ZxYjUFZeJQgy2rdsLd86379IhFvGyKFyM528g69Ma
dAFp6ysnF1I=
=nj+q
-----END PGP MESSAGE-----

--pgp-sign-Multipart_Fri_Dec__6_22:59:01_1996-1--

