| I don't know any SED, but the Mark Williams C "-A" switch works as follows:
- Call the editor ME.TOS and put it in the PATH search list.
- Customize the editor so that the "-E" qualifier says that the
next file on the command line is the error file. You read this
file into one window.
- In response to the -E, Using the editor's extension language,
you parse the offending file name and line number out of the first
message, the file into another window, and place the cursor on
the first error.
- Also provide a key binding that will find the next error by
repeating the above procedure (including reading in a new file, if
needed, in case the error was in a .h file).
If the SEDT isn't multi-window or doesn't have an extension language,
or doesn't let you see any command qualifiers, you're stuck. Note that
you might be able to come up with a hack that autoexecutes the error
parse when the filename is "-E".
Microemacs 3.9n implements this stuff - it processes ERROR.CMD when it
sees a -E qualifier onthe command line.
|
| From: MURPHY::ANKER "Anker Berg-Sonne" 22-MAR-1988 08:08
To: LDP::WEAVER,ANKER
Subj: Better late than never
Anker Berg-Sonne
Product Marketing
Strategic Programs
UPO1-3
DTN 296-4805
MURPHY::ANKER
22-MAR-1988
David,
Sorry about taking forever. Here's my little ME.C
program. It can be enhanced considerably by forcong an
initialization file that splits the screen, or even writes a .CTX
file, but the general idea remains the same.
#include <osbind.h>
main(Argc,Argv)
int Argc;
char *Argv[];
(char Command[128];
strcpy(Command,"Sedt ");
strcat(Command,Argv[1]);
strcat(Command," , ");
strcat(Command,Argv[3]);
return system(Command);
}
Simple, isn't it! Make sure ME has the right type and is
in the path.
Anker
|