From: steibel@venus.cs.umbc.edu (David M. Steibel)
Subject: Frequently Asked Questions for Demacs (Demacs FAQ)
Organization: University of Maryland Baltimore Campus
Date: Tue, 6 Oct 1992 02:14:48 GMT

Frequently Asked Questions for Demacs (Demacs FAQ)

Please send any comments, inaccuracies or revisions to steibel@cs.umbc.edu
--
Hello again folks,

I had planned on having the "brand new and improved" Demacs FAQ out by
now, but its looking like it will take much longer than I had planned
(as usual).  Therefore, I am reposting the old FAQ.

Note that the only thing that changed in the FAQ from last time in the
location where the FAQ, and files mentioned in the FAQ, are stored.
The old address was algol.cs.umbc.edu.  The new one is
archive.cs.umbc.edu.

Also, there is an error in the emacs.bat file which is created using the
installation method outlined in the FAQ.  After installation, change 
the lines in the file emacs.bat

from                                  to
set home = d:/emacs                   set home = c:/demacs
set termcap = c:/emacs/termcap        set termcap = c:/demacs/termcap
set EmacsLoadPath = c:/emacs/lisp     set EmacsLoadPath = c:/demacs/lisp
set EmacsExecPath = c:/emacs/etc      set EmacsExecPath = c:/demacs/etc

Again, I'm sorry about not being able to post the new FAQ.  It has already
been rewritten, and I've added a number of patches, but its not in
a form ready to distribute.  Look for it around next month (hopefully).

--
1) What is Demacs.

Demacs is a port of GNU Emacs 18.55 (and part of 18.57) to MS-DOS machines 
written by Manubu Higashida and HIRANO Satoshi at the University of Tokyo, 
Japan.  It is currently in version 1.2.0 (1991/12/12).

2) What kind of equipment, software do I need to run Demacs?

The main platform used to run Demacs is a 386 or 486 machine using MS-DOS
3.0 or later.  You should also use an XMS manager such as ('HIMEM.SYS') or a 
VCPI memory manager such as ('EMM386.EXE'), or ('QEMM').  {I'm not sure
at this time whether an XMS memory manager is required.  I do know that
Demacs will work with a combination of XMS and VCPI or with XMS alone.}

Demacs will also run on the AX J-3100, the NEC PC-9801, Hi-res. PC-98, and 
EPSON PC-386.  However I have absolutely no familiarity with any of these
machines.  The rest of this FAQ will deal with 386/486 and compatibles.

2b) Why won't Demacs work on my 286 (or earlier models)?

Demacs uses 32-bit protected mode.  This is one of the new features in the 
386/486 line of CPUs.

3) Why doesn't Demacs work with Windows or OS/2 ?.

When MS-DOS was written, it was designed to address a maximum of one
megabyte of memory.  In order to have more than one application use
memory over this one megabyte limit, it is neccassary to use an
interface to allow the two applications to cooperate.  Two of these
types of interfaces are VCPI (Virtual Control Program Interface), and
DPMI (Dos Protected Mode Interface).  These two schemes are incompatible
and using two programs with different schemes will generally crash the
system.  Unfortunately, Demacs works with VCPI, while both Windows and
OS/2 both use DPMI.

3) Where do I find a copy of Demacs, and how do I install it?

Detailed instructions are included at the end of this FAQ.

4) I tried to install Demacs and had a problem . . .

Try to find your problem yourself by going through the suggestions in the
installation instructions.  If you have any problems, please send me
mail and I will try to help.  I think that the install file that I
wrote should fix all installation problems that I have seen.

5) I tried to run Demacs and recieved the error 
    "Cannot run with CPU set to V86 mode - must be in real mode"

It basically means you've clashed upper memory management in some way.
Refer back to question three.  The most common reason for this problem
is related to the emm386.sys.  Please refer to the installation instruction
contained at the end of this file for possible problems with the way
you are handling emm386.sys.  

6) When I type in "m-x shell-command" it says "filename not found" and
    the filename given is my ('command.com') file (or equivalant)

Make sure that your "set shell = c:\command.com" is set properly.  I will
describe my case and hopefully it will help.  I have Demacs installed on
my "c:" drive.  I also have my command.com file in both my "c:\" directory
and my "d:\" directory (where "d:\" is RAMdisk).  I have tried the 
permutations of . . . 

"set shell=d:command.com", "set shell=c:command.com", 
"set shell=d:/command.com", "set shell=c:/command.com",
"set shell=d:\command.com", "set shell=c:\command.com",

Only "set shell=c:\command.com" worked properly.  Note the backslash and
location on the main drive.

7) I tried typing in a M-x command and it didn't work. For example,
   "M-x hanoi" says "Cannot open load file: hanoi"

Not all of the M-x files that come with standard Emacs are distributed with 
Demacs.  Only those files that had to be modified in order for Demacs to
work properly were included.  You can try getting them from a standard 
Emacs Lisp (or E-Lisp) distribution.  Details on E-Lisp sites can be 
found in the comp.emacs FAQ.  Also, details for finding the comp.emacs FAQ
are listed below.

I'll be a little more specific on the how to add M-x files.  Basically, 
files will be stored in the "filename.el" designation, where filename is
the M-x command.  For example, the code to run "M-x hanoi" (a cute little
demonstration for solving the towers of hanoi puzzle) is stored in the 
filename "hanoi.el" on an E-Lisp distribution somewhere.  Copy the filename
corresponding to the M-x function you want to include into your demacs/lisp 
directory and type (in demacs) "M-x byte-compile-file<enter>filename.el"
For example, "copy hanoi.el \demacs\lisp" and in Demacs 
"M-x byte-compile-file<enter>hanoi.el".  This condenses the file into
"filename.elc" (or "hanoi.elc" for our example).  The ".elc" means that
it will load, and execute a little faster.  Also, it is of note that
filenames with a ".elc" extension are loaded in preference to filenames with
a ".el" extension.  In other words, be sure to erase the ".elc" file, or
byte-compile it over again before testing modifications.  

Also it is important to keep in mind that many distributions of elisp
use filenames that are longer than 8 characters.  It is neccassary to
change these, and also to modify their loading-in points so that
the length is no more than 8 characters + ".el".

Hopefully, I can get together a comprehensive list of standard E-Lisp
files that work with Demacs using the M-x keys in the future.  So far I 
have been told that the following work

boss       by Masanobu Umeda "Boss screen for getris"
fortran.el (from std. dist) "formats format code"
getris     by MAEDA Atusi "Clone of famous Russion game"
gomuku     by P. Schnoebelen "Gomoku Game"
hanoi      (from std. dist) "solves towers of hanoi puzzle"
hexl-mode  by Keith Gabryelski "edit a file in hex dump format"
show-time  "digital clock" {second part doesn't work}
sort       (from std. dist) "commands to sort text in buffer" used for getris
tabify.el  (from std. dist) "changes spaces to tabs and vice-versa"

If you've added any M-x files, and can verify that they work unmodified, 
please contact me with the filename, site, and path of the file.  Also, if
you've made any modifications for making E-Lisp functions that normally
do not work under Demacs to work, please contact me with that information
or post it.

I assume that the above files can be easily found by using the elisp
finding instruction outlined in the comp.emacs FAQ.  

8) "M-x shell" does not work when I port it.  It gives me an error with
   the word "process" in it.  
8b) I get an error with the word "process" in it from doing something else.

Unfortunately, MS-DOS and UNIX are two entirely different operating
systems.  Basically UNIX gives you the ability to spawn child processes
monitor process information, and redirect input/output in ways that
MS-DOS is incapable of handling.  If a function or variable with the
"process" keyword is encountered, then an error will result.  Look under
the header "Differences from UNIX Version" in the "demacs/readme" file 
included in the main demacs distribution for a listing of these incompatible 
functions and variables.

However, Demacs does include two provisions for generating shells.

Full Screen Shells.
Typing control-z in Demacs will generate a full screen Dos shell similar 
to that provided by other programs.  Typing "exit" will return you to Demacs 
which automatically refreshes the screen.

Non-interactive shell where output is stored in a buffer/window.
Typing "M-x shell-command" will prompt you for a command to run in a window.  
This is a very powerful, yet tricky command.  The program to be run MUST 
be non-interactive!  It should not be expecting user input, or it will have 
unpredictable results.  Examples of noninteractive uses for this command
include compiling files in order to to view the error messages in a window, 
and running text-based programs with pipes.

Also, a further comment of note which I haven't had a chance to try out
because I erased DOSSHELL a long time ago.

> From: "B.C." Moszkowski <Ben.Moszkowski@newcastle.ac.uk>
>
> I have a 386 with 8meg and run demacs under dosshell.  I suspend
> demacs and then do a task switch to another program.  This is quite
> simple and reliable for most of my needs.  Of course, one can only task
> switch AFTER suspending demacs, since it is running in protected mode.
> I can therefore run demacs, 386-emtex, 386-perl, etc with plenty of
> resources and a more stable shell than the one obtained by just
> suspending demacs.

9) In dired (and possible elsewhere), the commands make-directory, and
   remove-directory do not function properly.

This is a genuine error in Demacs.  The steps for fixing this problem are
outlined in a patch at the end of this message.  The entire file as 
changed is also included in the file dem120z.lzh, which is included
in the deminst.exe installation file talked about below.

10) I have a problem having to do with the time field
10b) My times are different in dired.el than from typing "dir".
10c) Demacs has problems saving files because it misinterprets the time
10d) Demacs keeps locking my files for no reason sporatically.

I was experiencing problem b), and one of the commenters on the FAQ 
mentioned that one way to solve this is to set the time variable like so

set tz=cdt-9

I did this and suddenly was recieving errors c) and d) and tons of other
ones like crazy.  I also lost a few hours work done on revising the FAQ.
I therefore recommend that you set it like so . . .

set tz=mst

which is supposed to set the time to mountain standard time, although it
doesn't so that all of your times in dired are wrong.  However, I have 
heard about many time related errors with this version of Demacs on uunet,  
and I have never had any problems with 'set tz=mst' asside from the 
dired problem already mentioned.

11) Does anyone have the patch to allow me to use nansi/nnansi drivers
   instead of the ansi.sys included with MS-DOS?

They are included in the current distribution in the ('termcap') file.
Basically, for those that don't already know, ('nansi.sys'), and 
('nnansi.sys') are both ('ansi.sys') replacement files written in assembly 
code.  They are both faster than their MS-DOS counterpart.  However there is 
a slight problem with using the nansi, and nnansi drivers.  To my knowledge,
they do not properly support function key codes that produce a prefix that
contains control-@ Meta.  These include the function keys F11/F12, and a few 
other keys combinations.

12) How do I change the color of the screen?

A patch is included at the end of this FAQ to change the color to a white 
foreground on a blue backround with a white on red status bar.  It can be 
modified to produce other colors.  Also, the modified file is included
in dem120z.lzh located in deminst.exe discussed towards the end of the FAQ.

13) How do I load Demacs with more than the default number of columns,
    and rows.  

Change your video mode before loading Demacs then add the following lines
to "demacs/_emacs".

(set-screen-height #)
(set-screen-width #)

I have heard that there is a #define in the c code from which Demacs is
compiled that sets the maximum number of usable rows to 128.  Although
it is possible to (set-screen-width 132), many people say there are
problems unless you recompile Demacs.

Also, there is code included at the end of the FAQ to change your number
of rows from 25 to 43 for EGA or 50 for VGA, and back again.

14) I would like to add foreign characters, such as the umlaute (sp?) and 
    german double s.  How can I do this?

Look into the file called ('umlaut.txt') on the FTP site mentioned below.
This contains a list of suggestions sent to me for adding Dirk Zabel's
umlaut.el.  Note: the documentation for umlaute.el is in German.

15) Is there a TeX editing mode for Demacs?

Auc-Tex works partially under Demacs, except for commands which require
a called process.  Look into the file ('auc-tex.txt') for a discription
of some of the commands which work, and the ones which don't work.

16) I seem to have problems with some of the included files such as
    isearch and fill.  Whats going on?

Apparently, there was a problem with some of the files that are pre-loaded
into Demacs.  To use fill, and isearch, you have to load in the files
isearch.el and fill.el.  I've also heard that the byte-compile feature is
buggy and could have something to do with it.  If you continue to have
problems with loading the files, you might want to either byte-compile
them in UNIX and download them, or stick with the slower non-byte-compiled
copies.

I have also heard that the Demacs will switch to the buggy version of
fill.el randomly, and that fill.el has problems with toggle-pass8-mode.
Unfortunately, I haven't received any examples to try out, so I haven't
been able to verify any of these bugs, but if you've been getting them,
hopefully this has been of some help.

17) Can I use etags in Demacs with globbing?

There is a file called ('detags.zip') on the FTP site mentioned below
which is supposed to do just that and it says (etags *.[ch]) and comes
with source code.  I have no idea what etags is or globbing so I haven't
tested it yet.

18) When I shell out into a full screen DOS session.  Sometimes I forget
    and type "demacs" again.  Why doesn't it detect itself like in UNIX?

Because it doesn't.  However, it is possible to change the name of the
file you use to call demacs while demacs is running, then change it
back after exiting demacs.  However this is complicated, and I use
NDOS which allows aliasing the program name and unliasing the name similar
to UNIX.  However, if someone writes it, I will include it here.

Another way to prevent yourself from making this type of error is to
change the prompt to include a "Type EXIT to go back to Demacs message"
before loading demacs and change it back afterwards.

19) I want to define more keys like F11, and F12.  How?

The answer to this is included in the file dem120z.lzh, which is inluded
in deminst.exe and discussed at the end of the message.

20) How do I use online help?  
    How do I get printed manuals?  
    Where can I find other source of help?  
    I have a non-demacs specific question and . . .

Because Demacs is such an incredibly good copy of GNU Emacs, all of these
questions can be answered by refering to the Comp.Emacs FAQ.  This FAQ
should be located in the same system where you have found this document.
Alternate sources of information are also detailed below.

21) Are there any mailing lists for Demacs?

No there is not one currently.  However, there is a mailing list designed
for djgpp which is the compiler used to compile demacs.  Details for
subscribing to it are found in the comp.emacs FAQ in question 124.

If you feel interested in joining a Demacs mailing list, send me mail.
I will try to form one if enough people are interested.

22) Where can I find copies of the material mentioned in this document?

The editor of this document (me) has made available all of the files
mentioned in this document in the following FTP site.

archive.cs.umbc.edu:pub/demacs

I will append a list of the of the files contained at this site towards
the end of the document and give an explanation of each file's 
purpose.

If you do not have access to FTP from your site, then contact me and
I will try to work out a method for delivering the files to you.  If
you do not have email then I'm afraid that I can't help you very much.
I'm only an undergraduate with no permanent mail drop.

----------------------------------------------------------------------------
Other unanswered questions, and my thoughts on them.

*) Can I use a mouse in Demacs, ala x-windows and Epoch?
  
No one has done this yet as far as I know.  To me, personally, this is low
on my list of programming priorities to work on.  I assume is is possible to
patch the appropriate functions into the c-code, as in any other moused
based program (of which there are millions), and name them to correspond
to appropriate x-windows, and epoch functions.  Unfortunately, I have
no experience with coding mouse functions in MSDOS.  Also, I haven't used
x-windows terminals so I have no sense of a mouse being particularly
useful for the amount of effort needed to implement.  

In summary for this question, if you REALLY need to use a mouse in Demacs,
then code it yourself and make sure to emulate already used x-windows,
or Epoch-type functions.  And also tell us when you've done it, because
ALOT of people seem to be interested in this feature.  I'm somewhat certain
that it would not be too hard of a task.  Just look up the appropriate
functions in a X-windows/epoch, and read the little section on "Functions
written in C (primitives)" in the E-Lisp manual.  Especially easy for all
of you combination Emacs C, and DOS Mouse gurus out there. :-)

*) Can I load Demacs with only a little bit in convential RAM so that I
   can shell out with c-z and still run large programs?  

I asked this question awhile ago.  I think it's impossible, but I'd love
to see it made possible :-)

*) Is it possible to load one Demacs session, exit it and have it pick off
   from where I left off if I were to want to run a larger program?  Can I 
   power down/reset the system with the same option? 

I had planned on doing dsome work on this myself but many other things have
come up to work on that I feel are important.  I would assume it would be 
possible to do this in c as a full memory dump, but I have no idea at this 
time on how to implement it.  It certainly would make a GREAT alternative
to suspend-emacs.

Special thanks go to Daniel G. Simmons, who's help in this has been great.
Also, thanks to all of the people who have responded to the first FAQ with
suggestions or who have posted helpful comments to comp.emacs.

--------------------------------------------------------------------------
                      | color change patch |
--------------------------------------------------------------------------

This patch will change the default color to a white on blue backround with
a white on red status line.  If you feel the desire to change the colors
from those listed, look up "ansi" in you DOS manual and it should explain
how colors are changed, which colors are which values, etc.

To install it, cut out the enclosed module and insert it into your 
"~/demacs/termcap" file (It might be a good idea to make a backup first 
just in case).

#  BEGIN-------------------cut here-------------------------------------
#  IBM-PC with ANSI.SYS
#-----------------------------------------------------------------------
ibmpc|ibmpc-ansi|ANSI.SYS:\
        :li#25:co#80:bs:pt:km:bl=^G:\
        :le=\E[D:do=\E[B:\
        :al@:dl@:AL@:DL@:ic@:dc@:IC@:DC@:im@:ei@:\
        :cs@:cd@:\
        :ti=\E[44m:te=\E[m:so=\E[37;41m:se=\E[37;44m:\
        :tc=ansi:
 
ti=\E[44m  (terminal initialize)= blue background attribute
te=\E[m    (terminal end)= normal attribute
so=\E[37;41m (stand out)= white foreground and red background attribute
se=\E[37;44m (stand out end)= white foreground blue background attribute
#  END--------------------cut here---------------------------------------

-------------------------------------------------------------------------
        | Patch for Create-Directory, and Remove-Directory | 
-------------------------------------------------------------------------

I tracked the problem down to the file "~/lisp/emacs-19.el" which is a
patch file to allow compatibility with GNU Emacs version 1 9 when it
comes out.  To install this patch, make a copy of "~/lisp/emacs-19.el"
and put it in a safe place.  Then load up Demacs (or a text editor of
your choice) and add the following lines right after the header
information.

;;--Patch for md/rd support for emacs-19.el-----cut here------------------
;;
;; Modified on 5-2-92 by David M. Steibel (DMS) for Demacs 1.2.0 (91/12/12) 
;;    - added convert-filename-ibmpc; changed unix mkdir/rmdir to dos md/rd
;; Modified on 6-1-92 by DMS
;;    - changed convert-filename-ibmpc based on suggeston by Sebastian Kremer
;; Modified on 7-2-92 by DMS
;;    - cleaned it up for install.bat
;;
(defun convert-filename-ibmpc (fn)
  (dired-replace-in-string "/" "\\" fn))
;;--------------------end of patch------------cut here-----------------------

2) find the following line in the function "remove-directory"

      (call-process "rmdir" nil nil nil fn)

   comment it out and add the following line like so... 

;      (call-process "rmdir" nil nil nil fn)
      (shell-command (format "%s%s" "rd " (convert-filename-ibmpc fn)))

3) do the same for 

    (call-process "mkdir" nil nil nil fn))

   turning it into

;    (call-process "mkdir" nil nil nil fn))
     (shell-command (format "%s%s" "md " (convert-filename-ibmpc fn))) )

That's it.  (change-filename-ibm string) will convert a string containing 
UNIX style foward slashes to DOS-style backwards slashes.  The rest is
accomplished by calling a shell command with the converted filename.
----------------------------------------------------------------------------

----------------------------------------------------------------------------
              | Change video mode and number of rows |
----------------------------------------------------------------------------

Martin Bradford <mab@mcdd1.uucp> posted the following . . .

Note: /DMS indicates I changed  his original code.  Also, I modified
      the introduction.

The following functions allow you to switch between 43/50-row and 25-row 
modes in Demacs.  In EGA mode its 43 lines, and in VGA mode its 50 lines 
so change the "set-screen-size" parameter if you have VGA.  The author 
could not get this patch to work under MS-DOS 3, and assumes it is because 
of an alternate ANSI.SYS driver being included with MS-DOS 3.

To install, cut out the 2 appropriate functions (or 3 if you use both
VGA mode and EGA mode), and paste into the end of your _emacs file.

Note: This code is NOT included in the deminstl.exe file nor in the
      dem120z.lzh file.

(defun set43 () "Changes the number of rows to 43.  
                 Only works in EGA mode" ; /DMS added the comment
  (let ((regs (make-register)))
    (set-register-value regs 'ax 3)     ; 0x19
    (int86 16 regs)                     ; 0x21
    (set-register-value regs 'ax 4370) 
    (set-register-value regs 'bl 0)
    (int86 16 regs)
    (set-register-value regs 'ax 4608) 
    (set-register-value regs 'bl 32)
    (int86 16 regs)
    (set-register-value regs 'ax 256) 
    (set-register-value regs 'cx 7)
    (int86 16 regs)
    (set-register-value regs 'ax 4400)
    (int86 16 regs)
    (set-screen-height 43) 
    (recenter) ; /DMS 
))

(defun set43 () "Changes the number of rows to 50.  
                 Only works in VGA mode" ; /DMS set43->set50, added comment
  (let ((regs (make-register)))
    (set-register-value regs 'ax 3)     ; 0x19
    (int86 16 regs)                     ; 0x21
    (set-register-value regs 'ax 4370) 
    (set-register-value regs 'bl 0)
    (int86 16 regs)
    (set-register-value regs 'ax 4608) 
    (set-register-value regs 'bl 32)
    (int86 16 regs)
    (set-register-value regs 'ax 256) 
    (set-register-value regs 'cx 7)
    (int86 16 regs)
    (set-register-value regs 'ax 4400)
    (int86 16 regs)
    (set-screen-height 50) ; /DMS changed for VGA users 
    (recenter) ; /DMS 
))

(defun set25 () "Changes the number of rows to 25 which is also the default.
                 Works in both EGA and VGA modes." ;; /DMS added the comment
  (let ((regs (make-register)))
    (set-register-value regs 'ax 3)     ; 0x19
    (int86 16 regs)                     ; 0x21
    (set-register-value regs 'ax 4353)
    (set-register-value regs 'bl 0)
    (int86 16 regs)
    (set-register-value regs 'ax 4608)
    (set-register-value regs 'bl 32)
    (int86 16 regs)
    (set-register-value regs 'ax 3)
    (int86 16 regs)
    (set-screen-height 25)
    (recenter) ; /DMS
))

----------------------------------------------------------------------------
               | Installation Instructions |
----------------------------------------------------------------------------

- Note: I will be using pc to refer to compatibles of the intel386/486
        using MS-DOS.

- These instructions assume you want the english version, and you have a
  pc although the installation program now works to a limited effect with 
  non-pc computers that are capable of running Demacs)

- I also assume that you do not have any conflicts that would give you 
  problems running programs compiled with djgpp.  

1) Obtain copys of the following files

   dem120e.lzh 
   deminstl.exe

   If you wish to have source code, obtain a copy of the file

   dem120s.lzh 

2) Run the file deminstl.exe

   It is a self-expanding archive that will contain the following files:

   lha.exe     (from lha213.exe; used to uncompress files)
   install.bat (a file to automatically install the neccassary files for you)
   install.txt (this file)
   dem120z.lzh (files required by i386/i486 compatibles)

   dem120z.lzh contains the following files.
   
   _emacs        (condensed version of _emacs, with bug fixes)
   emacs-19.el   (patch for rd/md support)
   emacs-19.elc  (compiled emacs-19.el)
   ibmpc.el      (modified key-bindings)
   ibmpc.elc     (compiled ibmpc.el)
   termcap       (changes screen color from white on black to white on blue)
   emacs.bat     (batch file to load demacs and set required environmental
                  variables)

3) - make a directory called c:\demacs
   - copy the files dem120e.lzh, dem120s.lzh (if you desire the source code),
     and dem120z.lzh (if you have an i386/i486 compatible) into c:\demacs
   - copy the file lha.exe into your path statement.

4) run install.bat

   You have the following options.

   "install pc source" installs i386/i486 compatible version, with source
   "install pc nosource" installs i386/i486 compatible version, no source
   "install nopc source" for other computers, with source
   "install nopc nosource" for other computers, with source

   install will automatically install the needed files for you in the directory
   c:\demacs.  

   A few notes on install.bat operation that differ from how results would
   be by using instructions in demacs manual:

   - c:\demacs\bin is not created.  
     Instead, needed executables are copied directly into c:\demacs
   - source code is more organized, more specifically into:
     c:\demacs\sources\src
     c:\demacs\sources\lisp
     c:\demacs\sources\go32_pc
     c:\demacs\sources\go32_98 (for nopc option)

   - c:\demacs\etc\make-doc.c is deleted (for nosource option)
   - c:\demacs\demacs98 is deleted (for pc option)
   - c:\demacs\lisp\term files not for pc are deleted (for pc option)

   - the files in dem120z.lzh are copied in place of the originals (for pc)
     the original versions are renamed as follows.
     c:\demacs\_emacs -> c:\demacs\_emacs.old
     c:\demacs\termcap -> c:\demacs\termcap.old
     c:\demacs\lisp\emacs-19.el -> c:\demacs\emacs-19.old
     c:\demacs\lisp\term\ibmpc.el -> c:\demacs\ibmpc.old

5) Check your config.sys file to ensure the following conditions are met.

   A) You must load ansi.sys in your config.sys.  If it isn't loaded,
      add the statement
  
      set device=c:\dos\ansi.sys

      into your config.sys file, where "c:\dos\ansi.sys" is the path and
      filename pointing to the ansi.sys that comes with MS-DOS.  Also note
      now that using a non-Microsoft version of ANSI.SYS could result in
      problems for you.

   B) You must have the proper memory manager installed.  You must also
      have at least one megabyte of extended memory free to load demacs.
      For example, include the following statement in your config.sys

      set device=c:\dos\himem.sys

      Also, if you use extended memory for other programs, you should
      use emm386, where at least one megabyte of memory is free after
      other programs for demacs.  For example, I have 4 megs. of memory
      with a 1.5 meg RAMDrive, so I include the statement

      set device=c:\dos\emm386.sys 2880

      Note that emm386.sys doesn't HAVE to be used if no other programs
      besides Demacs use extended memory.  Also certain switches on
      the emm386.sys statement will result in demacs not operating 
      properly.
      
   C) You must have the proper amount of environmental space designated.
      If you receive the message "Out of environment space" when loading
      then you must allocate more.  It is suggested to increment it in
      stages of 1/2k.  For example, do the following increments in 
      config.sys until your problem is gone.  

      set shell=c:\command.com
      set shell=c:\command.com /e:512
      set shell=c:\command.com /e:1024
      etc..

6) Modifications to emacs.bat to customize environmental variables.
 
   The following modifications to the file emacs.bat are recommended.

   set go32tmp = c:/temp

   should be modified to contain the directory name of your temporary
   directory.  Optionally, you can avoid this modification by making
   a subdirectory called c:\temp

   set user = root

   This should be changed to reflect your name or harddrive name.  However,
   leaving it as root isn't an incredibly bad idea because you in effect
   have root priviledges as far as control to your harddrive.  The only
   place I've seen this variable used is in dired.

7) Modification of the file c:\demacs\_emacs

   If you wish for the delete key to generate a control-h, which will
   call help, instead of deleting the next character, then you will
   wish to add a semi-colon in front of the following line.

   (load-library "term/bobcat")   ;;; swaps BS (C-h) and DEL

   If you wish to have a help template shown on the screen while editing,
   then you will wish to remove the semi-colon from in front of the 
   following line.

   ;  (setq console-is-with-function-key-label t)

   The most recent version of this file can be found in the FTP site
   Archive.cs.umbc.edu:pub/demacs

   If you have any comments, or problems with installation, please contact 
   steibel@cs.umbc.edu (David M. Steibel)

--------------------------------------------------------------------------

----------------------------------------------------------------------------
| List of file from FTP site -> archive.cs.umbc.edu : pub/demacs/00-index.txt | 
----------------------------------------------------------------------------

This directory consists of Demacs related files.

    Size Filename       Discription

     793  00-index.txt   This file
    7539  auc-tex.txt    Describes how auc-tex mode operates under Demacs 
 1076853  dem120e.lzh    Demacs executables; English version (version 1.2.0)
  673436  dem120s.lzh    Demacs source code files (version 1.2.0)
  221365  demacs.PS      Demacs manual; Postscript format
   31124  demacs.faq     Demacs Frequently Asked Questions (FAQ) (July 6)
   35934  demacs.faq.old Demacs FAQ from last month (June)
   42404  deminstl.exe   Demacs 1.2.0 self-extracting installation program
                           V1.00 (July 6, 1992)
   71485  detags.zip     Etags for Demacs with globbing; (etags *.[ch])
  201714  emacs.faq      Comp.Emacs Frequently Asked Questions (FAQ)
   44416  lha213.exe     Program used to un-lzh demacs, self extracting
    6138  umlaute.txt    tells how to add foreign characters (German)

Please obtain and read a copy of ('demacs.faq') before doing anything
else.  It contains more detailed instructions about the files contained
in this directory.

Please send any comments directly to steibel@cs.umbc.edu (David M. Steibel)




Newsgroups: comp.emacs