From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 1164f8,711376fbae4d919,start X-Google-Attributes: gid1164f8,public X-Google-ArrivalTime: 1994-07-30 13:27:01 PST Path: bga.com!news.sprintlink.net!redstone.interpath.net!ddsw1!panix!zip.eecs.umich.edu!newsxfer.itd.umich.edu!gatech!newsfeed.pitt.edu!vms.cis.pitt.edu!bschor From: bschor@vms.cis.pitt.edu Newsgroups: comp.sys.dec Subject: Help with EDT problem/question Date: 29 Jul 94 21:43:31 EDT Organization: University of Pittsburgh Message-ID: <31cb9k$pja@usenet.srv.cis.pitt.edu> NNTP-Posting-Host: vm2.cis.pitt.edu I have a problem. I'm a PDP-11 user/abuser, fairly expert in RT-11, but something of a novice in VMS (which is my gateway to the Internet). I need help with a problem in EDT. I use EDT as my default editor in MAIL. I recently got a fairly complex DCL macro that purported to "improve" MAIL by allowing you to mark extracted text with ">" symbols on the left margin, and also append a signature file to the end of your message. It was ugly, unwieldy, and had some unfortunate side effects. However, it got me thinking about solving the problem via an EDT macro. "Simple", I say, "EDT is just like KED, only better, and I'm a whiz at writing KED macros ...". Famous last words. The signature file part is easy. I plan to define key Gold S as "INCLUDE SIGNATURE.TXT END". What is stumping me is the inserting the ">" at the start of every line. If I define key Gold I as something like 20(I>^Z NL), I get 20 insertions, even if my text is only 5 lines long. On the other hand, I can't figure out how to do this in an EDT macro either, which seem to act only on single lines. I can certainly add just a > before the first line, but it's not clear how I put it at the beginning of an existing line (sounds like Substitute, but how to recognize BOL?). Here's where KED knowledge has led me astray. I know that KED macros bomb out when they hit the bottom of the buffer. Also, KED doesn't have a line mode; macros essentially consist of remembered keypad (and text) characters. I reasoned that one could do the same thing in EDT, but I can't figure out how (I've got a copy of the VAX/VMS User's Manual on my lap, as I type this ...). Help! Have I bitten off more than I can chew? Is EDT not up to the task? Whaddya mean, now I have to learn EVE (or TPU)??!!?? [Not sure if I have those manuals ...]. I would greatly appreciate a reply via e-mail. If one person requests it in a message to me, I promise to post the resulting "solution" here for others to look at. And if I can ever be of help with a KED problem ... Bob Schor bschor@vms.cis.pitt.edu