Change In 8.1.0: Full Stop Now Included in "Words"

General questions about using TextPad

Moderators: AmigoJack, bbadmin, helios, Bob Hansen, MudGuard

Post Reply
Art Metzer
Posts: 27
Joined: Mon Mar 06, 2006 5:31 pm

Change In 8.1.0: Full Stop Now Included in "Words"

Post by Art Metzer »

I've noticed this issue/change in behavior in TextPad 8.1.0. Version 8.0.2 works as expected.

I use TextPad for coding.

Code: Select all

import java.util.Hashtable;
In 8.0.2, if you double-click on the letter "u" above, only the letters "util" are highlighted/selected: the selection does not include either full stop/period. This is the behavior I have come to expect.

However, in 8.1.0, if you do the same, then all of "java.util.Hashtable" becomes highlighted/selected. Somewhere along the way, full stops became included in the set of characters that a double-click selects.

The syntax file I use for Java has not changed, so no full stops were added there. Nor did I change/add to any of the characters specified at Configure > Preferences > Document Classes > Java > Syntax, "Other characters in words".

Can TextPad's behavior be reverted in this regard, so that a double-click within a word still honours full stops as delimiting characters, and are not included in the selection?

Thank you.
ben_josephs
Posts: 2461
Joined: Sun Mar 02, 2003 9:22 pm

Post by ben_josephs »

Has
View | Document Properties | Syntax | Other characters in words
become changed for any of your Java files?
Art Metzer
Posts: 27
Joined: Mon Mar 06, 2006 5:31 pm

Post by Art Metzer »

ben_josephs wrote:Has
View | Document Properties | Syntax | Other characters in words
become changed for any of your Java files?
No change.
ben_josephs
Posts: 2461
Joined: Sun Mar 02, 2003 9:22 pm

Post by ben_josephs »

I have no ideas, I'm afraid. I can't reproduce what you're reporting.
User avatar
bbadmin
Site Admin
Posts: 877
Joined: Mon Feb 17, 2003 8:54 pm
Contact:

Post by bbadmin »

Have any of the keywords in the syntax definition file got a "." in them?
Art Metzer
Posts: 27
Joined: Mon Mar 06, 2006 5:31 pm

Post by Art Metzer »

bbadmin wrote:Have any of the keywords in the syntax definition file got a "." in them?
Yes.

From java1_6.syn:

Code: Select all

...
AbstractDocument
AbstractDocument.AttributeContext
AbstractDocument.Content
AbstractDocument.ElementEdit
AbstractElementVisitor6
...
So I suppose This Is The Way It Is Now?

Thanks,

Art.
User avatar
bbadmin
Site Admin
Posts: 877
Joined: Mon Feb 17, 2003 8:54 pm
Contact:

Post by bbadmin »

That's what's causing it, as documented on the Syntax property page for the document class. You can avoid that by moving fields such as AttributeContext and Content to a [Keywords 3] section, although they could then show up as keywords divorced from AbstractDocument.
Post Reply