🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: news.software.readers
1 messages
1 total messages Started by Wayne Davison, formerly davison Tue, 31 Jan 1995 05:46
Re: Emacs from trn problem
#14925
Author: Wayne Davison, formerly davison
Date: Tue, 31 Jan 1995 05:46
40 lines
2713 bytes
According to Michael_Shea <mshea@rtd.com>:
> 	I am having trouble getting emacs and trn working together. [...]
> 	My NEWSPOSTER is set to "Pnew -h %h &A"

Which is your problem.  Even assuming that you misspelled Pnews, and you
meant to say %A instead of &A, it appears that your version of emacs is
one that when presented with multiple files decides to display/edit the
last file on the command line (a truly weird thing to do, in my opinion).
Thus, you told emacs to edit both the reply (the ~/.article file) and the
actual news article itself (which may well be a temporary file, if you're
using the NNTP version of trn).  If you were running an editor that showed
you both files this would be ok.  As it is you have a number of possible
ways to fix the problem:

    Undefine NEWSPOSTER and let it default to "Pnews -h %h".

    Define NEWSPOSTER as "Pnews -h %h" (or "Pnew" if that wasn't a typo)
    so that you only edit the article file.

    Get a better version of GNU Emacs to work -- I've tried 19.22.2 and
    it appears to present both files when presented with "emacs one two".

    Twiddle a local copy of Pnews to call your version of emacs with the
    filenames reversed.  E.g.:

	${VISUAL-${EDITOR-$defeditor}} $oldart $tmpart

> 	If I set EDITOR so it points to emacs 19.22 and I launch emacs 
> within trn via f, F, r, or R, emacs never comes up.

You're going to have to debug that one locally.  Try running the Pnews
script directly, perhaps with "sh -x Pnews" and see what command is
failing.  It should be a simple matter of a shell script starting an
editor, but this might be a case of emacs doing something weird when
is is called as a child of a child.  Questions to investgate:  does
emacs start running?  If so, did the parent process wake up before the
child process finished?  Or did the child process crash?
-- 
Wayne Davison
wayne@trn.com		<-- note new address
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