(speedbar-frame-mode): Check if cfx or cfy is a list, and make sure it
[bpt/emacs.git] / nt / emacs.bat
1 @echo off
2
3 REM Change this to the directory into which you installed Emacs:
4 set emacs_path=C:\emacs
5
6 REM
7 REM You shouldn't have to change any of the below.
8 REM
9
10 REM Set OS specific values.
11 set ARCH_SAVE=%PROCESSOR_ARCHITECTURE%
12 set PROCESSOR_ARCHITECTURE=
13 if "%ARCH_SAVE%" == "%PROCESSOR_ARCHITECTURE%" goto win95
14 set PROCESSOR_ARCHITECTURE=%ARCH_SAVE%
15 set SHELL=cmd
16 goto next
17
18 :win95
19 set SHELL=command
20
21 :next
22
23 set EMACSLOADPATH=%emacs_path%\lisp
24 set EMACSDATA=%emacs_path%\etc
25 set EMACSPATH=%emacs_path%\bin
26 set EMACSLOCKDIR=%emacs_path%\lock
27 set INFOPATH=%emacs_path%\info
28 set EMACSDOC=%emacs_path%\etc
29 set TERM=CMD
30
31 REM The variable HOME is used to find the startup file, ~\_emacs. Ideally,
32 REM this will not be set in this file but should already be set before
33 REM this file is invoked. If HOME is not set, use some generic default.
34
35 set HOME_SAVE=%HOME%
36 set HOME_EXISTS=yes
37 set HOME_DEFAULT=C:\
38 set HOME=
39 if "%HOME%" == "%HOME_SAVE%" set HOME_EXISTS=no
40 if "%HOME_EXISTS%" == "yes" set HOME=%HOME_SAVE%
41 if "%HOME_EXISTS%" == "no" set HOME=%HOME_DEFAULT%
42 if "%HOME_EXISTS%" == "no" echo HOME is not set! Using %HOME% as a default...
43
44 %emacs_path%\bin\emacs.exe %1 %2 %3 %4 %5 %6 %7 %8 %9