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: Stefan Monnier
Subject: Re: how to make a hook function and call from C?
Date: Fri, 09 May 2008 13:06:41 -0400
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.60 (gnu/linux)

> 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.


        Stefan




reply via email to

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