jed-users mailing list

[2007 Date Index] [2007 Thread Index] [Other years]
[Thread Prev] [Thread Next]      [Date Prev] [Date Next]

Re: bol improvement


On  9.05.07, Marko Mahnic wrote:
> G. Milde wrote:

> >Dear CUA-emulation users,
> >
> >Should the "smart" jbol() be the default for Key_Home? 
> >
> >(After all there are already some "smart" key bindings in cua.sl, so
> >"cua-users" should know to be careful with keyboard macros.)
> >
> >Günter

> It is ok to make it the default.

> Here is a suggestion that can make the command more deterministic.
> On the first invocation, the cursor is always moved to bol or
> to first non-white depending on a user setting (not tested):


> custom_variable("jbol_first_skip_white", 1);

I would not introduce one more configuration variable. jbol() is not very
likely to be used interactively but rather bound to a key. Then it would be
simple to bind e.g.

  setkey("jbol(0)",                    Key_Home); % move to bol first
  
or 

  setkey("jbol(1)",                    Key_Home); % bol-skip white first


with

public define jbol(skip_white)
{
   if (skip_white)
     bol_skip_white();
   else
     bol();
   if (LAST_KBD_COMMAND == "jbol")
   {
     if (bolp())
       skip_white();
     else
       bol();
   }
}

This would start with the behaviour indicated by the `skip_white' argument
and toggle on subsequent calls.


But, which argument should cua.sl use by default?


Günter

--------------------------
To unsubscribe send email to <jed-users-request@xxxxxxxxxxx> with
the word "unsubscribe" in the message body.
Need help? Email <jed-users-owner@xxxxxxxxxxx>.


[2007 date index] [2007 thread index]
[Thread Prev] [Thread Next]      [Date Prev] [Date Next]