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: Fri, 27 Nov 2015 10:30:34 +0200 Message-ID: <83610nu9n9.fsf@gnu.org> References: <83vb8otxhf.fsf@gnu.org> Reply-To: Eli Zaretskii NNTP-Posting-Host: plane.gmane.org X-Trace: ger.gmane.org 1448613072 13780 80.91.229.3 (27 Nov 2015 08:31:12 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 27 Nov 2015 08:31:12 +0000 (UTC) Cc: p.stephani2@gmail.com, dancol@dancol.org, emacs-devel@gnu.org To: Ivan Andrus Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Nov 27 09:31:02 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 1a2EQn-0006HL-LZ for ged-emacs-devel@m.gmane.org; Fri, 27 Nov 2015 09:31:01 +0100 Original-Received: from localhost ([::1]:55322 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1a2EQq-00072C-8h for ged-emacs-devel@m.gmane.org; Fri, 27 Nov 2015 03:31:04 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:55016) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1a2EQj-0006xq-2O for emacs-devel@gnu.org; Fri, 27 Nov 2015 03:31:01 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1a2EQe-00030X-Nu for emacs-devel@gnu.org; Fri, 27 Nov 2015 03:30:56 -0500 Original-Received: from mtaout28.012.net.il ([80.179.55.184]:46869) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1a2EQe-0002zX-GE for emacs-devel@gnu.org; Fri, 27 Nov 2015 03:30:52 -0500 Original-Received: from conversion-daemon.mtaout28.012.net.il by mtaout28.012.net.il (HyperSendmail v2007.08) id <0NYG00400SWDW800@mtaout28.012.net.il> for emacs-devel@gnu.org; Fri, 27 Nov 2015 10:29:44 +0200 (IST) Original-Received: from HOME-C4E4A596F7 ([84.94.185.246]) by mtaout28.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0NYG00LTQSXK9770@mtaout28.012.net.il>; Fri, 27 Nov 2015 10:29:44 +0200 (IST) In-reply-to: X-012-Sender: halo1@inter.net.il X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 80.179.55.184 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:195356 Archived-At: > From: Ivan Andrus > Date: Thu, 26 Nov 2015 20:35:06 -0700 > Cc: Eli Zaretskii , > dancol@dancol.org, > emacs-devel@gnu.org > > It seems desirable to me to have a function > > void send_event( char const * type ); > > which would just queue a special type of event that could be dispatched on the > elisp side through the normal even handling. You can't do that from another thread, because the Emacs event queue is not ready to be accessed from several threads.