From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Ivan Andrus Newsgroups: gmane.emacs.devel Subject: Re: Callbacks from modules Date: Thu, 26 Nov 2015 20:35:06 -0700 Message-ID: References: <83vb8otxhf.fsf@gnu.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 (Mac OS X Mail 9.1 \(3096.5\)) Content-Type: multipart/alternative; boundary="Apple-Mail=_4625F85A-6586-42DE-812E-18EB03BB0580" X-Trace: ger.gmane.org 1448595320 25171 80.91.229.3 (27 Nov 2015 03:35:20 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 27 Nov 2015 03:35:20 +0000 (UTC) Cc: Eli Zaretskii , dancol@dancol.org, emacs-devel@gnu.org To: Philipp Stephani Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Nov 27 04:35:17 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 1a29oZ-0007PL-LF for ged-emacs-devel@m.gmane.org; Fri, 27 Nov 2015 04:35:15 +0100 Original-Received: from localhost ([::1]:54476 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1a29ob-00041B-WD for ged-emacs-devel@m.gmane.org; Thu, 26 Nov 2015 22:35:18 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:36074) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1a29oZ-000413-51 for emacs-devel@gnu.org; Thu, 26 Nov 2015 22:35:15 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1a29oY-00006E-6a for emacs-devel@gnu.org; Thu, 26 Nov 2015 22:35:15 -0500 Original-Received: from mail-ob0-x22e.google.com ([2607:f8b0:4003:c01::22e]:36549) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1a29oT-00005O-CE; Thu, 26 Nov 2015 22:35:09 -0500 Original-Received: by obdgf3 with SMTP id gf3so74941188obd.3; Thu, 26 Nov 2015 19:35:08 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=content-type:mime-version:subject:from:in-reply-to:date:cc :message-id:references:to; bh=n0qWUT8QEJu0U9IlRxETXY/hAeh1YdmPPiZuBZiXJb0=; b=Oz7ySNwh/KQE2pJbRJJ67GrkCmuGbZ2GMDbdnyTv3YgOYGKdsxxXsfFzOeUVFf2nMs x2LJGfvfsULLQ6N8aiceOc2VBbXWt4hBLwltz+XRbUNEscKz+zL7+DMD0h9eF28QU8yZ SrjSSD68NUzrMMhFGshBjveMoDu5/D5AFNBcMCMotchxj/cF16YuQzWpN0CZp0Xcf/Wx Vhr3TMRSlmhssAUPq5s4CP1K4VlNX8OU+ZVBjp2F+b7b1Bw5KS6M//CR+Zam4UVXv4O8 rxKOtk/EmDmLykoSKB/z2BR5+e0mFRzmyWAfcM96tSPjoex5eGe027ZM0ZfA5F3iRzrV RX2w== X-Received: by 10.182.131.132 with SMTP id om4mr33582085obb.72.1448595308710; Thu, 26 Nov 2015 19:35:08 -0800 (PST) Original-Received: from [192.168.0.3] (174-23-136-94.slkc.qwest.net. [174.23.136.94]) by smtp.gmail.com with ESMTPSA id wk4sm4176776oeb.3.2015.11.26.19.35.07 (version=TLSv1/SSLv3 cipher=OTHER); Thu, 26 Nov 2015 19:35:08 -0800 (PST) In-Reply-To: X-Mailer: Apple Mail (2.3096.5) X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2607:f8b0:4003:c01::22e 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:195334 Archived-At: --Apple-Mail=_4625F85A-6586-42DE-812E-18EB03BB0580 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=utf-8 On Nov 26, 2015, at 11:44 AM, Philipp Stephani = wrote: >=20 > IOW, such arbitrary callbacks need to run in the C land, and > communicate with Lisp via timers. In the future, we might add > facilities that would allow a module register a file descriptor > through which events could flow into the Emacs event queue. But that > is not yet available, and I'm not sure we'd want to allow it. >=20 > I agree.=20 It seems desirable to me to have a function=20 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. Though I admit I = don=E2=80=99t really understand how it all works. -Ivan= --Apple-Mail=_4625F85A-6586-42DE-812E-18EB03BB0580 Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset=utf-8 On Nov 26, 2015, at 11:44 AM, Philipp Stephani <p.stephani2@gmail.com> wrote:

IOW, such arbitrary = callbacks need to run in the C land, and
communicate with = Lisp via timers.  In the future, we might add
facilities that would allow a module register a file = descriptor
through which events could flow into the Emacs = event queue.  But that
is not yet available, and I'm = not sure we'd want to allow it.

I = agree. 

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.  Though I admit I don=E2=80=99t really understand = how it all works.

-Ivan
= --Apple-Mail=_4625F85A-6586-42DE-812E-18EB03BB0580--