🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: fa.editor-p
Article #173

emacs and unix

#173
From: ucbvaxgeoff
Date: Fri, 02 Oct 1981 22:48
29 lines
1676 bytes
Multics EMACS has a mode that you can put a buffer into where the
RETURN key takes the current line and executes it as a command,
and then inserts the output into the buffer.  You can use any
editing command you like to get text into the current line before
typing RETURN, thus allowing you to use/edit previous command
lines (or even previous output!).  (And being extensible, you can
of course write commands specially tailored for editing command
lines.)

However, this doesn't make the editor and command processor into
one big program, because Multics structures things so that you
just call a subroutine with a text string to execute it as a
command line.  It is two big programs communicating with each
other.  The code in the editor to implement this feature is
conceptually rather simple (though if I said it was
implementationally simple Bernie Greenberg would probably jump on
me), involving no more than a binding for the RETURN key that
calls the command processor subroutine after binding i/o to go to
a handler that inserts into the buffer.

If things are organized this way, then there's no reason why
several different editors can't use the same command processor,
thus allowing the user his choice of editors.

Now, there are problems getting this to work well when you have
an interactive command processor such as 20x's (which has
completion) rather than one like Unix's or Multics's, but I've
given some thought to it, and I think it can be done.
Technical Details
Message-ID: <anews.Aucbvax.4186>
Path: arc1-ca.pugleaf.net!utzoo!decvax!ucbvax!geoff

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!decvax!ucbvax!geoff
From: ucbvax!geoff
Newsgroups: fa.editor-p
Subject: emacs and unix
Date: Fri, 02 Oct 1981 22:48:09 +0000
Message-ID: <anews.Aucbvax.4186>