I did a quick grep and regionOfB is used in a bunch of places. I don't
understand how most of this stuff works yet, so I tweaked promptTag instead
because I don't know what would happen if I redefined regionOfB. If defining
regionOfB to cover only the actual word chars and drop non-word chars works
fine, even if that means the region doesn't include the current point, then
it seems like the right thing to do.
-Kevin

On Tue, Mar 10, 2009 at 9:33 AM, Jean-Philippe Bernardy <
[email protected]> wrote:

>
> Hm, it seems that this is really a problem in regionOfB... It just
> doesn't seem to have useful
> semantics in its current form.
>
> How about defining: regionOfB = regionOfNonEmptyB ?
>
> Thanks!
> JP.
>
> On Tue, Mar 10, 2009 at 3:47 PM,  <[email protected]> wrote:
> > Tue Mar 10 07:45:20 PDT 2009  [email protected]
> >  * Yi.Keymap.Emacs.Utils: Make promptTag restrict the default value to
> the first word
> >
> >  promptTag uses (readUnitB unitWord) to extract the current word as the
> >  default value for the tag to search for. Unfortunately, this catches
> >  non-word characters if the cursor is not on a word char. Teach promptTag
> >  to explicitly find the first word within the results of readUnitB.
> >
> > >
> >
>
> >
>


-- 
Kevin Ballard
http://kevin.sb.org
[email protected]

--~--~---------~--~----~------------~-------~--~----~
Yi development mailing list
[email protected]
http://groups.google.com/group/yi-devel
-~----------~----~----~----~------~----~------~--~---

Reply via email to