[plt-dev] Keybindings in DrScheme 4.2.2/win32

From: John Clements (clements at brinckerhoff.org)
Date: Thu Oct 8 12:32:29 EDT 2009

On Oct 6, 2009, at 12:17 PM, Daniel Leidisch wrote:

> Hello!
> My keybindings, which used to work under DrScheme 4.2.1 (win32/ 
> german) refuse to load under 4.2.2. I asked about this on #scheme  
> and was told to post this at the mailing list, so here I go. OS is  
> Windows XP SP3, 32 bit.
> The keybinding file with the error message appended is at:
> http://paste.lisp.org/display/88225

Hmm... this isn't a fix, but you can work around this (apparent bug?)  
by going back to the old style of module declaration. That is, if the  
file is named keybindings.ss:

(module keybindings framework/keybinding-lang

(define (simple-keybinding kb-string kb-proc)
   (keybinding kb-string (λ (editor event)
                           (send (send editor get-keymap)
                                 call-function kb-proc editor event  

(keybinding "m:l" (λ (ed ev) (send ed insert "λ")))
(keybinding "m:/" (λ (ed ev) (send ed auto-complete)))

(simple-keybinding "m:b" "backward-sexp")
(simple-keybinding "m:f" "forward-sexp")
(simple-keybinding "m:t" "transpose-sexp")
(simple-keybinding "m:k" "remove-sexp")
(simple-keybinding "m:d" "down-sexp")
(simple-keybinding "m:u" "up-sexp")
(simple-keybinding "c:c;c:d" "search-help-desk")
(simple-keybinding "c:c;d" "search-help-desk")
(simple-keybinding "c:c;c:r" "execute")
(simple-keybinding "c:c;r" "execute")
(simple-keybinding "m:semicolon" "comment-out")
(simple-keybinding "c:u;m:semicolon" "uncomment")
(simple-keybinding "c:j" "do-return")

Hope this helps,

John Clements

-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 2484 bytes
Desc: not available
URL: <http://lists.racket-lang.org/dev/archive/attachments/20091008/c0f73e79/attachment.p7s>

Posted on the dev mailing list.