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 #t))))

(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

Attachment: smime.p7s
Description: S/MIME cryptographic signature

_________________________________________________
  For list-related administrative tasks:
  http://list.cs.brown.edu/mailman/listinfo/plt-dev

Reply via email to