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: Richard M Stallman
Subject: Re: how to make a hook function and call from C?
Date: Fri, 09 May 2008 07:13:27 -0400

    I want to call lisp inside a gtk widget signal handler:

You must not do that.  At present, it would cause crashes.

Stefan has a change that would run signal handler code outside signal
handlers.  Maybe with that change this would become ok, for some
purposes.  But not for a command that is meant to switch buffers, such
as `info'.  If that happens in the middle of some other program,
it will confuse that other program.

The right way to do THIS case, at least, is to generate an input
event.  Maybe that is the best way to handle all of these callbacks.







reply via email to

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