help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Skipping words with C-<right> like other editors do


From: Stefan Monnier
Subject: Re: Skipping words with C-<right> like other editors do
Date: Tue, 17 Apr 2018 08:09:03 -0400
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux)

>>> I came up with the following functions. Usage:
>> Why not use find-word-boundary-function-table?
>
> Hm, no luck.
>
> Consider the following buffer text (with ‘|’ indicating point and
> second line showing numeric positions):
>
>     foo| *** +++ bar
>     1.. .5...10....5
>
> Invoking ‘forward-word’ here causes the function registered in
> ‘find-word-boundary-function-table’ to be called with arguments (13
> 16), but we wanted to stop at 8. By the time the driver asks if anyone
> wants off the bus, we’re already way past our stop!

I think this deserves a bug report, then.  You shouldn't need to
override umpteen commands to provide you own definition of what is a word.


        Stefan



reply via email to

[Prev in Thread] Current Thread [Next in Thread]