🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.editors
Article #3333

Emacs and rn

#3333
From: David Phillip Oster
Date: Fri, 30 Sep 1988 12:06
36 lines
1966 bytes
Let me know if I am out to lunch on this one. 

Background:
The news reader I use is "rn".
When I want to reply to a posting, I give a command to "rn". "rn" copies
an appropriate header into a temporary file, and hands the file to an
editor program it gets from an environment variable. It sleeps until the
editor exits, then uses the contents of the temporary file as the message
to send.

The Problem:
The problem is I want to use emacs as my editor, but I don't like waiting
for a new copy of emacs to be created.

What I want:
I want (1) a short C program that opens a pseudotty (or a named pipe.),
writes its first argument (a filename) to that output, flushes the output,
and sleeps. When it recieves an acknowledgment, it exits.

(2) an emacs macro to listen on such a pseudotty (or named pipe.) until
it sees a filename, then read it into an editor buffer. The editor buffer
should have a "Done" command bound to a control key sequence that 
(a) writes the file out,
(b) sends the acknowledgment to the C program described in (1).
(c) closes the buffer.

I need the whole thing to work throught the vt100 emulator I'm using to 
talk to unix.  This will let me keep one emacs process running all the time,
and send files to it from outside, whenever I want.

Does anyone have such a beast?

--- David Phillip Oster            --When you asked me to live in sin with you
Arpa: oster@dewey.soe.berkeley.edu --I didn't know you meant sloth.
Uucp: {uwvax,decvax,ihnp4}!ucbvax!oster%dewey.soe.berkeley.edu
Technical Details
Message-ID: <26282@ucbvax.BERKELEY.EDU>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!water!watmath!clyde!att!ucbvax!dewey.soe.berkeley.edu!oster

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!water!watmath!clyde!att!ucbvax!dewey.soe.berkeley.edu!oster
From: oster@dewey.soe.berkeley.edu (David Phillip Oster)
Newsgroups: comp.editors
Subject: Emacs and rn
Message-ID: <26282@ucbvax.BERKELEY.EDU>
Date: 30 Sep 88 12:06:29 GMT
Sender: usenet@ucbvax.BERKELEY.EDU
Reply-To: oster@dewey.soe.berkeley.edu.UUCP (David Phillip Oster)
Organization: School of Education, UC-Berkeley
Lines: 36