[plt-scheme] vi mode and editor questions

From: Robby Findler (robby at cs.uchicago.edu)
Date: Sat Nov 22 21:17:23 EST 2008

On Sat, Nov 22, 2008 at 7:04 PM, Jon Rafkind <workmin at ccs.neu.edu> wrote:
> I don't see the difference between my code and yours except that I'm using
> whatever editor the definitions window uses.

I made a little tool (code below; I added a planet link and an info.ss
file so drscheme would find the tool), and I still see the same (ie,
good) behavior.

Robby

#lang scheme/gui
(require drscheme/tool)

(provide tool@)
(define tool@
  (unit
    (import drscheme:tool^)
    (export drscheme:tool-exports^)

    (define phase1 void)
    (define phase2 void)

    (drscheme:get/extend:extend-definitions-text
     (λ (t%)
       (class t%
         (define/override (on-char evt)
           (printf "key-code ~s control ~s\n"
                   (send evt get-key-code)
                   (send evt get-control-down))
           (super on-char evt))
         (super-new))))))

Posted on the users mailing list.