<div><br></div><div>Hi, everyone;</div><div><br></div><div>I'd like to rebind some of the DrRacket</div><div>editor keys. (I'm trying to reproduce the</div><div>idiosyncratic editor layout I'm used to;</div><div>
it has an emacs flavor but with different</div><div>keys.)</div><div><br></div><div>To start, I just want to map ^t to move</div><div>up a line, ^v to move down, ^f to move</div><div>left, and ^g to move right.</div><div>
<br></div><div>I created this file ("keys.rkt"):</div><div><br></div><div>#lang s-exp framework/keybinding-lang</div><div><br></div><div>(keybinding "c:t" (lambda (editor evt) (send editor previous-line)))</div>
<div>(keybinding "c:v" (lambda (editor evt) (send editor next-line)))</div><div>(keybinding "c:f" (lambda (editor evt) (send editor backward-character)))</div><div>(keybinding "c:g" (lambda (editor evt) (send editor forward-character)))</div>
<div><br></div><div><br></div><div>I add the file using "Add User-defined </div><div>Keybindings" in DrRacket. But I get</div><div>this message as soon as I type one of</div><div>my rebound keys:</div><div><br>
</div><div>Error running keybinding .../Scheme/keys.rkt:18:18</div><div><br></div><div>send: no such method: previous-line for class: ...engine/test-tool.scm:36:6</div><div><br></div><div><br></div><div>It's complaining about the previous-line</div>
<div>method, but that's listed in section 7</div><div>(Editor Functions) of the Racket Graphical</div><div>Interface Toolkit manual:</div><div><span class="Apple-tab-span" style="white-space:pre">        </span><a href="http://docs.racket-lang.org/gui/Editor_Functions.html?q=Editor_Functions&q=editor%25&q=forward-select-word&q=key%20bindings">http://docs.racket-lang.org/gui/Editor_Functions.html?q=Editor_Functions&q=editor%25&q=forward-select-word&q=key%20bindings</a></div>
<div><br></div><div>I'm running Racket 5.1.3 on a two-year-old</div><div>MacBook Pro under OS X 10.7 Lion.</div><div><br></div><div>I'd be grateful for any assistance.</div><div><br></div><div>Thanks,</div><div><br>
</div><div>--DGK</div>