[Info-vax] EDT and SET WORD [NO]DELIMITER
Alan Feldman
alanfeldman48 at gmail.com
Mon Nov 28 05:08:59 EST 2011
On Nov 19, 3:26 pm, hel... at astro.multiCLOTHESvax.de (Phillip Helbig---
undress to reply) wrote:
> A while back I expressed the desire to have my word delimiters normally
> not be words in themselves so that when the first character after the
> full line length (defined via SET WRAP) is reached is a delimiter it
> will wrap to the next line together with what is in the word immediately
> before it while at the same time have the opposite behaviour when moving
> with KP1 and KP and deleting with KP-. After some suggestions here, I
> put SET WORD NODELIMITER in EDTINI.EDT to make it the default. I
> defined CON N and CON D (surprisingly they weren't yet defined) to
> switch to the other behaviour when needed (i.e. CON D before I start
> using KP1 or KP- and CON N to return to the default behaviour when I am
> done).
>
> So far, so good.
>
> What I would now like to have is the NODELIMITER behaviour also when a
> delimiter is the beginning character of a new word which then wraps to
> the next line. Whether I have NODELIMITER or DELIMITER doesn't matter
> in this case.
>
> Is there any way to achieve this?
>
> Also, since "'" is used to delimit the string, is there any way to get
> "'" itself to be a delimiter?
Here are the relevant commands from my EDT startup file:
! *** Define keys to change word entity (first char is a space
(ASCII %X20), ALSO ASCII 0C,0D,0A,0B), PLUS ESCAPE CHAR ***
DEFINE KEY GOLD A AS "EXT SET ENTITY WORD ' ""''.,@;:[]{}
()_<>*-+=/\$#<FF><CR><LF><VT><ESC>??'; SET WORD DELIM." ! slo
^ w
DEFINE KEY CONTROL A AS "EXT SET ENTITY
WORD ' <FF><CR><LF><VT><ESC>'; SET WORD
DELIM." ! normal
DEFINE KEY GOLD CONTROL A AS "EXT SET ENTITY WORD ' ""''.,@;:[]{}
()_<>*-+=/\$#<FF><CR><LF><VT><ESC>??'; SET WORD NODELIM." ! fas
^ t
!
! PROBLEM: "?" causes a spazz (of course, it's the "query the
user" command for DEFINE KEY).
!
! SOLUTION: Use two consecutive question marks.
So just double up apostrophes, quotation marks, and question marks as
I do above.
AEF
More information about the Info-vax
mailing list