🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: news.software.readers
3 messages
3 total messages Started by Duane Fowler Thu, 09 Jun 1994 16:14
trn macros: inconsistent?
#9464
Author: Duane Fowler
Date: Thu, 09 Jun 1994 16:14
15 lines
1301 bytes
The man page says that macros execute the canonical trn function,
ie no macro expansion is done, unless explicitly specified. This
is true as far as it goes, so

&&? h 

works ok. Normally, of course, SELECTCHARS does not include h
but now that it's free I'd like to include it. ? will still do
"help" UNLESS h is available as a selection, whereupon ? selects h!

I guess the implication is that the "higher calling" for a character
is to be a SELECTCHAR, so a char mapped to it will also select if 
possible, but it seems to me it should do the defined function instead.

Any comments?
Re: trn macros: inconsistent?
#9473
Author: Wayne Davison
Date: Thu, 09 Jun 1994 23:46
25 lines
1602 bytes
According to Duane Fowler <duanef@Newbridge.COM>:
> [After defining macro] &&? h 
> [...] ? will still do "help" UNLESS h is available as a selection,
> whereupon ? selects h!

No, with that macro whenever you type '?' you really pressed 'h', so
in the selector it always attempts to select item 'h' and if that item
doesn't exist trn beeps at you.

However, the selector already has '?' as the non-lowercase letter to
use to start help (the selector has most commands that are mapped to
lower case letters also mapped to other characters for this exact
purpose).  All you need to do is to get all the other areas in trn
to translate '?' to 'h' by using this macro:

   ?  %(%m=t??:h)

> I guess the implication is that the "higher calling" for a character
> is to be a SELECTCHAR

Yes, if you put it in SELECTCHARS that's what the letter does, period.
Thus, there's no inconsistency.
-- 
Wayne Davison
davison@borland.com
Re: trn macros: inconsistent?
#9483
Author: Duane Fowler
Date: Fri, 10 Jun 1994 16:24
18 lines
1331 bytes
In article <Cr5M1t.79E@borland.com>, Wayne Davison <davison@borland.com> wrote:
>
>However, the selector already has '?' as the non-lowercase letter to
>use to start help (the selector has most commands that are mapped to
>lower case letters also mapped to other characters for this exact
>purpose).  All you need to do is to get all the other areas in trn
>to translate '?' to 'h' by using this macro:
>
>   ?  %(%m=t??:h)
>

Okay, I see.  For some reason, ? does not show up as a command when I
get help at the thread selection level (any idea why?), so I did not
realize it was there.

Thanks for your (as usual) helpful response.

Duane
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