Troubles with wordDelimiters

Nicolas Tardieu niko.karin at gmail.com
Sat May 3 00:56:18 CEST 2008


Thank you very much for your answer Jörg.

Please excuse my unknowlegde, but I tried to re-bind Ctrl+RightArrow in my
$HOME/.nedit/nedit.rc file by writing :

NEdit*text.Translations: #override \n\
      Ctrl<Key>osfRight: forward_word( ["nobell"] ) \n

with no success.

What am I doing wrong??????

Nicolas


2008/5/2 Joerg Fischer <jf505 at gmx.de>:

> 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
> --
> NEdit Discuss mailing list - Discuss at nedit.org
> http://www.nedit.org/mailman/listinfo/discuss
>


More information about the Discuss mailing list