From: joakim@verona.se
To: Stefan Monnier <monnier@iro.umontreal.ca>
Cc: emacs-devel@gnu.org
Subject: Re: how to make a hook function and call from C?
Date: Sat, 10 May 2008 00:01:17 +0200 [thread overview]
Message-ID: <m3k5i3w30y.fsf@verona.se> (raw)
In-Reply-To: <jwv7ie3xvb3.fsf-monnier+emacs@gnu.org> (Stefan Monnier's message of "Fri, 09 May 2008 13:06:41 -0400")
Stefan Monnier <monnier@iro.umontreal.ca> 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
next prev parent reply other threads:[~2008-05-09 22:01 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-05-08 20:44 how to make a hook function and call from C? joakim
2008-05-09 1:25 ` Stefan Monnier
2008-05-09 15:56 ` joakim
2008-05-09 17:06 ` Stefan Monnier
2008-05-09 22:01 ` joakim [this message]
2008-05-09 11:13 ` Richard M Stallman
2008-05-09 14:31 ` Stefan Monnier
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=m3k5i3w30y.fsf@verona.se \
--to=joakim@verona.se \
--cc=emacs-devel@gnu.org \
--cc=monnier@iro.umontreal.ca \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.