From xemacs-m  Tue Feb 18 11:32:27 1997
Received: from greatdane.webnexus.com (greatdane.webnexus.com [165.227.96.3])
	by xemacs.org (8.8.5/8.8.5) with ESMTP id LAA28993
	for <xemacs-beta@xemacs.org>; Tue, 18 Feb 1997 11:32:26 -0600 (CST)
Received: from apprentice.silicon-sorcery.com (apprentice.silicon-sorcery.com [205.179.145.161])
	by greatdane.webnexus.com (8.8.5/8.8.5/WN-1.2) with ESMTP id JAA09489
	for <xemacs-beta@xemacs.org>; Tue, 18 Feb 1997 09:32:26 -0800 (PST)
Received: (from mac@localhost) by apprentice.silicon-sorcery.com (8.7.5/8.7.3) id JAA14527; Tue, 18 Feb 1997 09:30:32 -0800 (PST)
Date: Tue, 18 Feb 1997 09:30:32 -0800 (PST)
Message-Id: <199702181730.JAA14527@apprentice.silicon-sorcery.com>
From: <mac@silicon-sorcery.com>
To: xemacs-beta@xemacs.org
Subject: xemacs-15-b94 byte-recompile-directory truncates all files.
Reply-To: mac@silicon-sorcery.com


	Senario:

	I have xemacs-19.15-b93.tar.gz

	I download xemacs-19.15-b93-19.15-b94.patch

	I apply the patch.

	I remove the .orig files

	I build xemacs

	I fire up src/xemacs, and notice that it complains
that "dired.el is newer"

	I recognize that the patch process has updated various .el
files (including dired.el), but that the coorosponding .elc files are
indeed older than the newr .el's and hence need to be recompiled.

	I then run M-x byte-recompile-directory using my new xemacs,
on the directory xemacs-19.15/lisp.  15 minutes later, after seeing
many wonderful messages about recompiling this and that, I then
proceed to build a new xemacs, only to see that EVERY .EL file is now
zero length, (date unchanged!!) and every .elc file consists of:

;ELC^S
;;; compiled by mac@apprentice.silicon-sorcery.com on Mon Feb 17 18:52:37 1997
;;; from file /home/mac/src/xemacs-19.15/lisp/dired/ange-ftp.el
;;; emacs version 19.15 XEmacs Lucid (beta94).
;;; bytecomp version 2.25; 1-Sep-94.
;;; optimization is on.
;;; this file uses opcodes which do not exist in Emacs 18.
 
(if (and (boundp 'emacs-version)
         (or (and (boundp 'epoch::version) epoch::version)
             (string-lessp emacs-version "19")))
    (error "`ange-ftp.el' was compiled for Emacs 19"))



Here is my sequence of commands:

  17:41   gtar zxvf xemacs-19.15-b93.tar.gz
  17:47   mv xemacs-19.15-b93 xemacs-19.15
  17:48   /usr/local/bin/patch -p0 < xemacs-19.15-b93-19.15-b94.patch
  17:50   cd xemacs-19.15
  17:50   gtar xvfz ../xemacs-19.15-b94.patch.supplement.tar.gz
  17:51   cd ..
  17:52   find xemacs-19.15 -name "*.orig" -exec rm {} \;
  17:54   cd xemacs-19.15
  17:54   configure --prefix=/usr/local/x20
  18:02   make
  18:49   src/xemacs &

	M-x byte-recompile-directory RET lisp RET

  19:09   ls -l lisp/dired

apprentice 91 > ls -l lisp/dired
total 42
-rw-r--r--   1 mac      staff          0 Feb 17 17:48 ange-ftp.el
-rw-r--r--   1 mac      staff        504 Feb 18 08:52 ange-ftp.elc
-rw-r--r--   1 mac      staff          0 Feb 17 17:48 dired-cd.el
-rw-r--r--   1 mac      staff        504 Feb 18 08:52 dired-cd.elc
-rw-r--r--   1 mac      staff          0 Feb 17 17:48 dired-chmod.el
-rw-r--r--   1 mac      staff        510 Feb 18 08:52 dired-chmod.elc
-rw-r--r--   1 mac      staff          0 Feb 17 17:48 dired-cwd.el
-rw-r--r--   1 mac      staff        506 Feb 18 08:52 dired-cwd.elc
-rw-r--r--   1 mac      staff          0 Feb 17 17:48 dired-guess.el
-rw-r--r--   1 mac      staff        510 Feb 18 08:52 dired-guess.elc
-rw-r--r--   1 mac      staff          0 Feb 17 17:48 dired-link.el
-rw-r--r--   1 mac      staff        508 Feb 18 08:52 dired-link.elc
-rw-r--r--   1 mac      staff          0 Feb 17 17:48 dired-lisp.el
-rw-r--r--   1 mac      staff        508 Feb 18 08:52 dired-lisp.elc
	...


	I also tried the same sequence, but byte-compiling & loading
the byte-compiler files individually first; same problem.

	As you can see this is like, and hour long process, and... I
guess I tried to save 45 minutes from downloading the 16M -b94 file,
and lost it all anyway...

	*sigh*

