Dear Jerry,
You helped me a great deal. Now tex-file works alright except for one
minor glitch. After I try to execute the same tex-file command for the
second time I get an error message: processp, nil 
If try tex-file again, it works again. So every other time it works and
every other time it fails.
I am not sure if it is of relevance but, just in case, I attach here the 
process-environment value:
Value: ("windir=C:\\WINDOWS" "USERPROFILE=C:\\Documents and
Settings\\Anatoli" "USERNAME=Anatoli" "USERDOMAIN=AMPLPC29"
"TMP=C:\\DOCUME~1\\Anatoli\\LOCALS~1\\Temp"
"TEMP=C:\\DOCUME~1\\Anatoli\\LOCALS~1\\Temp" "SystemRoot=C:\\WINDOWS"
"SystemDrive=C:" "SHELL=cmd.exe" "SESSIONNAME=Console"
"RoxioCentral=C:\\Program Files\\Common Files\\Roxio Shared\\9.0\\Roxio
Central33\\" "QTJAVA=C:\\Program
Files\\Java\\jre1.6.0_05\\lib\\ext\\QTJava.zip" "ProgramFiles=C:\\Program
Files" "PROCESSOR_REVISION=0f0b" "PROCESSOR_LEVEL=6"
"PROCESSOR_IDENTIFIER=x86 Family 6 Model 15 Stepping 11, GenuineIntel"
"PROCESSOR_ARCHITECTURE=x86"
"PATHEXT=.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH"
"PATH=C:\\Program Files\\MiKTeX
2.7\\miktex\\bin;C:\\WINDOWS\\system32;C:\\WINDOWS;C:\\WINDOWS\\System32\\Wbem;C:\\Program
Files\\NTRU Cryptosystems\\NTRU TCG Software Stack\\bin\\;C:\\Program Files\\Wave Systems
Corp\\Dell Preboot Manager\\Access Client\\v5\\;C:\\Program Files\\Common Files\\Roxio
Shared\\D!
 LLShared\\;C:\\Program Files\\Reflection\\;C:\\Program Files\\Aspell\\bin;C:\\Program
Files\\QuickTime\\QTSystem\\" "OS=Windows_NT"
"NUMBER_OF_PROCESSORS=2" "LOGONSERVER=\\\\AMPLPC29"
"HOMEPATH=\\Documents and Settings\\Anatoli" "HOMEDRIVE=C:"
"FP_NO_HOST_CHECK=NO" "ESHELL=cmd.exe"
"COMSPEC=C:\\WINDOWS\\system32\\cmd.exe" "COMPUTERNAME=AMPLPC29"
"CommonProgramFiles=C:\\Program Files\\Common Files"
"CLIENTNAME=Console" "CLASSPATH=.;C:\\Program
Files\\Java\\jre1.6.0_05\\lib\\ext\\QTJava.zip" "APPDATA=C:\\Documents and
Settings\\Anatoli\\Application Data" "ALLUSERSPROFILE=C:\\Documents and
Settings\\All Users")
Many thanks,
Anatoli
_________________________________________________________________________
Professor Anatoli Kheifets, FAPS       
http://rsphysse.anu.edu.au/~ask107
Institute of Advanced Studies         _--_|\  email:A.Kheifetsï¼ anu.edu.au
Research School of Physical Sciences /     *\   Work phone: 612 6125 2478
The Australian National University   \_.--\_/   Work  fax : 612 6125 2452
Canberra ACT 0200, Australia               v    Home phone: 612 6242 5641
_________________________________________________________________________
On Wed, 23 Apr 2008, Jerry James wrote:
 2008/4/21 Anatoli Kheifets <A.Kheifets(a)anu.edu.au>:
 
 >  Dear Bug Team,
 >
 > I came across the following program on windows installation of
 > Xemacs 21.4.21
 >
 > TeX mode commands tex-buffer, tex-region do not work
 > Error message displayed
 > Searching for program: No such file or directory, /bin/sh
 >
 > On the other hand, shell command latex file.tex works OK
 >
 
 Is the environment variable SHELL set to anything?  How about ESHELL?  If
 neither is set, does setting one of them to "cmd.exe" help?
 -- 
 Jerry James
 
http://loganjerry.googlepages.com/
  
_______________________________________________
XEmacs-Beta mailing list
XEmacs-Beta(a)xemacs.org
http://calypso.tux.org/cgi-bin/mailman/listinfo/xemacs-beta