🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.readers
Article #14925

Re: Emacs from trn problem

#14925
From: 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
Technical Details
Message-ID: <3gkiru$noo@nic.scruz.net>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!archive!mbox2nntp-news.software.readers.mbox.zip!nntp.gmd.de!newsserver.jvnc.net!nntpserver.pppl.gov!princeton!udel!news.mathworks.com!hookup!olivea!news.hal.COM!darkstar.UCSC.EDU!nic.scruz.net!not-for-mail
References: <3g9cue$p5s@baygull.rtd.com>

Show Full Headers
Complete Article Headers
Message-ID: <3gkiru$noo@nic.scruz.net>
Subject: Re: Emacs from trn problem
Date: Tue, 31 Jan 1995 05:46:38 +0000
From: wayne@trn.com (Wayne Davison, formerly davison@borland.com)
References: <3g9cue$p5s@baygull.rtd.com>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!archive!mbox2nntp-news.software.readers.mbox.zip!nntp.gmd.de!newsserver.jvnc.net!nntpserver.pppl.gov!princeton!udel!news.mathworks.com!hookup!olivea!news.hal.COM!darkstar.UCSC.EDU!nic.scruz.net!not-for-mail
Newsgroups: news.software.readers
Organization: Lack thereof
Lines: 40
NNTP-Posting-Host: deepthought.armory.com
Originator: davison@armory.com (Wayne)