[racket] Difficult key-binding

From: Eduardo Bellani (ebellani at gmail.com)
Date: Tue Nov 16 12:22:21 EST 2010

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

A followup:

(keybinding "c:x;k"
            ;; anything
)

This code seems to disable other emacs style keybindings (such as
c:x;c:f  and c:x;o).

I've traced it apparently to the use of the semicolon. Does anyone has
any clue about what is going on?

Thanks.

On 11/09/2010 05:45 PM, Eduardo Bellani wrote:
> Thanks, worked like a charm!
> 
> On 11/09/2010 03:38 PM, Ryan Culpepper wrote:
>> Eduardo Bellani wrote:
>>> But as you can see here:
>>>
>>> (define (diva-link:frame-mixin super%) ... )
>>>
>>> diva-link is a frame-mixin. So my problem is probably my lack of
>>> understanding of the mixin mechanism. But my doubt remains, with a
>>> clearer cause :)
>>
>> The file diva-link.ss has many mixins. Line 572 (from the error message)
>> is diva-link:text-interactions-mixin, so what you have is an editor. You
>> can use the editor's get-top-level-window method to get the frame.
>>
>> Ryan
>>
>>
>>> On 11/09/2010 03:15 PM, Robby Findler wrote:
>>>> close-current-tab is a method on the frame, I believe.
>>>>
>>>> Robby
>>>>
>>>> On Tue, Nov 9, 2010 at 11:12 AM, Eduardo Bellani <ebellani at gmail.com>
>>>> wrote:
>>>>> Hello there.
>>>>>
>>>>> I am trying to add this keybinding, but without success:
>>>>>
>>>>> (keybinding "c:x;c:k" (λ (editor evt)
>>>>>                        ;; close current tab (or buffer)
>>>>>                        (send editor close-current-tab)))
>>>>>
>>>>> The error I got is this:
>>>>>
>>>>> send: no such method: close-current-tab for class:
>>>>> ...plt/1/6/diva-link.ss:572:4
>>>>>
>>>>> I am, as you can see, using divascheme. But from what I can see, this
>>>>> diva-link should accept the close-current-tab method.
>>>>>
>>>>> Any pointers?
>>>>>
>>>>> -- 
>>>>> Eduardo Bellani
>>>>>
>>>>> omnia mutantur, nihil interit.
>>>>> _________________________________________________
>>>>>  For list-related administrative tasks:
>>>>>  http://lists.racket-lang.org/listinfo/users
>>>
>>>
>>
> 
> 


- -- 
Eduardo Bellani

omnia mutantur, nihil interit.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAkzivc0ACgkQSbLl0kCTjGkXewCfXZ4A7E7bVGHKgug7szxtgNTf
GaUAn1fvA3YJifKVYgIOP4x+NhOn7EuX
=k8mQ
-----END PGP SIGNATURE-----


Posted on the users mailing list.