Subject: Running Pine with emacs (elegantly)

From: [email-masked]
Date: 11 May 1995 04:22:59 GMT

I've searched their web site, and can't find it, though I've seen it
before somewhere.

How does one get pine to access an existing emacs job, instead of
creating an extra emacs when alt editor is invoked?  More importantly,
where do I find it in the docs?  (perhaps it's in emacs, though I've
checked the info files).

Post the answer, send me email, do whatever, I'll get the answer.
  === Al

---

From: [email-masked] (Trey Harris)
Date: 11 May 1995 14:20:56 GMT

>where do I find it in the docs?  (perhaps it's in emacs, though I've

It's called emacsserver, and it should be available in 
/usr/local/lib/emacs/X/Y/emacsserver.  I don't know how to run it
though, though it's something that I've been meaning to look at next
week for, oh, about four years now.  If you figure out how to use it,
do drop me a line.
-- 
Trey Harris                              http://sunsite.unc.edu/harris
  System Administrator, Project Isis, Office of Information Technology
                       The University of North Carolina at Chapel Hill

---

From: Christian Jonsson <[email-masked]>
Date: Fri, 12 May 1995 15:44:05 +0200

> Post the answer, send me email, do whatever, I'll get the answer.

It's in emacs *and* pine. Here's how! (It's in the info tree...)

(1) Do "setenv EDITOR emacsclient" (or equivalent...)

(does not do the trick for pine but for other applications though..)

(2) Start emacs 

(3) Within emacs (or from ~/.emacs) do M-x server-start.

(4) In pine (Setup - Config - Editor) set editor to emacs (or in ~/.pinerc)

When using it, remember to execute a M-x server-edit when you're through 
editing. This makes emacs save, exit, and notify the client (i.e. pine) 
that it's done.

That's it!

______________________________________________________________________
Christian Jönsson                 (MIME) E-mail:         [email-masked]
Division of Data Transmission            Telephone: (+46) 13  28 26 53
Department of Electrical Engineering     Telefax:   (+46) 13  28 13 39
Linköping University, SWEDEN             Mobile:    (+46) 70 575 61 06

WWW: http://merlin.isy.liu.se/user?cj/
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Jamtland, Jamtland, jämt å ständut...

---

From: [email-masked] (Trey Harris)
Date: 12 May 1995 22:38:14 GMT

In article <Pine.SUN.3.91.950512153302.13020B-100000@perceval>,
>(4) In pine (Setup - Config - Editor) set editor to emacs (or in ~/.pinerc)

Actually, that should be set the editor to "emacsclient", or use the 
script I posted here earlier to select any editor and enter emacsclient.
-- 
Trey Harris                              http://sunsite.unc.edu/harris
  System Administrator, Project Isis, Office of Information Technology
                       The University of North Carolina at Chapel Hill