12181
Geoff Voelker <voelker@cs.washington.edu>
parents:
diff
changeset
|
1
|
Geoff Voelker <voelker@cs.washington.edu>
parents:
diff
changeset
|
2 REM Here begins emacs.bat.in
|
Geoff Voelker <voelker@cs.washington.edu>
parents:
diff
changeset
|
3
|
Geoff Voelker <voelker@cs.washington.edu>
parents:
diff
changeset
|
4 REM Set OS specific values.
|
Geoff Voelker <voelker@cs.washington.edu>
parents:
diff
changeset
|
5 set ARCH_SAVE=%PROCESSOR_ARCHITECTURE%
|
Geoff Voelker <voelker@cs.washington.edu>
parents:
diff
changeset
|
6 set PROCESSOR_ARCHITECTURE=
|
Geoff Voelker <voelker@cs.washington.edu>
parents:
diff
changeset
|
7 if "%ARCH_SAVE%" == "%PROCESSOR_ARCHITECTURE%" goto win95
|
Geoff Voelker <voelker@cs.washington.edu>
parents:
diff
changeset
|
8 set PROCESSOR_ARCHITECTURE=%ARCH_SAVE%
|
Geoff Voelker <voelker@cs.washington.edu>
parents:
diff
changeset
|
9 set SHELL=cmd
|
Geoff Voelker <voelker@cs.washington.edu>
parents:
diff
changeset
|
10 goto next
|
Geoff Voelker <voelker@cs.washington.edu>
parents:
diff
changeset
|
11
|
Geoff Voelker <voelker@cs.washington.edu>
parents:
diff
changeset
|
12 :win95
|
Geoff Voelker <voelker@cs.washington.edu>
parents:
diff
changeset
|
13 set SHELL=command
|
Geoff Voelker <voelker@cs.washington.edu>
parents:
diff
changeset
|
14
|
Geoff Voelker <voelker@cs.washington.edu>
parents:
diff
changeset
|
15 :next
|
Geoff Voelker <voelker@cs.washington.edu>
parents:
diff
changeset
|
16
|
Geoff Voelker <voelker@cs.washington.edu>
parents:
diff
changeset
|
17 set EMACSLOADPATH=%emacs_dir%\lisp
|
Geoff Voelker <voelker@cs.washington.edu>
parents:
diff
changeset
|
18 set EMACSDATA=%emacs_dir%\etc
|
Geoff Voelker <voelker@cs.washington.edu>
parents:
diff
changeset
|
19 set EMACSPATH=%emacs_dir%\bin
|
Geoff Voelker <voelker@cs.washington.edu>
parents:
diff
changeset
|
20 set EMACSLOCKDIR=%emacs_dir%\lock
|
Geoff Voelker <voelker@cs.washington.edu>
parents:
diff
changeset
|
21 set INFOPATH=%emacs_dir%\info
|
Geoff Voelker <voelker@cs.washington.edu>
parents:
diff
changeset
|
22 set EMACSDOC=%emacs_dir%\etc
|
Geoff Voelker <voelker@cs.washington.edu>
parents:
diff
changeset
|
23 set TERM=CMD
|
Geoff Voelker <voelker@cs.washington.edu>
parents:
diff
changeset
|
24
|
Geoff Voelker <voelker@cs.washington.edu>
parents:
diff
changeset
|
25 REM The variable HOME is used to find the startup file, ~\_emacs. Ideally,
|
Geoff Voelker <voelker@cs.washington.edu>
parents:
diff
changeset
|
26 REM this will not be set in this file but should already be set before
|
Geoff Voelker <voelker@cs.washington.edu>
parents:
diff
changeset
|
27 REM this file is invoked. If HOME is not set, use some generic default.
|
Geoff Voelker <voelker@cs.washington.edu>
parents:
diff
changeset
|
28
|
Geoff Voelker <voelker@cs.washington.edu>
parents:
diff
changeset
|
29 set HOME_SAVE=%HOME%
|
Geoff Voelker <voelker@cs.washington.edu>
parents:
diff
changeset
|
30 set HOME_EXISTS=yes
|
Geoff Voelker <voelker@cs.washington.edu>
parents:
diff
changeset
|
31 set HOME_DEFAULT=C:\
|
Geoff Voelker <voelker@cs.washington.edu>
parents:
diff
changeset
|
32 set HOME=
|
Geoff Voelker <voelker@cs.washington.edu>
parents:
diff
changeset
|
33 if "%HOME%" == "%HOME_SAVE%" set HOME_EXISTS=no
|
Geoff Voelker <voelker@cs.washington.edu>
parents:
diff
changeset
|
34 if "%HOME_EXISTS%" == "yes" set HOME=%HOME_SAVE%
|
Geoff Voelker <voelker@cs.washington.edu>
parents:
diff
changeset
|
35 if "%HOME_EXISTS%" == "no" set HOME=%HOME_DEFAULT%
|
Geoff Voelker <voelker@cs.washington.edu>
parents:
diff
changeset
|
36 if "%HOME_EXISTS%" == "no" echo HOME is not set! Using %HOME% as a default...
|
Geoff Voelker <voelker@cs.washington.edu>
parents:
diff
changeset
|
37
|
Geoff Voelker <voelker@cs.washington.edu>
parents:
diff
changeset
|
38 %emacs_dir%\bin\emacs.exe %1 %2 %3 %4 %5 %6 %7 %8 %9
|