[comp.os.vms] Using LSE in VMSMAil, Get Numeric Error Messages

bolef%albedo.span@VLSI.JPL.NASA.GOV (10/20/87)

  I use the LSE editor in VMSMail by defining MAIL$EDIT as follows:

$ Define Mail$Edit Callable_LSE

(of course, I had to install LSESHR.EXE to do this)

But then, when I'm in mail, using "send/edit", and I do things that would
normally result in messages at the bottom of the screen, like "past end
of buffer", etc., I get only message numbers, of the form below.

 Buffer $MAIN                                   Write    Insert        Forward  
Message number 03F2CE80
Message number 03F2AF11
Message number 03F2AF11

I'd prfer the standard english alpha messages, which I can understand.

I'm using "LSEDIT version V2.0-28", VMS 4.5A (the real thing, not uVMS),
on a uVAX II, which is the boot node for a LVCLuster. By the way
HELP works within LSE in this case.

Larry Bolef                   Arpa-Internet: BOLEF%ALBEDO@ames-io.arpa
University of Colorado  SPAN/Physnet/Hepnet: ALBEDO::BOLEF -or- 33839::BOLEF
Campus Box 449                       TEXnet: UTADNX::UTSPAN::ALBEDO::BOLEF
Boulder, CO 80309                  Telemail: [LBOLEF/NASA] NASAMAIL/USA
(303) 492-8124    UUCP(forwarded to ALBEDO): bolef@cires.colorado.edu

winalski@psw.DEC.COM (Paul S. Winalski) (10/21/87)

The problem most likely is that SYS$MESSAGE:LSEMSG.EXE is not a known image.
Have your system manager make sure that it is INSTALLed:

	$ RUN SYS$SYSTEM:INSTALL
	INSTALL> SYS$MESSAGE:LSEMSG
	INSTALL> ^Z
	$

VMSmail is a privileged known image.  This means that anything else that it
image activates must also be a known image (although it need not be installed
with privileges).  SYS$SHARE:LSESHR.EXE, the image for callable LSE, is
typically a known image, so LSE has no trouble being invoked by VMSmail.
However, LSE's message file, LSEMSG, is also an image (as are all message
files), and $GETMSG's image activation of it fails because it is not known and
it is trying to be activated in the context of a privileged, shared image.
Hence you get the numeric codes rather than message text.

--PSW

nagy%warner.hepnet@LBL.GOV (Frank J. Nagy, VAX Guru) (10/21/87)

>  I use the LSE editor in VMSMail by defining MAIL$EDIT as follows:
>$ Define Mail$Edit Callable_LSE
>(of course, I had to install LSESHR.EXE to do this)
>
>But then, when I'm in mail, using "send/edit", and I do things that would
>normally result in messages at the bottom of the screen, like "past end
>of buffer", etc., I get only message numbers, of the form below.
     
This is the key: "of course, I had to install LSESHR.EXE to do this".
You also have to install LSEMSG.EXE (found in SYS$MESSAGE).  Our
LSE$STARTUP.COM file roughly looks like:

$!+
$!  Install two LSE images so that Callable LSE can be invoked from MAIL.
$!-
$   INSTALL 'verb' sys$share:lseshr.exe /OPEN /HEADER_RESIDENT /SHARED
$   INSTALL 'verb' sys$message:lsemsg.exe /OPEN /HEADER_RESIDENT /SHARED
$!+
$!  Install the other LSE images to speed up image activation.
$!-
$   INSTALL 'verb' sys$system:lsedit.exe /OPEN /HEADER_RESIDENT /SHARED
$   INSTALL 'verb' sys$library:lse$section.tpu$section /OPEN /HEADER /SHARED

(lines omitted to shorten this message).

= Frank J. Nagy   "VAX Guru & Wizard"
= Fermilab Research Division EED/Controls
= HEPNET: WARNER::NAGY (43198::NAGY) or FNAL::NAGY (43009::NAGY)
= BitNet: NAGY@FNAL
= USnail: Fermilab POB 500 MS/220 Batavia, IL 60510

leichter@VENUS.YCC.YALE.EDU ("Jerry Leichter") (10/21/87)

	 I use the LSE editor in VMSMail by defining MAIL$EDIT as follows:

	$ Define Mail$Edit Callable_LSE

	(of course, I had to install LSESHR.EXE to do this)

	But then, when I'm in mail, using "send/edit", and I do things that
	would normally result in messages at the bottom of the screen, like
	"past end of buffer", etc., I get only message numbers, of the form
	below.

	 Buffer $MAIN                         Write    Insert        Forward
	Message number 03F2CE80
	Message number 03F2AF11
	Message number 03F2AF11

The reason you had to INSTALL LSESHR.EXE was that it is mapped in to memory
(using LIB$FIND_IMAGE_SYMBOL) by MAIL, which is a privileged program.  Well,
the same applies to any private message sections that LSE uses!  Message
sections don't contain executable code, but they are mapped using the same
mechanisms as those that do.

I don't know off-hand what LSE's message section is called - it'll be in
SYS$MESSAGE, and most likely have a name ending in MSG - LSEMSG is a good
guess.  Figure out which it is, and INSTALL it, too.
							-- Jerry
------