And to answer your question, can confirm I have the editor window in focus. I type a few letters in the editor, then ctrl-\ and popup box.<br><br><div class="gmail_quote">On Sat, Oct 27, 2012 at 9:16 PM, Ray Racine <span dir="ltr"><<a href="mailto:ray.racine@gmail.com" target="_blank">ray.racine@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>Robby,</div><div><br></div><div>OK, I reduced my keybindings.rkt file to exactly the below.</div><div><br></div><div>
#lang s-exp framework/keybinding-lang</div><div>;; insert ë</div><div><div class="im"><div>(keybinding "c:\\" (ë (editor evt) </div>
</div><div><span style="white-space:pre-wrap">                </span> (pretty-print editor) </div><div class="im"><div><span style="white-space:pre-wrap">                </span> (send editor insert "ë")))</div></div></div>
<div><br></div><div>When I run drracket from the command line what I see printed is</div><div><div><br></div><div>ray@rpr:~$ /usr/local/racket/bin/drracket </div><div>#(struct:object:...cts/version/tool.rkt:176:9 ...)</div>
</div><div><br></div><div>This matches the popup box error as well. Screenshot is here.</div><div><a href="https://plus.google.com/u/0/photos/108838931798929528241/albums/5804161505516624049" target="_blank">https://plus.google.com/u/0/photos/108838931798929528241/albums/5804161505516624049</a></div>
<div><br></div><div>So it doesn't appear to be an instance of editor% but I don't know why. I'm running Linux Ubuntu 12.10. It happens in #lang racket. </div><span class="HOEnZb"><font color="#888888"><div>
<br></div><div>Ray</div></font></span><div class="HOEnZb"><div class="h5"><br><div class="gmail_quote">
On Sat, Oct 27, 2012 at 8:12 PM, Robby Findler <span dir="ltr"><<a href="mailto:robby@eecs.northwestern.edu" target="_blank">robby@eecs.northwestern.edu</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
I've tried this and I see a lambda char inserted.<br>
<br>
Is it possible that the keyboard focus is not in an editor? That would<br>
mean that the 'editor' argument wouldn't actually be an editor.<br>
<br>
Maybe try printing that out, and that'll shed some light on what's<br>
going on here.<br>
<span><font color="#888888"><br>
Robby<br>
</font></span><div><div><br>
On Sat, Oct 27, 2012 at 12:37 PM, Ray Racine <<a href="mailto:ray.racine@gmail.com" target="_blank">ray.racine@gmail.com</a>> wrote:<br>
> I spoke to soon there still is something broken. But I did find a work<br>
> around.<br>
><br>
> To reproduce:<br>
><br>
> 1) Create a custom keybinding file.<br>
> 2) Use emacs keybindings by unchecking Enable Menu Keybindings in your<br>
> Preferences (as in section 3.3 of the Racket doc)<br>
> 3) Define a simple one-line keybinding in the keybinding file.<br>
> (keybinding "c:\\" (ë (editor evt) (send editor insert "ë")))<br>
> 4) Set the keybinding file and attempt to do a ctr-\ and you see the error.<br>
><br>
> The workaround I have is to use "menu-bind" method in your keybindings file.<br>
> When I use that to bind to the "Insert ë" menu option, it works.<br>
><br>
> Ray<br>
><br>
> On Sat, Oct 27, 2012 at 10:21 AM, Robby Findler<br>
> <<a href="mailto:robby@eecs.northwestern.edu" target="_blank">robby@eecs.northwestern.edu</a>> wrote:<br>
>><br>
>> Sorry-- I had this on my list of things to look into (but it sounds<br>
>> like I was missing a piece anyways). If you saved a copy of that<br>
>> directory and don't mind sharing it, I'd be happy to try to look into<br>
>> it more.<br>
>><br>
>> Robby<br>
>><br>
>> On Sat, Oct 27, 2012 at 9:14 AM, Ray Racine <<a href="mailto:ray.racine@gmail.com" target="_blank">ray.racine@gmail.com</a>> wrote:<br>
>> > OK, sat down this morning to figure out why my custom Racket keybinding<br>
>> > were<br>
>> > failing. No idea of the exact cause, but step 1, clearing out my<br>
>> > .racket/preferences brought them back. Working fine now.<br>
>> ><br>
>> > Ray<br>
>> ><br>
>> ><br>
>> > On Tue, Oct 23, 2012 at 11:15 AM, Ray Racine <<a href="mailto:ray.racine@gmail.com" target="_blank">ray.racine@gmail.com</a>><br>
>> > wrote:<br>
>> >><br>
>> >> Up until recently the following worked for me. Create a custom<br>
>> >> keybindings file. Add the following line.<br>
>> >><br>
>> >> (keybinding "c:\\" (ë (editor evt) (send editor insert "ë")))<br>
>> >><br>
>> >> And a Ctrl:\ would insert a ë for me. Recently this has stopped<br>
>> >> working<br>
>> >> as reported below. Any ideas on how to bring it back?<br>
>> >><br>
>> >> Thanks,<br>
>> >><br>
>> >> Ray<br>
>> >>><br>
>> >>><br>
>> >>> The key binding is invoked, however, I'm seeing the following in a<br>
>> >>> pop-up.<br>
>> >>><br>
>> >>> Error running keybinding<br>
>> >>> send: no such method<br>
>> >>> method name: insert<br>
>> >>> class name: cts/version/tool.rkt:176:9<br>
>> >>><br>
>> ><br>
>> ><br>
>> > ____________________<br>
>> > Racket Users list:<br>
>> > <a href="http://lists.racket-lang.org/users" target="_blank">http://lists.racket-lang.org/users</a><br>
>> ><br>
><br>
><br>
</div></div></blockquote></div><br>
</div></div></blockquote></div><br>