jed-users mailing list

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

Re: bol improvement


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);

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

Marko

--------------------------
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]