Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!utgpu!water!watnot!watmath!clyde!cbatt!ucbvax!YALE.ARPA!LEICHTER-JERRY From: LEICHTER-JERRY@YALE.ARPA.UUCP Newsgroups: mod.computers.vax Subject: Re: Another editor in MAIL Message-ID: <8703052109.AA04581@ucbvax.Berkeley.EDU> Date: Thu, 5-Mar-87 16:09:41 EST Article-I.D.: ucbvax.8703052109.AA04581 Posted: Thu Mar 5 16:09:41 1987 Date-Received: Sat, 7-Mar-87 01:44:47 EST Sender: daemon@ucbvax.BERKELEY.EDU Reply-To: Distribution: world Organization: The ARPA Internet Lines: 31 Approved: info-vax@sri-kl.arpa Is it possible to use another editor (than EDT) when using the VMS mail utility? I would prefer to use the EMACS editor on my uVAX. Is there some logical variable that contains a pointer to a default editor and can I change it? Any suggestions would be welcome. I'd prefer not to edit (using EMACS) the message ahead of time and then using the SEND command. MAIL$EDIT can be the name of a command file to start up your editor, or a string of the form CALLABLE_xxx if xxx is an editor image that MAIL can start with a LIB$FIND_IMAGE_SYMBOL, and which supports the standard editor inter- face. (In practice, this means xxx = EDT or TPU). Here's the command file my MAIL$EDIT logical points to: $ !++ $ ! Command procedure to invoke an editor for MAIL. $ ! $ ! Input: $ ! $ ! P1 = Input file name. $ ! P2 = Output file name. $ !-- $ ! $ ASSIGN/USER 'F$LOGICAL("SYS$COMMAND")' SYS$INPUT $ if p1 .eqs. "" then kmake 'p2' $ if p1 .nes. "" then kteco 'p1' 'p2' -- Jerry -------