From xemacs-m  Fri Sep 26 05:43:24 1997
Received: from tardis.ed.ac.uk (root@brigadier.tardis.ed.ac.uk [193.62.81.14])
	by xemacs.org (8.8.5/8.8.5) with ESMTP id FAA20119
	for <xemacs-beta@xemacs.org>; Fri, 26 Sep 1997 05:43:23 -0500 (CDT)
Received: from jonathh (dhcp022.plc.psion.com [194.129.2.22])
	by tardis.ed.ac.uk (8.8.7/8.8.7/TardisMailhub) with ESMTP id LAA06746;
	Fri, 26 Sep 1997 11:43:09 +0100 (BST)
Message-ID: <342B9158.84E85F1A@tardis.ed.ac.uk>
Date: Fri, 26 Sep 1997 11:41:28 +0100
From: Jonathan Harris <jhar@tardis.ed.ac.uk>
Organization: Very little
X-Mailer: Mozilla 4.01 [en] (WinNT; I)
MIME-Version: 1.0
To: Robert Heitkamp <robert@gmg.com>
CC: xemacs-beta@xemacs.org
Subject: Re: NT build problem
X-Priority: 3 (Normal)
References: <3429889B.41C6@gmg.com>
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit

Robert Heitkamp wrote:

> Apparently in emacs.c, main_1(), the variable load_me
> is not being set before the call to initial_command_loop().
> The logic is trying to set load_me as follows:
> 
> if (argc > 2 + skip_args && !strcmp (argv[1 + skip_args], "-l"))
>    load_me = build_string (argv[2 + skip_args]);
> 
> Since the command line arguments are sorted earlier (in main_1() call
> to sort_args()), the argument list looks like this:
> 
> argv[0] = "..\src\temacs.exe"
> argv[1] = "-batch"
> argv[2] = "-d"
> argv[3] = "..\src"
> argv[4] = "-i"
> argv[5] = "..\site-package"
> argv[6] = "-l"
> argv[7] = "make-docfile.el"
> argv[8] = "-o"
> argv[9] = "..\lib-src\DOC"
> 
> with skip_args == 2, the "-l" arg is not found and load_me is
> not set.

I hit the same problem but sisn't go too far into it because I wanted to
get on with more interesting stuff.

I found that skipping the call to sort_args() so that '-l' appears as
argv[2] instead of argv[6] makes the above code snippet work correctly.

Is sort_args() doing the right thing in moving the '-l' from argv[2] to
argv[6]?

Jonathan.

-- 
Jonathan Harris  |  jhar@tardis.ed.ac.uk
London, England  |  Jonathan-Harris@psion.com

