From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.devel Subject: Re: Callbacks from modules Date: Thu, 26 Nov 2015 19:19:41 +0200 Message-ID: <834mg8vfte.fsf@gnu.org> References: <83si3svk91.fsf@gnu.org> <83d1uwvhya.fsf@gnu.org> Reply-To: Eli Zaretskii NNTP-Posting-Host: plane.gmane.org X-Trace: ger.gmane.org 1448558424 8906 80.91.229.3 (26 Nov 2015 17:20:24 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 26 Nov 2015 17:20:24 +0000 (UTC) Cc: darthandrus@gmail.com, tom@tromey.com, joakim@verona.se, emacs-devel@gnu.org To: Philipp Stephani Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Nov 26 18:20:08 2015 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1a20DH-0000eD-Eu for ged-emacs-devel@m.gmane.org; Thu, 26 Nov 2015 18:20:07 +0100 Original-Received: from localhost ([::1]:52527 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1a20DJ-0003hR-S2 for ged-emacs-devel@m.gmane.org; Thu, 26 Nov 2015 12:20:09 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:34300) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1a20DD-0003bD-HK for emacs-devel@gnu.org; Thu, 26 Nov 2015 12:20:04 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1a20D8-0000Fv-Le for emacs-devel@gnu.org; Thu, 26 Nov 2015 12:20:03 -0500 Original-Received: from mtaout20.012.net.il ([80.179.55.166]:49568) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1a20D8-0000FE-DC for emacs-devel@gnu.org; Thu, 26 Nov 2015 12:19:58 -0500 Original-Received: from conversion-daemon.a-mtaout20.012.net.il by a-mtaout20.012.net.il (HyperSendmail v2007.08) id <0NYF00800MI3YJ00@a-mtaout20.012.net.il> for emacs-devel@gnu.org; Thu, 26 Nov 2015 19:19:57 +0200 (IST) Original-Received: from HOME-C4E4A596F7 ([84.94.185.246]) by a-mtaout20.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0NYF008FLMT8XF30@a-mtaout20.012.net.il>; Thu, 26 Nov 2015 19:19:57 +0200 (IST) In-reply-to: X-012-Sender: halo1@inter.net.il X-detected-operating-system: by eggs.gnu.org: Solaris 10 X-Received-From: 80.179.55.166 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:195304 Archived-At: > From: Philipp Stephani > Date: Thu, 26 Nov 2015 17:01:48 +0000 > Cc: darthandrus@gmail.com, emacs-devel@gnu.org > > This is a essentially the same issue as > https://github.com/aaptel/emacs-dynamic-module/issues/41. I didn't understand the issue well enough, but if you say so... Once again, I think registering a Lisp callback will allow it to be called by the C callback, when the event arrives. Of course, if the arriving event calls the C callback on another thread, then Emacs will abort due to the thread check... So I guess the timer solution is the way to go.