Re: Troubles with wordDelimiters

"Nicolas Tardieu" <[email protected]>
Newsgroups gmane.editors.nedit.user
Message-ID <[email protected]>
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 <[email protected]>:

> 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 - [email protected]
> http://www.nedit.org/mailman/listinfo/discuss
>
-- 
NEdit Discuss mailing list - [email protected]
http://www.nedit.org/mailman/listinfo/discuss
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.