[Date Prev][Date Next][Subject Prev][Subject Next][ Date Index][ Subject Index]

Re: Enter Key / Selection by cursor



Reply to note from "M.C."  Fri, 21 Jan 2005 16:19:00
+0100

Manuel:

> This key assignment in my SHIFT table works:
> 100=NOXHJM(,2,.,d,f,),Q2,DM,CU
> ... But maybe there is a more elegant procedure...

If frame DF works for you, go with it. On the other hand, if you
like DEF (aside from the auto-extend feature), there are
workarounds. For example, you could add some code to your key
assignment to cancel any existing DeFine if (and only if) the cursor
is outside of the DF block, and then call DEF. Like this (issue
DECODE to decode):

XPLeNCODE v2.0
b-gin [UNTITLED]
nn=NOJM2,.,P,r,s,K,b,d,A,r,g,Q2x,m, ,[,I,F,[,V,A,$,I,N,],<,1,
],COY,D,[,E,I,],NOJM2,.,d,e,f,Q2[cr|lf][cr|lf]
-nd
XPLeNCODE

Depending on your processor speed, you might experience a fleeting
hesitation before Editor responds to this keystroke. If this
bothers you, you can put the modification in a U2 frame. Let's call
the frame DEF2. Here it is; DECODE it, DeFine it and issue
ADD2U2:

XPLeNCODE v2.0
b-gin [UNTITLED]
{{;5def2}} Enhanced DeFine (no auto-extend if cursor outside{032}
existing DF block) [CLD 1/21/05][cr|lf]{002}{<}IF{<}VA$IN{>}<
1{>}[YD_]{<}EI{>}[JM_]2.def[Q2_]{002}[cr|lf][cr|lf]
-nd
XPLeNCODE

Then your DeFine key assignment would be:

nn=NOJM2,.,d,e,f,2,Q2

I hope this helps.

--
Carl Distefano
cld@xxxxxxxx