🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

2 total messages Started by David S. Browning Thu, 28 May 1992 18:15
Emacsclient getting new screen?
#1384
Author: David S. Browning
Date: Thu, 28 May 1992 18:15
16 lines
1474 bytes
Epoch 4.0p1 on SGI Iris 4D running Irix 4.0.1.

I use emacsclient from within xrn to edit outgoing posts and mail.  I
would like Epoch to open a new screen in which to edit the temporary
file supplied by xrn.  Is there a way to modify emacsclient to do this
under Epoch?

-- David

|============================================================================|
| Internet:  browning@willard.nas.nasa.gov          Phone:  (415) 604-4321   |
| UUCP:      uunet!ames!nas.nasa.gov!browning                                |
|----------------------------------------------------------------------------|
|"the nice thing about true hopelessness is that you don't have to try again"|
| -- jules shear                                                             |
|============================================================================|
Re: Emacsclient getting new screen?
#1385
Author: patrick m. ryan
Date: Fri, 29 May 1992 12:01
87 lines
2901 bytes
In article <1992May28.181519.6650@nas.nasa.gov>, browning@willard.nas.nasa.gov (David S. Browning) writes:
> Epoch 4.0p1 on SGI Iris 4D running Irix 4.0.1.
> 
> I use emacsclient from within xrn to edit outgoing posts and mail.  I
> would like Epoch to open a new screen in which to edit the temporary
> file supplied by xrn.  Is there a way to modify emacsclient to do this
> under Epoch?

	use Andy Norman's gnuclient package.  its much better than
emacsclient.  this is from the documentation:

-----

DESCRIPTION
     gnuclient allows the user to request  a  running  GNU  Emacs
     process to edit the named files or directories.

     gnudoit allows the user to request a running GNU Emacs  pro-
     cess  to  evaluate  the  given arguments inside a progn LISP
     form.

     gnuserv is the server program that is  set  running  by  GNU
     Emacs  to  handle  all incoming and outgoing requests. It is
     not usually invoked directly, but is started from GNU  Emacs
     by the LISP form (server-start).

-----

here is a script that i call from xrn:

#!/bin/sh
#
#   a little script to edit a file in an existing emacs window.
#

tmp=/tmp/.junk.$$
###pwd=`/bin/pwd`

whosed () { sed 's/^/'$1' - /' ; }

# raise window
gnudoit -q '(epoch::mapraised-screen)' | whosed gnudoit  > $tmp

# bail out if there was a problem raising the window
if [ $? -ne 0 ]
then
	cat $tmp
	exit 1
fi

# edit the file(s)
for file in $*
do
	# edit
	gnuclient $file  | whosed gnuclient >> $tmp
###	gnudoit "(cd \"$pwd\")" | whosed gnudoit >> $tmp

	# get rid of the buffer
	buf=`basename $file`
	gnudoit -q "(kill-buffer \"$buf\")" | whosed gnudoit >> $tmp

done

gnudoit '(epoch::iconify-screen)' | whosed gnudoit >> $tmp

if [ $? -ne 0 ]
then
	cat $tmp
	exit 1
fi

rm -f $tmp

exit 0


------

	you can get this from your friendly neighborhood elisp
archive site.

pat

--
                                                             patrick m. ryan
            nasa / goddard space flight center / oceans and ice branch / stx
                     pat@jaameri.gsfc.nasa.gov / zmpmr@charney.gsfc.nasa.gov
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads