🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nn
Article #4037

Help with macros/on entry/:local

#4037
From: Tim Veatch
Date: Thu, 08 Apr 1993 03:43
58 lines
1965 bytes
Can someone explain to me how I can remedy things here?
What I want to do is set up different headers depending on
which group I'm in.

I did have something like:

on entry alt.
        macro 2
end

on entry 
        macro 3
end

define 3
        :set news-header ...
end

define 2
        :local news-header From: ...
end

Which accomplished what I wanted, except I realized that the
execution of macro 3 caused the newsgroup description (which appears
at the bottom of the screen) to erase very very *VERY* quickly.
That is, I couldn't see it at all.

So next I tried:

on start-up
        macro 3
end

on entry alt.
        macro 2
end

In this case, I did not get the newsgroup description on the
bottom of the screen for the alt groups and after I came out
from the alt groups, I did not get the result of macro 3.
So it appears that the local in macro 2 is not really local.

Then for kicks I tried:

on start-up
        macro 3
end

on entry alt.
        :macro 2
end

This gave the descriptions for all groups, but didn't perform
the intended result for macro 2.

Can someone please shed some light?

I'm using Release 6.4.16
Technical Details
Message-ID: <93Apr7.234253edt.47554@neat.cs.toronto.edu>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!archive!mbox2nntp-news.software.nn.mbox.zip!gmd.de!ira.uka.de!yale.edu!nigel.msen.com!sdd.hp.com!zaphod.mps.ohio-state.edu!howland.reston.ans.net!wupost!uunet!utcsri!relay.cs.toronto.edu!neat.cs.toronto.edu!cs.toronto.edu!veatch

Show Full Headers
Complete Article Headers
Message-ID: <93Apr7.234253edt.47554@neat.cs.toronto.edu>
Subject: Help with macros/on entry/:local
Date: Thu, 08 Apr 1993 03:43:17 +0000
From: veatch@cs.toronto.edu (Tim Veatch)
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!archive!mbox2nntp-news.software.nn.mbox.zip!gmd.de!ira.uka.de!yale.edu!nigel.msen.com!sdd.hp.com!zaphod.mps.ohio-state.edu!howland.reston.ans.net!wupost!uunet!utcsri!relay.cs.toronto.edu!neat.cs.toronto.edu!cs.toronto.edu!veatch
Newsgroups: news.software.nn
Sender: Timothy R Veatch <veatch@cs.toronto.edu>
Organization: Toronto
Fake-Sender: "Tim Veatch" <veatch@cs.toronto.edu>
Distribution: na
Lines: 59