All the standard emacs bindings work. crtl-a, yanks etc. The ctrl-\ was working for me for at least several months. So it looks like something changed where I'm getting the frame% and not the editor%.<div><br></div><div>
Also some of the standard keybindings do not work for me. Typical example is check-syntax. ctrl-c:ctrl-c doesn't work but F6 does.<br><div><br><div class="gmail_quote">On Sat, Oct 27, 2012 at 9:28 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">What happens when you type control-a (with the menu keybindings turned<br>
off). That should do a similar thing to what your keybinding does (ie<br>
call a text% method of that first argument without checking to see it<br>
is a text% object). If it works, it will move the insertion point to<br>
the beginning of the line.<br>
<span class="HOEnZb"><font color="#888888"><br>
Robby<br>
</font></span><div class="HOEnZb"><div class="h5"><br>
On Sat, Oct 27, 2012 at 8:23 PM, Ray Racine <<a href="mailto:ray.racine@gmail.com">ray.racine@gmail.com</a>> wrote:<br>
> And to answer your question, can confirm I have the editor window in focus.<br>
> I type a few letters in the editor, then ctrl-\ and popup box.<br>
><br>
><br>
> On Sat, Oct 27, 2012 at 9:16 PM, Ray Racine <<a href="mailto:ray.racine@gmail.com">ray.racine@gmail.com</a>> wrote:<br>
>><br>
>> Robby,<br>
>><br>
>> OK, I reduced my keybindings.rkt file to exactly the below.<br>
>><br>
>> #lang s-exp framework/keybinding-lang<br>
>> ;; insert ë<br>
>> (keybinding "c:\\" (ë (editor evt)<br>
>> (pretty-print editor)<br>
>> (send editor insert "ë")))<br>
>><br>
>> When I run drracket from the command line what I see printed is<br>
>><br>
>> ray@rpr:~$ /usr/local/racket/bin/drracket<br>
>> #(struct:object:...cts/version/tool.rkt:176:9 ...)<br>
>><br>
>> This matches the popup box error as well. Screenshot is here.<br>
>><br>
>> <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><br>
>><br>
>> So it doesn't appear to be an instance of editor% but I don't know why.<br>
>> I'm running Linux Ubuntu 12.10. It happens in #lang racket.<br>
>><br>
>> Ray<br>
>><br>
>> On Sat, Oct 27, 2012 at 8:12 PM, Robby Findler<br>
>> <<a href="mailto:robby@eecs.northwestern.edu">robby@eecs.northwestern.edu</a>> wrote:<br>
>>><br>
>>> 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>
>>><br>
>>> Robby<br>
>>><br>
>>> On Sat, Oct 27, 2012 at 12:37 PM, Ray Racine <<a href="mailto:ray.racine@gmail.com">ray.racine@gmail.com</a>><br>
>>> 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<br>
>>> > error.<br>
>>> ><br>
>>> > The workaround I have is to use "menu-bind" method in your keybindings<br>
>>> > 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">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">ray.racine@gmail.com</a>><br>
>>> >> wrote:<br>
>>> >> > OK, sat down this morning to figure out why my custom Racket<br>
>>> >> > 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">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>
>><br>
>><br>
><br>
</div></div></blockquote></div><br></div></div>