Article View: news.software.nn
Article #388Re: Trying to write a macro
From: Kim F. Storm
Date: Tue, 15 May 1990 13:26
Date: Tue, 15 May 1990 13:26
36 lines
1571 bytes
1571 bytes
murthy@algron.cs.cornell.edu (Chet Murthy) writes: >I'm trying to write a macro that will do what the command sequence >'A' 'N' ' ' 'j' >Now, my problem is that I can't define a macro to do all this. >I've tried lots of combinations, and the one that comes closest is: >define 1 >advance-group 'N' ' ' 'j' >end >map menu I macro 1 A "classic" problem with nn's macro language. What you enter from the keyboard is A N space j, but what nn is reading is: A command key: A A command key: N A command key: space A *string*: j So the proper definition of the macro is: map menu I ( advance-group 'N' ' ' "j" ) I general, even when a single keystroke *can* be used as the answer to a prompt, you must specify it as a string in a macro if the answer to the prompt is a string. -- Kim F. Storm storm@texas.dk Tel +45 429 174 00 Texas Instruments, Marielundvej 46E, DK-2730 Herlev, Denmark No news is good news, but nn is better!
Technical Details
Message-ID:
<535@texas.dk>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!gmdzi!unido!mcsun!sunic!dkuug!tidk!stormReferences:
<40853@cornell.UUCP>Show Full Headers
Complete Article Headers
Message-ID: <535@texas.dk> Subject: Re: Trying to write a macro Date: Tue, 15 May 1990 13:26:24 +0000 From: storm@texas.dk (Kim F. Storm) References: <40853@cornell.UUCP> 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!gmdzi!unido!mcsun!sunic!dkuug!tidk!storm Newsgroups: news.software.nn Distribution: news Organization: Texas Instruments, Denmark Lines: 36 Posted: Tue May 15 14:26:24 1990