[cctalk] Re: Emacs on v7

2023-08-24 Thread Warner Losh via cctalk
On Thu, Aug 24, 2023 at 5:26 PM Adam Thornton via cctalk <
cctalk@classiccmp.org> wrote:

> I finally got an Emacs running on v7--it's on misspiggy at LCML now as
> "ue".
>
> It's Microemacs 3.6; what I did was to clone
> https://github.com/troglobit/MicroEMACS and check out the first commit.
>
> Some experimentation later, it had the usual problem with v7 and DEC
> linkers that not all the function names (er, more generally exported
> symbols, but in this case, function names) were unique in the first 7
> characters (which is 6 if you're working with DEC OSes).  So a bit of sed
> later and I had something that built, linked, and appears to run with
> TERM=vt100 set.
>

The usual hack was to use '#define somethingLong sl23'... did that
not work here?


> Arrow keys, naturally, don't work, but C-b, C-f, C-p, C-n do.
>
> I think I'm going to just make a GH repo of it, but I'm happy to send the
> tarball, or tar.uue, upon request.  I find UUCP kinda fragile on my simh
> installation, and I don't know how to get to Miss Piggy's (although the
> uucp commands are there), so, well, uuencoding, a pasteboard buffer,
> iTerm2's "Paste Slowly", and cat will work as a file transfer mechanism.
>
> Now I'm going to run over to TUHS and announce the same.
>

Cool. there were a lot of different micro emacses... why'd you choose
this one / this version?

Warner


[cctalk] Re: Emacs on v7

2023-08-24 Thread Adam Thornton via cctalk
I picked that one because it said it had derived from a 1986 original, so I
guessed that if I went back to the initial GH commit I'd get something that
was K&R C and not a million miles away from v7, and I was right.

I...can't believe I never thought of just tossing some #defines up top.  I
feel *really dumb* now, especially given the gyrations I went through with
gnusto to rewrite the symbol table to get Frotz to work on TOPS-20.  Yes,
letting the preprocessor rather than sed do my work would have been cleaner.

Anyway, https://github.com/athornton/microemacs-v7

It does, however, seem to be limited to files a couple dozen K in size,
because even MicroEMACS is still kinda large, and a PDP-11's memory is
kinda small.

Adam


[cctalk] Re: Emacs on v7

2023-08-24 Thread Lars Brinkhoff via cctalk
Adam Thornton wrote:
> I finally got an Emacs running on v7--it's on misspiggy at LCML now as
> "ue".  It's Microemacs 3.6

As far as I know, the first Emacs on a PDP-11 was written by MIT alumnus
Warren Montgomery at Bell labs.

https://github.com/larsbrinkhoff/emacs-history/blob/sources/docs/Montgomery%20Emacs%20History.txt
https://github.com/larsbrinkhoff/emacs-history/tree/sources/ana-3.lcs.mit.edu/%7Ejnc/tech/unix/emacs
https://github.com/larsbrinkhoff/emacs-history/tree/sources/www.tuhs.org/Archive/Distributions/Research/Norman_v9/batterpudding.tar.gz/cmd/emacs

> Arrow keys, naturally, don't work, but C-b, C-f, C-p, C-n do.

As is good and proper.