From: cs331333@opus.acslab.umbc.edu (cs331333)
Subject: This is a complete set of installation instructions for Demacs
Organization: University of Maryland Baltimore County
Date: Wed, 15 Apr 1992 09:21:11 GMT

The follow message contains detailed instructions for the installation
of Demacs, a emacs port for MS-DOS.  If any errors are found in this
post, please E-mail me at the address contained at the end of this post.
If any suggested modifications to this message are found, also please
send me mail.  This could be the beginning of a demacs FAQ :)

Special thanks go to Daniel G. Simmons, who's help in this has been
great.  Those who have seen his directions will note similarities,
however I think this post will be more comprehensive.


To Install Demacs:
------------------
- These instructions assume you want the english version, and you have an
  ibm compatible 386 or 486...
- I also assume that you do not have any conflicts that would make problems
  running programs compiled with djgpp.  (i.e. You're not running emm386 from
  the Windows or something.)

1) Obtain a current copy of a file that properly unarcs files with a .lhz
   extension.  It must un-lhz into subdirectories.  The file that I used
   to do this was obtained from the ftp site (in archie format)
   
   rigel.acs.oakland.edu   (141.210.10.117)
     Location: /pub/msdos/arc-lbr
     FILE      rw-r--r--     44416  Aug  7  1991   lha213.exe

   To use this version of lha, run lha213.exe and it will decompress itself
   into a few files.  Copy the file "lha.exe" into your path statement.

   Note: To my knowledge, all zipped copies of Demacs do not work!  It is
         originally from Japan and is stored in .lzh format there.

2. Download the 2 following two files
   dem120e.lzh -> english version of demacs, version 1.2.0 (91/12/12)
   dem120s.lzh -> files common to both english and japanese versions.

   I obtained these files from the following ftp site (in archie format)

   mindseye.berkeley.edu   (128.32.232.19)
     Location: /pub/kanji
     DIRECTORY rwxr-xr-x       512  Dec 23 01:14   demacs

3. Make a directory to hold the files.  For the remainder of these
   instructions I will use the name c:\demacs, but you can substitute
   whatever you would like.

   Copy the two files listed in (2) into c:\demacs
   Make sure lha.exe is in your path statement

4. Decompress the files..  type in the following manually or run
   as a batch file (I assume you can cut and paste)

   Note: The decompressing program will prompt you whether you want to
         do certain things, like replace a file and/or create a
         subdirectory.  Always respond with a yes.

rem -------beginning of decommpression file-------
echo Respond to all questions with yes.
cd \demacs
lharc x /mx dem120e.lzh
lharc x /mc dem120s.lzh
lharc x /mc etc.lzh
lharc x /mc lisp.lzh
copy edired.lzh lisp
erase *.lzh
copy demacspc.exe demacs.exe
cd lisp
lharc x /mc edired.lzh
erase edired.lzh
rem --------end of decommpression file---------

Note: ^^^^ assumes your current drive is C:

4. Set up environment variables:

   Demacs needs certain variables to be set in order to function properly.
   I have created a file to do this, and other stuff.  Note that if you
   recieve the message "Out of environment space", then you will have
   to modify your config file.  Look in your DOS manual to do this if
   needed.  Generally, adding "/e:xxxx" after your shell line in the
   config.sys file will do this.  A suggested value is for xxxx is 512.

   Also, make sure you load the ansi.sys from DOS in your config.sys 
   file!  Other ansi.sys replacements will not work correctly at the
   present time.  Otherwise you will see TONS of ansi escape sequences...

   I personally call demacs using a batch file called demacs.bat
   Note: make sure you are not in the c:\demacs directory when you
         run this because it will execute demacs.exe there..

rem -------- beginning of demacs.bat -----------------------
@echo off

rem note the forward slashes.  Except for the path statement, all 'set's
rem   should contain forward slashes as in UNIX.

set tpath=%path%
set path=c:\demacs;c:\demacs\bin;%tpath%

set TERM=ibmpc
set TERMCAP=c:/demacs/termcap
set HOME=c:/demacs

rem substitute your temporary directory here.  Make sure to create it 
rem   if one doesn't already exist.
set GO32TMP=c:/temp
set TZ=MST

rem substitute YOUR name here!!
set USER=dave
set EMACSLOADPATH=c:/demacs/lisp
set EMACSEXECPATH=c:/demacs/etc
set DEMACS_KEEP=1024
set SHELL=c:/command.com

demacs.exe %1 

set path=%tpath%
set tpath=
rem -----------------end of demacs.bat ------------------------


6. Edit the _emacs file.  This is a file of E-Lisp commands that are executed
   each time you start Demacs.  It has to be edited to tell demacs that you
   have an IBMPC type machine not one of the Japanese clones.  Also, I have 
   found it necessary to add a line at the end to tell it where the Info
   directory is so that the TEXINFO system works.  So, whip out an editor,
   (EDLIN if you must) and do the following.

   A) Remove the semi-colon at the beginning of line 13.
      ;(setq dos-machine-type 'ibmpc)
           becomes:
      (setq dos-machine-type 'ibmpc)

   B) Add a line at the end of the file which reads:
      (setq Info-directory "c:/demacs/info")

   C) Optionally, remove the semi-colon at the beginning of line 19 if you
        want to switch delete and backspace.  Normally, emacs uses ctrl-h to
        mean "help", but that seems super weird to most PC users.
        ;(load-library "term/bobcat") ; swap BS (C-h) and DEL
             becomes:
        (load-library "term/bobcat") ; swap BS (C-h) and DEL
           
        Note: If you don't do this, backspace will call up help!
              If you do do this, Control-h will be a backspace and the
                DEL will call up help

7.  Try running it.

    Put the batch file in your path statement, and type 'demacs'

8. Once	it loads up, look at the tutorial -> Control-h t (or DEL t)
   Then look at TEXTINFO (where the real info is) -> Control-h i (or DEL i)

   Note: F1 is bound to c-h c-h and will be the same as the above.
--

Hats off to you, Manabu Higashida and Hirano Satoshi!  (They created Demacs)

	Dave Steibel (cs331333@umbc5.umbc.edu)

PS.  Please mail me with any problems with this help post.  I will update
     in the future with patches for changing the default colors, and
     using a non- ansi.sys file.  

PPS.  I lose this account ending around June 1st, 1992 so please don't
      send mail after then!  This is only a student account.
Newsgroups: comp.emacs