[comp.sys.atari.st] Improvements in microEMACS

braner@batcomputer.tn.cornell.edu (braner) (12/03/86)

[]

I've added some (final!! :-) features to my version of microEMACS,
features that make it easier to incorporate umacs into a larger
environment (e.g. an edit-compile-reedit scheme):

A command-line argument "-g<line_number>" (e.g. "-g239") sends the
editor to that line after reading the file.  Typical use: the compiler
can put you in the editor with the cursor on the offending line.

A second file name on the command line (e.g. "me file1 file2") causes
two windows to be opened, each showing one file.  The cursor is in the
window holding the first file (the top one).  A "-g<n>" argument, if also
present, sends the cursor to line n of file1.  Any further file names
are ignored.  Typical use: inside Micro C-Shell, using Megamax, I can now
type "me prog.c errors.out" after the first unsuccessful compilation,
and "!me" thereafter, to reedit the source while viewing Megamax' log
of errors.

A comment about data security: my version of microEMACS lets you exit
simply with ctrl-C (but with a reminder in case the text has been modified),
or with ctrl-Z to save-and-exit.  The latter is very quick and handy, but
may be a disaster if done unintentionally.  SO: if you know in advance
that you want to save the modified text under a different filename, change
the default-save-name right then (use ctrl-X ctrl-F).  If you want to
protect the text buffer (while your cat is walking on the desk, say),
put it in "view-only mode" (use Alt-E).  In that mode the file will NOT
be saved if it has been changed before, and will not be changed any more.

My version of microEMACS is 43K long (including the built-in help).  The
source is in C, about 180K long, and will compile under GEMDOS, UNIX, VMS,
CPM, and (gasp) MSDOS.  (I only tested the first two.)  You can get it by
sending a (3.5") disk and a SASE to me.  A small contribution would be
appreciated, but not required.  Please tell me if you prefer:

	Disk A:  microEMACS + docs + source + proff + ramdisk.
	Disk B:  same, but mostly ARCed, + ARC + SCODE + Uniterm v1.6d.

- Moshe Braner

Corson Hall, Cornell University, Ithaca NY 14853 USA