[Info-vax] EDT: SET ENTITY WORD
AEF
spamsink2001 at yahoo.com
Thu Nov 10 13:35:26 EST 2011
On Nov 7, 5:56 pm, hel... at astro.multiCLOTHESvax.de (Phillip Helbig---
undress to reply) wrote:
> In article <alpine.LFD.2.00.1111071103500.29... at libra.gmcl.internal>,
>
> Rob Brown <mylastn... at gmcl.com> writes:
> > On Sun, 6 Nov 2011 at 11:54 -0000, Phillip Helbig---undress to reply wrote:
>
> > > In EDTINI.EDT I have:
>
> > > SET ENTITY WORD ' .,?!;:[]()<>*-+=/\{}$^_&'
>
> > Wow! I always got by with space, comma, horizontal tab, linefeed,
> > vertical tab, and formfeed.
>
> > > However, fewer characters would be better when EDT determines where
> > > to make a line break when text is being wrapped. Is there a SIMPLE
> > > solution to my problem.
>
> > Dunno. Does SET WORD NODELIMITER help?
>
> Yes, but only as part of a more complex solution. Basically, what I
> want is DELIMITER in most cases but NODELIMITER for wrapping purposes.
> I could redefine GOLD-KP8 and/or my CTRL-P (FILLPAR.) to be a macro
> which first sets NODELIMITER, then does the wrapping, then sets it back.
>
> I'll probably do this, but this won't affect the automatic wrapping when
> I type. Yes, I could hit RETURN near the end of a line (AND WE SHOULD
> BE ETERNALLY GRATEFUL THAT IN EDT THE RESULT IS THE SAME) when the next
> word would be too long, but that is not something I want to teach my
> fingers and brain to do.
>
> (A related issue: I have two spaces after each sentence. If I fill the
> first paragraph after the quoted text above, the "I" on the third line
> jumps to the end of the second with one space before it. Adding a space
> and re-formatting brings it back to the next line. In other words,
> re-formatting has the risk of changing two spaces to one. Is there any
> way to avoid this?)
This is what I do. I added the following to my EDT init file to define
some useful keys.
! Good:
! *** 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