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:35:40 +0200 Message-ID: <834mg7u9er.fsf@gnu.org> References: <83vb8otxhf.fsf@gnu.org> <87wpt4xea8.fsf@tromey.com> Reply-To: Eli Zaretskii NNTP-Posting-Host: plane.gmane.org X-Trace: ger.gmane.org 1448613376 18105 80.91.229.3 (27 Nov 2015 08:36:16 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 27 Nov 2015 08:36:16 +0000 (UTC) Cc: darthandrus@gmail.com, p.stephani2@gmail.com, dancol@dancol.org, emacs-devel@gnu.org To: Tom Tromey Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Nov 27 09:36:01 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 1a2EVd-0006WD-0O for ged-emacs-devel@m.gmane.org; Fri, 27 Nov 2015 09:36:01 +0100 Original-Received: from localhost ([::1]:55331 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1a2EVf-0007lm-H5 for ged-emacs-devel@m.gmane.org; Fri, 27 Nov 2015 03:36:03 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:57402) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1a2EVb-0007lg-LO for emacs-devel@gnu.org; Fri, 27 Nov 2015 03:36:00 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1a2EVX-0006X6-KS for emacs-devel@gnu.org; Fri, 27 Nov 2015 03:35:59 -0500 Original-Received: from mtaout24.012.net.il ([80.179.55.180]:35899) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1a2EVX-0006Vj-47 for emacs-devel@gnu.org; Fri, 27 Nov 2015 03:35:55 -0500 Original-Received: from conversion-daemon.mtaout24.012.net.il by mtaout24.012.net.il (HyperSendmail v2007.08) id <0NYG00G00SMYT500@mtaout24.012.net.il> for emacs-devel@gnu.org; Fri, 27 Nov 2015 10:28:42 +0200 (IST) Original-Received: from HOME-C4E4A596F7 ([84.94.185.246]) by mtaout24.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0NYG009MLSVUV770@mtaout24.012.net.il>; Fri, 27 Nov 2015 10:28:42 +0200 (IST) In-reply-to: <87wpt4xea8.fsf@tromey.com> 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.180 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:195357 Archived-At: > From: Tom Tromey > Cc: Philipp Stephani , darthandrus@gmail.com, dancol@dancol.org, emacs-devel@gnu.org > Date: Thu, 26 Nov 2015 21:22:07 -0700 > > >>>>> "Eli" == Eli Zaretskii writes: > > Eli> In the future, we might add > Eli> facilities that would allow a module register a file descriptor > Eli> through which events could flow into the Emacs event queue. But that > Eli> is not yet available, and I'm not sure we'd want to allow it. > > Why not? Because we didn't discuss it? ;-) Seriously, though: it might be dangerous. A module that floods Emacs with events could bring a session to its knees. And that's just based on 5-sec thinking; I'm sure there are other "interesting" possibilities. I think we should have some specific design presented, and then discuss it. Perhaps the dangers are not real, or could be kept in check.