[racket] Custom Keybindings - Editor Insert Poofed
I spoke to soon there still is something broken. But I did find a work
around.
To reproduce:
1) Create a custom keybinding file.
2) Use emacs keybindings by unchecking Enable Menu Keybindings in your
Preferences (as in section 3.3 of the Racket doc)
3) Define a simple one-line keybinding in the keybinding file.
(keybinding "c:\\" (λ (editor evt) (send editor insert "λ")))
4) Set the keybinding file and attempt to do a ctr-\ and you see the error.
The workaround I have is to use "menu-bind" method in your keybindings
file. When I use that to bind to the "Insert λ" menu option, it works.
Ray
On Sat, Oct 27, 2012 at 10:21 AM, Robby Findler <robby at eecs.northwestern.edu
> wrote:
> Sorry-- I had this on my list of things to look into (but it sounds
> like I was missing a piece anyways). If you saved a copy of that
> directory and don't mind sharing it, I'd be happy to try to look into
> it more.
>
> Robby
>
> On Sat, Oct 27, 2012 at 9:14 AM, Ray Racine <ray.racine at gmail.com> wrote:
> > OK, sat down this morning to figure out why my custom Racket keybinding
> were
> > failing. No idea of the exact cause, but step 1, clearing out my
> > .racket/preferences brought them back. Working fine now.
> >
> > Ray
> >
> >
> > On Tue, Oct 23, 2012 at 11:15 AM, Ray Racine <ray.racine at gmail.com>
> wrote:
> >>
> >> Up until recently the following worked for me. Create a custom
> >> keybindings file. Add the following line.
> >>
> >> (keybinding "c:\\" (λ (editor evt) (send editor insert "λ")))
> >>
> >> And a Ctrl:\ would insert a λ for me. Recently this has stopped working
> >> as reported below. Any ideas on how to bring it back?
> >>
> >> Thanks,
> >>
> >> Ray
> >>>
> >>>
> >>> The key binding is invoked, however, I'm seeing the following in a
> >>> pop-up.
> >>>
> >>> Error running keybinding
> >>> send: no such method
> >>> method name: insert
> >>> class name: cts/version/tool.rkt:176:9
> >>>
> >
> >
> > ____________________
> > Racket Users list:
> > http://lists.racket-lang.org/users
> >
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.racket-lang.org/users/archive/attachments/20121027/9040173e/attachment.html>