[plt-scheme] Question about user defined keybinding
On Jul 16, Grant Rettke wrote:
> Hi
>
> I had a custom keybinding in v372. In v4.x, the same binding works
> fine, but I figured I would check if it ought to be updated.
>
> The docs (doc/drscheme/Keyboard_Shortcuts.html#(part._defining-shortcuts)
> say you can use the form:
>
> (module mykeys framework/keybinding-lang
>
> ...)
>
> But when I change my module to that language I get the error:
>
> Error when installing the keybindings C:\scheme\grant\drscheme\mykeys.ss:
>
> add-user-keybindings-file: The file
> C:\scheme\grant\drscheme\mykeys.ss does not contain a module written
> in the (lib "keybinding- lang.ss" "framework") language.
>
> Did I do something wrong?
No, the released version (4.0.2) insists on that particular form, so
you need to use
(module mykeys (lib "keybinding-lang.ss" "framework") ...)
It's fixed in svn, so in the future what you wrote above will work
fine.
--
((lambda (x) (x x)) (lambda (x) (x x))) Eli Barzilay:
http://www.barzilay.org/ Maze is Life!