Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!caen.engin.umich.edu!conliffe From: conliffe@caen.engin.umich.edu (Darryl C. Conliffe) Newsgroups: comp.sys.apollo Subject: Re: David Letterman's top ten list of Apollo questions. Summary: The mark stack lives. Message-ID: <41980f41.b11a@falcon.engin.umich.edu> Date: 20 Feb 89 22:50:00 GMT References: <15210@vlsisj.VLSI.COM> Organization: U of M Engineering, Ann Arbor, Mich. Lines: 50 In article <15210@vlsisj.VLSI.COM>, bennett@vlsisj.VLSI.COM (Michael Bennett) writes: > Does anyone know how to: > > 8) Use the DM mark stack to do anything useful? i.e. How in heck > does that #!&$% mark stack work? > > -- > Michael Bennett (408) 434-7851 (W) Yep, there is a use for the mark stack. To use the mark, try these key definitions: KD R1S CMS;DR KE # SHIFT-POP: Clear stack and mark current location for future return. KD R2S GM;RM KE # SHIFT-AGAIN: Return to last mark. KD F3 /[*a-zA-Z._:@-$0-9@@@/@@@\*]/dr; echo; \[*a-zA-Z._@-$0-9@@@/@@@\*]\;/?/XC word;TL KE # Put your cursor on a word or filename, press and hold F3 to copy a word. KD F3U TL;gm;es ' ';XP word;/[*a-zA-Z._@-$0-9@@@/@@@\*]/dr KE # Release will use previous mark (Shift-POP) for new word location. KD F7S ES ' ';EE;DR;TR;XC TO_EOL KE # Copy to EOL to buffer TO_EOL KD F7C DR;XP TO_EOL KE # Copy image in TO_EOL to current cursor location. In an open pad, hit SHIFT-POP to mark where you want a copy of the string you are going to select. Move the cursor to the string you want to copy. Hit F3, and a copy will come to the position marked. You can also mark a position (SHIFT-POP), move the cursor to a position on a line of text, hit SHIFT-F7 (to copy), hit SHIFT-AGAIN to return to the original mark, then hit CONTROL-F7 to paste the text at the new position. Got it? (By the way, I had to use * in the definitions to get them safely posted. To get them to work, substitute a tilda for *.) -- ___________________ Darryl C. Conliffe conliffe@caen.engin.umich.edu (313) 721-6069 -------------------