[Info-vax] EDT: SET ENTITY WORD

Alan Feldman alanfeldman48 at gmail.com
Mon Nov 28 05:05:59 EST 2011


On Nov 8, 7:22 am, hel... at astro.multiCLOTHESvax.de (Phillip Helbig---
undress to reply) wrote:
> Am I missing something, or is the online help wrong?
>
> *help set word
>
> SET
>
> WORD
>
> Format: SET WORD [NO]DELIMITER
>
> The SET WORD (abbreviated SE W) command enables you to specify that the
> word delimiters be considered words by themselves (NODELIMITER), or
> considered as part of the word they delimit (DELIMITER).  The default is
> DELIMITER.
>
> According to the text above, with NODELIMITER I expect that KP1 and KP-
> would recognise both "ppp" and "[" as words in "ppp]", while DELIMITER
> should consider "ppp]" to be one word.  However, the opposite seems to
> be the case.  The default seems to be the behaviour described above for
> NODELIMITER.
>
> There are several possible explanations.  What I suspect is the
> following:
>
>    o  DELIMITER is indeed the default
>
>    o  the descriptions above have been swapped
>
> This first is supported by the fact that explicitly setting DELIMITER
> results in the default behaviour.  The second is supported by the fact
> that NODELIMITER seems more appropriate if the delimiters are considered
> to be part of the word they delimit, i.e. NOT words by themselves and
> SET WORD DELIMITER does what it says, i.e. sets the delimiters to be
> words in their own right.
>
> Can anyone confirm and/or clarify this issue?


Forget what the help says. This is what it should say:

SET WORD DELIM (default) means that any specified delimiter acts as if
it were a word when moving forward by word. When moving back by word,
if a word delimiter (except the space char) is followed by a space,
the cursor stops at both that space and the delimiter.

SET WORD NODELIM means that any specified delimiter acts as if it were
a space. So using GOLD CONTROL A from below, the following holds:

asdf '''''''' ' ' ' ' ' zxcv

The apostrophes act a spaces, so if the cursor is on a, pressing WORD
moves it to z!

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

AEF



More information about the Info-vax mailing list