emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: how to make a hook function and call from C?


From: joakim
Subject: Re: how to make a hook function and call from C?
Date: Sat, 10 May 2008 00:01:17 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.60 (gnu/linux)

Stefan Monnier <address@hidden> writes:

>>> in make_lispy_event()
>> ...
>>     case XWIDGET_EVENT:
>>       printf("cool, an xwidget event arrived in make_lispy_event!\n");
>>       return event->arg;
>> ...
>
>> then in my elisp test code after all widgets are setup:
>> ...
>> (message "event:%s"(read-key-sequence "wait for event"))
>
> Maybe the problem is that you use a nil event.  Try something else.
> Also look at C-h l to see the events received.

Thanks, this helped!

Now I'm able to sucessfully bind an event handler to a gtk button press,
and when a gtk socket is ready. I was then able to automaticaly start
an embedded video player in emacs when the socket was ready to receive.



>
>
>         Stefan
-- 
Joakim Verona




reply via email to

[Prev in Thread] Current Thread [Next in Thread]