<div dir="ltr"><div>[ Adding the list back in, as last time it seems like it was unintentionally left off. ]</div><div><br></div>I think you will find that posts on the mailing list like this will get answered (probably by someone other than me!), especially if they begin with something like "Hi everyone: I'm trying to figure out a few more Emacs-like keybindings to add to DrRacket and got stuck figuring out how to do X. Here's what I tried and where I got stuck ...."<div>
<br></div><div>In this case, I think you want to use something like the 'rebind' function described here:</div><div><br></div><div><a href="http://docs.racket-lang.org/drracket/Keyboard_Shortcuts.html?q=keybindings#%28part._defining-shortcuts%29">http://docs.racket-lang.org/drracket/Keyboard_Shortcuts.html?q=keybindings#%28part._defining-shortcuts%29</a><br>
</div><div><br></div><div>to call the keymap's function named "exit".</div><div><br></div><div>The 'close' method that's being invoked in that code is an editor method, not the frame method and is designed for frames to inform editors that they are being closed (so it is mostly for being overridden). The docs do contain some wording to this effect, but I can see how it is easy to get lost in big framework documentation.</div>
<div><br></div><div>hth,</div><div>Robby</div><div class="gmail_extra"><br><br><div class="gmail_quote">On Sat, Sep 14, 2013 at 8:04 AM, Eduardo Costa <span dir="ltr"><<a href="mailto:edu500ac@gmail.com" target="_blank">edu500ac@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div><div>Hi, Robby.<br><br></div>I have built the system from git, because I don't know how to apply diffs. In any case, now everything is working perfectly well. <br>
<br></div>As for the complete Emacs keybindings, I have a few comments. I teach Computer Architecture and Compiler construction. People here use mostly Common Lisp (sbcl) in both courses, and Emacs. The reason is that Common Lisp has good libraries for dealing with number formats, which is the section A of both licensing examinations that our students are supposed to take. On the pamflet of the National Council of Examiners for Engineering and Surveying, one can read:<br>
<div class="gmail_extra"><br>Computer Systems <br>A. Numeric and Nonnumeric Formats <br>1. Number representation <br>2. Character representation <br>3. Encoding schemes <br>4. Error detection and correction <br><br></div>
<div class="gmail_extra">Of course, teachers here use Emacs for editing verilog programs, etc. Common Lisp has libraries for dealing with IEEE 754 standard and other number representations. <br><br></div><div class="gmail_extra">
I am thinking about switching to Racket, because its IDE. Of course, students are used to Emacs, and will be uncomfortable with different keybindings. But they like all graphics that they find out of the box in Racket, and the possibility of generating png and jpg images. <br>
<br></div><div class="gmail_extra">My students tested your key bindings, and they think that they satisfy most needs of typing without mouse. In any case, three students offered as volunteers for adding a more complete set of key bindings. However, they do not know Racket very well, and somebody will need to tutor them. For the time being, I would like to know how to implement the quit key binding. Mrs Junia Magellan, a graduate student, tried the following program:<br>
<br>#lang s-exp framework/keybinding-lang<br><br>(keybinding "c:x;c:c" (lambda (ed evt) <br> (send ed close)))<br><br></div><div class="gmail_extra">The problem is that this key binding does not quit. If you accept collaboration from my students, you will need to answer many questions like that. <br>
<br></div><div><div class="h5"><div class="gmail_extra"><br><div class="gmail_quote">2013/9/14 Robby Findler <span dir="ltr"><<a href="mailto:robby@eecs.northwestern.edu" target="_blank">robby@eecs.northwestern.edu</a>></span><br>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<div dir="ltr">You can build from git: <a href="https://github.com/plt/racket/" target="_blank">https://github.com/plt/racket/</a>; you can manually apply a similar diff to this one:<div><br></div><div> <a href="https://github.com/plt/racket/commit/c0462d0fed6d37c1f038dde141021f63505902b5" target="_blank">https://github.com/plt/racket/commit/c0462d0fed6d37c1f038dde141021f63505902b5</a></div>
<div><br></div><div>or you can get a snapshot build (but this commit won't be in there for about 12-14 hours I guess):</div><div><br></div><div> <a href="http://plt.eecs.northwestern.edu/snapshots/" target="_blank">http://plt.eecs.northwestern.edu/snapshots/</a></div>
<div> <a href="http://www.cs.utah.edu/plt/snapshots/" target="_blank">http://www.cs.utah.edu/plt/snapshots/</a></div><div><br></div><div>hth,</div><div>Robby</div><div><br></div></div><div class="gmail_extra"><br><br><div class="gmail_quote">
<div>
On Fri, Sep 13, 2013 at 10:36 PM, Eduardo Costa <span dir="ltr"><<a href="mailto:edu500ac@gmail.com" target="_blank">edu500ac@gmail.com</a>></span> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<div>
<div dir="ltr"><div>Sorry, I replied directly to Robby Findler, instead of sending the request to the list, so others can also profit of Robby's answer. <br><br></div>Where can one get the modified esc;w?<br><br></div>
<br></div>____________________<br>
Racket Users list:<br>
<a href="http://lists.racket-lang.org/users" target="_blank">http://lists.racket-lang.org/users</a><br>
<br></blockquote></div><br></div>
</blockquote></div><br></div></div></div></div>
</blockquote></div><br></div></div>