From owner-ntemacs-users@june  Wed Aug 21 08:43:58 1996
X-VM-v5-Data: ([nil nil nil nil nil nil nil nil nil]
	[nil "Wed" "21" "August" "1996" "16:50:53" "+0200" "Ulrich Poetter" "poetter@em.uni-frankfurt.de" nil "45" "[Fwd: Re: problems with auctex]" "^From:" nil nil "8" nil nil nil nil]
	nil)
Received: from joker.cs.washington.edu (joker.cs.washington.edu [128.95.1.42]) by june.cs.washington.edu (8.7.5/7.2ju) with SMTP id IAA11216 for <voelker@june.cs.washington.edu>; Wed, 21 Aug 1996 08:43:58 -0700
Received: from june.cs.washington.edu (june.cs.washington.edu [128.95.1.4]) by joker.cs.washington.edu (8.6.12/7.2ws+) with ESMTP id IAA43083 for <voelker@joker.cs.washington.edu>; Wed, 21 Aug 1996 08:43:57 -0700
Received: from anna-atm.rz.uni-frankfurt.de (anna-atm.rz.uni-frankfurt.de [141.2.150.5]) by june.cs.washington.edu (8.7.5/7.2ju) with SMTP id HAA06738 for <ntemacs-users@cs.washington.edu>; Wed, 21 Aug 1996 07:51:00 -0700
Received: from abel (actually abel.wiwi.uni-frankfurt.de)            by anna-atm.rz.uni-frankfurt.de with Local SMTP (PP);           Wed, 21 Aug 1996 16:50:51 +0000
Message-ID: <321B224D.31BD@em.uni-frankfurt.de>
X-Mailer: Mozilla 3.0b5aGold (WinNT; I)
MIME-Version: 1.0
Content-Type: message/rfc822
Content-Transfer-Encoding: 7bit
Content-Disposition: inline
From: Ulrich Poetter <poetter@em.uni-frankfurt.de>
To: ntemacs-users@cs.washington.edu
Subject: [Fwd: Re: problems with auctex]
Date: Wed, 21 Aug 1996 16:50:53 +0200

Return-Path: <poetter@em.uni-frankfurt.de>
Delivery-Date: Wed, 21 Aug 1996 16:44:20 +0000
Received: from abel (actually abel.wiwi.uni-frankfurt.de) 
          by anna-atm.rz.uni-frankfurt.de with Local SMTP (PP);
          Wed, 21 Aug 1996 16:42:24 +0000
Message-ID: <321B2051.4B0C@em.uni-frankfurt.de>
Date: Wed, 21 Aug 1996 16:42:25 +0200
From: Ulrich Poetter <poetter@em.uni-frankfurt.de>
X-Mailer: Mozilla 3.0b5aGold (WinNT; I)
MIME-Version: 1.0
To: Holger Mueller <holger@vtx.muc.bmw.de>
Subject: Re: problems with auctex
References: <199608210828.KAA14102@vtx.muc>
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit

Holger Mueller wrote:
> 
> Hello!
> 
> I have installed NT Emacs 19.31 on my Win95. Furthermore I installed
> AUC-TeX 9.5a completely. So far, it works pretty good. But if I try to
> execute TeX/LaTeX via ->Command ->LaTeX (with an open TeX Buffer!) I get
> the error message "Spawing child process: invalid argument". I receive
> the same error message, if I try to start the Emacs server with "M-x
> server-start".  My "SHELL" environment variable is set to "command".
> 
> I don't know if this stuff is not yet implemented in this Emacs version
> for Win95, because I haven't read this mailing list since month.
> 
> I don't know whats it problem with it, so pleeeeease help!
> 
> Thanx Holger

The problem stems from a wrong setting of the shell options in auctex
when using NTemacs. auctex assumes "/bin/sh" unless (system-type) is
ms-dos. But (system-type) in NTemacs is windows-nt. To overcome the
problem put the following in your .emacs or tex-site:
(setq TeX-shell "YOUR-SHELL")
(setq TeX-shell-command-option "/C") ;if you use command ord cmd
You also have to change the function
TeX-directory-absolute-p in tex.el. In its definition change the
(memq ..) line to include windows-nt and recompile.
Hope that helps
Uli

From owner-ntemacs-users@june  Fri Nov 29 03:47:01 1996
X-VM-v5-Data: ([nil nil nil nil nil nil nil nil nil]
	[nil "Fri" "29" "November" "1996" "11:32:16" "+0100" "Helmut EYSSELE" "eyssele@bk.bosch.de" nil "63" "Re: Help with command shell error" "^From:" nil nil "11" nil nil nil nil]
	nil)
Received: from joker.cs.washington.edu (joker.cs.washington.edu [128.95.1.42]) by june.cs.washington.edu (8.8.3+CSE/7.2ju) with SMTP id DAA26690 for <voelker@june.cs.washington.edu>; Fri, 29 Nov 1996 03:47:00 -0800
Received: from june.cs.washington.edu (june.cs.washington.edu [128.95.1.4]) by joker.cs.washington.edu (8.6.12/7.2ws+) with ESMTP id DAA28047 for <voelker@joker.cs.washington.edu>; Fri, 29 Nov 1996 03:46:59 -0800
Received: from si6624.bosch.de (si6624.bosch.de [193.141.57.1]) by june.cs.washington.edu (8.8.3+CSE/7.2ju) with SMTP id CAA25591 for <ntemacs-users@cs.washington.edu>; Fri, 29 Nov 1996 02:34:13 -0800
Received: by si6624.bosch.de (5.65/rg-150294); 	id AA01172; Fri, 29 Nov 96 11:35:12 +0100
Received: from bkh0001.bk.bosch.de by si4640.si.bosch.de with SMTP id AA23139   (5.67b8+/IDA-1.5-DNgate-2.0-11 for darnell@scipo.usq.edu.au); Fri, 29 Nov 1996 11:33:37 GMT
Received: from bkmf3.bk.bosch.de by bkh0001.bk.bosch.de with SMTP 	(1.38.193.4/16.2) id AA18120; Fri, 29 Nov 1996 11:36:27 +0100
Received: by bkmf3 (5.x/SMI-SVR4) 	id AA08779; Fri, 29 Nov 1996 11:32:16 +0100
Message-Id: <9611291032.AA08779@bkmf3>
X-Sun-Charset: US-ASCII
X-Charset: ISO_8859-1
X-Char-Esc: 29
From: eyssele@bk.bosch.de (Helmut EYSSELE)
To: ntemacs-users@cs.washington.edu, darnell@scipo.usq.edu.au
Subject: Re: Help with command shell error
Date: Fri, 29 Nov 1996 11:32:16 +0100


> 
> When running AUCTEX I get this message
> ++++++++++++++++++++++++++++++++
> Running `LaTeX2e' on `foo'
>  with ``latex '\nonstopmode\input{exam_soln.tex}'''
> Specified COMMAND search directory bad
> Too many parameters
> Too many parameters
> 
> 
> Microsoft(R) Windows 95
>    (C)Copyright Microsoft Corp 1981-1995.
> ++++++++++++++++++++++++++++++++++
> Does the "Specified COMMAND search directory bad" message mean that the   
>  file 'foo' is not found because the full pathname is required?
> 
> What about the "Too many parameters" message? How does this arise?
> 

To run AUCTeX under Windows 95 you must customize the files tex-site.el
and tex-buf.el. tex-buf.el can be customized by overload the definitions
in the file [._]emacs:

  ;; Customizing tex-buf.el:

  (defvar TeX-process-asynchronous (not (eq system-type '(ms-dos windows-nt)))
    "*Use asynchronous processes.")	;; included in this list _^

  (defvar TeX-shell
    (if (memq system-type '(ms-dos emx windows-nt))
        shell-file-name		    ;; ^_ included in this list
      "C:\\WINDOWS\\COMMAND.COM")   ;; "/bin/sh" changed
    "Name of shell used to parse TeX commands.")

  (defvar TeX-shell-command-option  ;; v- included in this list
    (cond ((eq system-type '(ms-dos windows-nt))
	   (if (boundp 'shell-command-option)
	       shell-command-option
	     "/c"))
	  (t				;Unix & EMX (Emacs 19 port to OS/2)
	   "-c"))
    "Shell argument indicating that next argument is the command.")

  ;; End of Site Customization.

You must include the system-type windows-nt! The latter error messages
come from the wrong specifyer "-c" by calling command.com.

Furthermore I have not achieved that the command LaTeX works fine. Only
the command LaTeX Interactive works fine under Windows 95.

I hope this is helpful.


			Helmut EYSSELE
      __   ______	Bosch Telecom GmbH
     / /  / ____/	Abt. UC-RF/EBG
    / /__/ /__		71520 Backnang, GERMANY
   / ___  ___/		  EMAIL: eyssele@bk.bosch.de
  / /  / /___		    and: helmut.eyssele@bk.bosch.de
 /_/  /_____/		  PHONE: +49-7191-13-2795
___________________________________________________________

From owner-ntemacs-users@trout  Fri Mar  7 13:05:16 1997
X-VM-v5-Data: ([nil nil nil nil nil nil nil nil nil]
	[nil "Fri" " 7" "March" "1997" "15:16:11" "-0500" "Walter Neumann" "neumann@math.duke.edu" nil "15" "tex-mode.el and emtex" "^From:" nil nil "3" nil nil nil nil]
	nil)
Received: from joker.cs.washington.edu (joker.cs.washington.edu [128.95.1.42]) by june.cs.washington.edu (8.8.5+CS/7.2ju) with SMTP id NAA16475 for <voelker@june.cs.washington.edu>; Fri, 7 Mar 1997 13:05:16 -0800
Received: from trout.cs.washington.edu (trout.cs.washington.edu [128.95.1.178]) by joker.cs.washington.edu (8.6.12/7.2ws+) with ESMTP id NAA19759 for <voelker@joker.cs.washington.edu>; Fri, 7 Mar 1997 13:05:14 -0800
Received: from cauchy.math.duke.edu (cauchy.math.duke.edu [152.3.25.8]) by trout.cs.washington.edu (8.8.5+CS/7.2ws+) with ESMTP id MAA27934 for <ntemacs-users@cs.washington.edu>; Fri, 7 Mar 1997 12:17:35 -0800 (PST)
Received: (from neumann@localhost) by cauchy.math.duke.edu (8.8.2/8.7.1) id PAA11407 for ntemacs-users@cs.washington.edu; Fri, 7 Mar 1997 15:16:11 -0500 (EST)
Message-Id: <199703072016.PAA11407@cauchy.math.duke.edu>
X-Mailer: ELM [version 2.4 PL23]
MIME-Version: 1.0
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: 7bit
From: Walter Neumann <neumann@math.duke.edu>
To: ntemacs-users@cs.washington.edu
Subject: tex-mode.el and emtex
Date: Fri, 7 Mar 1997 15:16:11 -0500 (EST)

I have hacked tex-mode.el to work with emtex. The problem sith emtex
is that tex.exe wants unix filenames (and can handle long file names
once bound with rsx) while the screen previewer dviscr wants dos
8.3 (and also wants "start command /c" prepended rather than "&"
appended to run in background).  Since it is a bit specialised I
won't include it here.  I've put it at 

ftp://neumann.maths.mu.oz.au/Pub/tex-mode.el

Read the start of it for details.

I gather from other peoples comments that auctex works as is.  I
havn't tried.

--walter neumann

From rms@gnu.ai.mit.edu  Wed Jun  4 13:40:46 1997
X-VM-v5-Data: ([nil nil nil nil nil nil nil nil nil]
	[nil "Wed" " 4" "June" "1997" "16:40:42" "-0400" "Richard Stallman" "rms@gnu.ai.mit.edu" nil "32" "[gronke@deletethis.acpub.duke.edu: Emacs won't finish tex compile unless on c:]" "^From:" nil nil "6" nil nil nil nil]
	nil)
Received: from psilocin.gnu.ai.mit.edu (psilocin.gnu.ai.mit.edu [128.52.46.62]) by june.cs.washington.edu (8.8.5+CS/7.2ju) with SMTP id NAA10610 for <voelker@cs.washington.edu>; Wed, 4 Jun 1997 13:40:45 -0700
Received: by psilocin.gnu.ai.mit.edu (8.6.12/8.6.12GNU) id QAA03907; Wed, 4 Jun 1997 16:40:42 -0400
Message-Id: <199706042040.QAA03907@psilocin.gnu.ai.mit.edu>
From: Richard Stallman <rms@gnu.ai.mit.edu>
To: voelker@cs.washington.edu
Subject: [gronke@deletethis.acpub.duke.edu: Emacs won't finish tex compile unless on c:]
Date: Wed, 4 Jun 1997 16:40:42 -0400

------- Start of forwarded message -------
To: gnu-emacs-bug@prep.ai.mit.edu
From: gronke@deletethis.acpub.duke.edu (Paul Gronke)
Newsgroups: gnu.emacs.bug,gnu.emacs.help
Subject: Emacs won't finish tex compile unless on c:
Date: Wed, 04 Jun 97 18:45:24 GMT
Organization: Duke University
X-Newsreader: News Xpress 2.0 Beta #2
X-No-Archive: yes

Is this a bug?  Or some oddity in my setup or in the Emacs/command shell 
interaction?

I am running Emacs 19.34 on Win95 machine.  I moved emacs, auctex, and miktex 
installation to a removable hard drive (G:) and changed appropriate directory, 
registry entries.

TeX stopped working, or more properly, Emacs seemed to think that LaTeX was 
still compiling even after it had finished.  I had to kill the program to 
exit.

However, if I move the emacs files back to the C:\ drive and leave everything 
else on G:, all works fine.

Why would this be? 

Paul Gronke		Duke University
gronke@acpub.duke.edu	Dept of Political Science

** Note correct email, do not reply directly (done to
foil email spammers) **
------- End of forwarded message -------

From owner-ntemacs-users@cs.washington.edu  Thu Jun 26 05:01:17 1997
X-VM-v5-Data: ([nil nil nil nil nil nil nil nil nil]
	[nil "Thu" "26" "June" "1997" "06:26:41" "-0500" "Douglas Gray Stephens" "gray@austin.apc.slb.com" nil "76" "Re: EMACS and LATEX" "^From:" nil nil "6" nil nil nil nil]
	nil)
Received: from joker.cs.washington.edu (joker.cs.washington.edu [128.95.1.42]) by june.cs.washington.edu (8.8.5+CS/7.2ju) with SMTP id FAA26146 for <voelker@june.cs.washington.edu>; Thu, 26 Jun 1997 05:01:16 -0700
Received: from trout.cs.washington.edu (trout.cs.washington.edu [128.95.1.178]) by joker.cs.washington.edu (8.6.12/7.2ws+) with ESMTP id FAA20134 for <voelker@joker.cs.washington.edu>; Thu, 26 Jun 1997 05:01:15 -0700
Received: (majordom@localhost) by trout.cs.washington.edu (8.8.5+CS/7.2ws+) id EAA15237 for ntemacs-users-outgoing; Thu, 26 Jun 1997 04:30:26 -0700 (PDT)
Received: from june.cs.washington.edu (june.cs.washington.edu [128.95.1.4]) by trout.cs.washington.edu (8.8.5+CS/7.2ws+) with ESMTP id EAA15233 for <ntemacs-users@trout.cs.washington.edu>; Thu, 26 Jun 1997 04:30:24 -0700 (PDT)
Received: from austin.asc.slb.com (austin.asc.slb.com [163.185.74.6]) by june.cs.washington.edu (8.8.5+CS/7.2ju) with SMTP id EAA25380 for <ntemacs-users@cs.washington.edu>; Thu, 26 Jun 1997 04:30:22 -0700
Received: from mocha (mocha.austin.asc.slb.com) by austin.asc.slb.com (4.1/relay.970604.pcm) 	id AA28162 for <ntemacs-users@cs.washington.edu>; Thu, 26 Jun 97 06:30:14 CDT
Received: from ICE-APC.austin.apc.slb.com by mocha (SMI-8.6/client.nfs.930922a) 	id GAA29346; Thu, 26 Jun 1997 06:25:29 -0500
Message-Id: <4451-Thu26Jun1997062641-0500-gray@austin.apc.slb.com>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
In-Reply-To: <33B23DCB.11E3078@informatik.uni-freiburg.de> (bieniek@informatik.uni-freiburg.de)
References: <33B23DCB.11E3078@informatik.uni-freiburg.de>
X-Mailer: VM 6.27 under Emacs 19.34.1
Precedence: bulk
From: gray@austin.apc.slb.com (Douglas Gray Stephens)
Sender: owner-ntemacs-users@cs.washington.edu
To: Andreas Bieniek <bieniek@informatik.uni-freiburg.de>
Cc: ntemacs-users@cs.washington.edu
Subject: Re: EMACS and LATEX
Date: Thu, 26 Jun 1997 06:26:41 -0500


Andreas,

At 12:00 on 26-June-1997, Andreas Bieniek wrote:
 > Hi,
 > 
 > Has anybody succeeded in installing EMACS and LATEX on an
 > NT machine so that you can run latex, dvips and the dvi-viewer
 > out of the editor ?
 > 
 > I have been workin on that for a while, but without any success.
 > I tried the packages emtex and gtex (with an excellent previer and
 > which comes in combinarion with a micro-emacs port).
 > 
 > To run latex seems to be no problem with both packages,
 > but the dvi previer is called in unix syntax:
 > 
 > The absolute path name has / in it, instead of \ used
 > for DOS programs. Since I am not familiar with lisp I do not know
 > how and where to change that.
 > 
 > I would appreciate any help or suggestions.

I'm using the miktex, and have things working after modifying emacs'
tex-mode.el in the function tex-region, by replacing
    (tex-send-command tex-shell-cd-command zap-directory)
with
    ;; Thu 30-Jan-1997; Douglas Gray Stephens 
    ;; Handling / to \ for cd on DOS
    (let ((char-pointer 0)
	  (dos-directory "")
	  )
      (condition-case nil
	  (while (substring zap-directory char-pointer (+ char-pointer 1))
	    (setq dos-directory (concat dos-directory
					(if (string= (substring zap-directory char-pointer (+ char-pointer 1)) "/")
					    "\\"
					  (substring zap-directory char-pointer (+ char-pointer 1))
					  )
					)
		  char-pointer (+ char-pointer 1))
	    )
	(error nil)
	)
      (tex-send-command tex-shell-cd-command dos-directory)
      )
    ;; was    
    ;;  (tex-send-command tex-shell-cd-command zap-directory)
    ;; End DGS's changes

I have a minor problem, in that running tex or latex, in that I get an
error:
 Process tex-shell not running
when I run tex or latex (but not on the first occurence).  I just hit 
 Ctrl-C b
a second time, and the shell starts.  I think there may be a timing
issue, which I've not spent time on.  On my Windows 95 machine, I
suppress the killing of the process, so do not have the problem.

I hope that this helps,

Douglas.

-- 

================================
Dr. Douglas GRAY STEPHENS        
Schlumberger Austin Product Centre,
8311 North FM 620,
AUSTIN,
TX 78726

Phone +1 512 331 3717
Fax   +1 512 331 3760
Email DGrayStephens@slb.com
================================

