Excerpts from Jean-Philippe Bernardy's message of Tue Mar 10 17:33:56 +0100 2009: > > 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 ?
I suggest to first do some renaming to make regionOfB the prefered one. regionOfB => maybeEmptyRegionOfB regionOfNonEmptyB => regionOfB Then track easy units like Line or Document maybeEmptyRegionOfB Line => regionOfB Line maybeEmptyRegionOfB Document => regionOfB Document Finally track the last maybeEmptyRegionOfB carefully. Cheers, > On Tue, Mar 10, 2009 at 3:47 PM, <ke...@sb.org> wrote: > > Tue Mar 10 07:45:20 PDT 2009 ke...@sb.org > > * 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. > > > > > > > > -- Nicolas Pouillard --~--~---------~--~----~------------~-------~--~----~ Yi development mailing list yi-devel@googlegroups.com http://groups.google.com/group/yi-devel -~----------~----~----~----~------~----~------~--~---