From xemacs-m  Sat Sep 20 09:45:34 1997
Received: from thor.inlink.com (ultra.inlink.com [206.196.96.100])
	by xemacs.org (8.8.5/8.8.5) with ESMTP id JAA02270
	for <xemacs-beta@xemacs.org>; Sat, 20 Sep 1997 09:45:33 -0500 (CDT)
Received: from vertigo (awhill.inlink.com [206.196.97.146]) by thor.inlink.com (8.8.0/V8) with SMTP id JAA19551; Sat, 20 Sep 1997 09:45:32 -0500 (CDT)
Message-Id: <199709201445.JAA19551@thor.inlink.com>
From: "August Hill" <awhill@inlink.com>
To: "XEmacs Beta" <xemacs-beta@xemacs.org>,
        "David Hobley" <david.hobley@usa.net>
Subject: Re: [failed] 20.3b20 for NT
Date: Sat, 20 Sep 1997 09:45:26 -0500
MIME-Version: 1.0
Content-Type: text/plain;
	charset="us-ascii"
Content-Transfer-Encoding: 7bit
X-Priority: 3
X-MSMail-Priority: Normal
X-Mailer: Microsoft Outlook Express 4.71.1008.3
X-MimeOle: Produced By Microsoft MimeOLE Engine V4.71.1008.3

 Just a follow on thought here...

First, from my debugging the nmake program is passing the upper/lower case
options just fine.  What I'm seeing is the sort_args() function is grabbing
arguments meant to be passed to the make-docfile.el function and moving them
around.  Hence, temacs doesn't see the -batch option.  I commented out the
call to sort_args() and temacs started working just fine.  I haven't
researched what the real purpose of sort_args() is yet (anyone want to
school me?).

Once I got past this, I hit a snag invoking make-docfile.exe from emacs, but
that's one for us NT types to fix.  So, then I just invoked make-docfile.exe
directly.  It appears it is limited as to the number of arguments that can
be passed to it on a single invocation.  I wound up splitting the call into
5 parts, got a DOC file out, however I'm still getting errors when I build
xemacs.

I just pulled down beta 22 yesterday...same thing there too.

Oh well...back at it!!

August Hill

-----Original Message-----
From: David Hobley <david.hobley@usa.net>
To: August Hill <awhill@inlink.com>; XEmacs Beta <xemacs-beta@xemacs.org>
Date: Monday, September 15, 1997 4:15 AM
Subject: Re: [failed] 20.3b20 for NT



>There are a couple of things here -
>
>Firstly I stuffed the Makefile - it should read DOC_SRCS. Secondly - for
>some reason, the make-docfile.el file can't seem to recognise lowercase
>options.
>
>What do people think ? I presume this is NT specific - but I don't see why
>it should affect us.
>
>Sorry I haven't had time to make some patches - I have a couple of
>outstanding things to provide - definitely in time for the next beta :-)
>
>Chris Kim identified this, and has provided this code fragment (presumably
>the Makefile will need to be updated as well) -
>
>...
>
>Here is where I had to change to make it work (search for note:  to find
>changes)
>
>
>;; Gobble up the stuff we don't wish to pass on.
>(setq command-line-args (cdr (cdr (cdr command-line-args)))) ;; note: I've
>got rid
>of one extra cdr
>---------------------------------------------------------------
>;; First gather up the command line options.
>(let (done)
>  (while (and (null done) command-line-args)
>    (let ((arg (car command-line-args)))
>      (cond ((or (string-equal arg "-o") ; Specify DOC file name
>   (string-equal arg "-a") ; Append to DOC file
>   (string-equal arg "-D")) ; Set working directory  ;; note: changed "-d"
>to "-D"
>because temacs didn't like lowercase option
>      (if (string-equal arg "-o")
>   (setq docfile (car (cdr command-line-args))))
>      (setq options (cons arg options))
>      (setq options (cons (car (cdr command-line-args)) options)))
>     ((string-equal arg "-I") ; Set site files to scan.  note: changed "-i"
to
>"-I" because temacs didn't like lowercase option
>      (setq site-file-list (car (cdr command-line-args))))
>     (t (setq done t)))
>      (if (null done)
>   (setq command-line-args (cdr (cdr command-line-args)))))))
>(setq options (nreverse options))
>
>--------------------------------------------------------------
>
>
>
>
>At 22:27 9/14/97 -0500, August Hill wrote:
>> Did the nmake -f xemacs.mak and got the following:
>>
>>[lots snipped]
>>
>>
>>        "..\src\temacs.exe -batch -l make-docfile.el -o ..\lib-src\DOC -d
>>..\src -i ..\site-packages "
>>
>>
>>temacs can only be run in -batch mode.
>>NMAKE : fatal error U1077: '"..\src\temacs.exe -batch -l
make-docfile.el -o
>>..\l
>>ib-src\DOC -d ..\src -i ..\site-packages "' : return code '0xffffffff'
>>Stop.
>>
>>===
>>
>>For some reason temacs thinks it's not in batch mode.  The other thing
that
>>I'm wondering about is the line in xemacs.mak that is issuing this
command.
>>The line reads:
>>
>>$(DOC): $(OUTDIR)\make-docfile.exe
>>    !"$(TEMACS) -batch -l make-docfile.el -o $(DOC) -d $(TEMACS_SRC) -i
>>$(XEMACS
>>)\site-packages $(DOC_SRC)"
>>
>>The macro DOC_SRC isn't defined, but DOC_SRCS is.
>>
>>
>>Thoughts?
>>
>>August
>>
>>
>>
>>
>--
>Cheers,
>david http://www.angelfire.com/wa/hobley
>
>

