Troubles with wordDelimiters

Joerg Fischer jf505 at gmx.de
Fri May 2 22:14:18 CEST 2008


Nicolas Tardieu wrote:

> and suppose that my cusor is the following position shown by [myCursor] :
> 
>        aVecteurLambdaIntegre.multMatriceVecteur(aMatriceMasseLambda,
> [myCursor]aVecteurLambda);
> 
> If I press [Ctrl+RightArrow], the cursor does not stop at the ")" or at the
> ";" or at the end of the line, but it jumps to the next line.
> ...
> Is it a bug?

No, it's just what the action routine forward_word() triggered
with Ctrl+RightArrow does.

> How can I change this behaviour?

Looking in the online help, finding

    forward_word( ["tail"] ["nobell"] )
    Moves the cursor to the beginning of the next word.
    Word delimiters are user-settable, and defined by
    the X resource wordDelimiters.  If the "tail"
    argument is supplied the cursor will be moved to the
    end of the current word or the end of the next word,
    if the cursor is between words.

and concluding to re-bind Ctrl+RightArrow to forward_word("tail").
 
> Can I specify that "\n" is a word delimiter?

No, \n is always a word delimiter - you can't change this with a user
setting.

Cheers,
Jörg


More information about the Discuss mailing list