jed-users mailing list

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

Re: registers and after_key_hook


Alain Nadeau <nadeau@xxxxxxxxxxx> wrote:
>But... (and here I'm following up on Jörg's patch "after_key_hook not run by 
>do_key"). in order for your suggestion to work I had to update my version of 
>register.sl from my current 99.13 to that of 99.18.

A lot has changed since 0.99.13.

>But for now, since I happily use one-char regs a whole lot, either I have to 
>get used to this new extra ENTER or I'll try (as Jörg appears to be doing) 
>to edit this more recent register.sl back to the old functionality.

Try adding the following to the end of your .jedrc file:

private define unget_register_name (prompt)
{
   flush (prompt);
   variable ch = getkey ();
   ungetkey ('\r'); ungetkey (ch);
}

define my_copy_to_register ()
{
   unget_register_name ("Copy to register: ");
   reg_copy_to_register ();
}

define my_insert_register ()
{
   unget_register_name ("Insert register: ");
   reg_insert_register ();
}

define keybindings_hook (emulation)
{
   setkey ("my_copy_to_register", "^Xx");   % Assumes emacs bindings
   setkey ("my_insert_register", "^Xg");
}

--John


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


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