[comp.os.vms] TPU Bug ?

stokes@cmc.CDN.UUCP (09/01/87)

Has anybody solved this EVE editor behaviour:  I defined PF1 on my VT220 to
be equivalent to the "Do" key, then changed my mind.  But now, whenever I try
to redefine PF1, EVE tells me that I "cannot bind another command to the
Do key".  (Note that the original Do key is still a Do key).  Without
deleting my EVE section file and redefining all my custom stuff, how do I get
my PF1 back ???  (there is no function that cancels a key definition).
     
Peter Stokes                   meet my ancestor...  8-]
   CMC                         we both looked in the manual...
     
     
     
     

carl@CITHEX.CALTECH.EDU.UUCP (09/01/87)

 > Has anybody solved this EVE editor behaviour:  I defined PF1 on my VT220 to
 > be  equivalent  to the "Do" key, then changed my mind.  But now, whenever I
 > try to redefine PF1, EVE tells me that I "cannot bind  another  command  to
 > the  Do  key".  (Note that the original Do key is still a Do key).  Without
 > deleting my EVE section file and redefining all my custom stuff, how  do  I
 > get my PF1 back ???  (there is no function that cancels a key definition).

Have you considered the sequence "<DO>TPU  UNDEFINE_KEY(PF1)<RET>"?  It  works
just  fine  for  me.  If UNDEFINE_KEY doesn't cancel a key definition, then it
does an awfully goood imitation of it.

 > Peter Stokes                   meet my ancestor...  8-]
 >    CMC                         we both looked in the manual...

Wrong manual.

stokes@cmc.CDN (Peter Stokes | CMC Kingston) (09/02/87)

RE:  TPU/EVE: redefing a key after defining it as a DO key.

>Have you considered the sequence "<DO>TPU  UNDEFINE_KEY(PF1)<RET>"?  It  works
>just  fine  for  me.  

Right you are, <do>tpu undefine_key(pf1) does remove an EVE key definition.
What fooled me is that the EVE manual says "to change or cancel a key 
definition, re-define the key".  I should have thought it could have been a 
TPU command... moral of the story:  users of layered software should find 
out what layers lurk below, and then read those manuals too !!

Peter

schachtn@exunido.UUCP (09/04/87)

The behavior of EVE isn't necessarily a bug.

You can't redefine the Do-key with the EVE define-command, but
you can undefine the key with the TPU undefine_key-command.

I've tried this on a VAX under VMS 4.5 with a VT220 terminal.

There was defined:

Key	as
Do	DO command
PF4	DO command, and I defined
TAB	DO command

then I tried
DO TPU undefine_key(tab)
DO TPU undefine_key(pf4)
DO TPU undefine_key(f16)
and they all work, so leaving me in EVE without any DO-key left.

My suggestion to your problem is, to try to undefine the key via
DO  TPU  undefine_key(pf1)
and then save the section file with the eve 
save extended tpu-command.

I hope this helps.

Andreas
schachtn@exunido.uucp