From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Richard Stallman Newsgroups: gmane.emacs.devel Subject: Re: callback functions in Emacs Date: Wed, 05 Sep 2007 02:16:29 -0400 Message-ID: References: <87642qmb0g.fsf@gmx.de> Reply-To: rms@gnu.org NNTP-Posting-Host: lo.gmane.org Content-Type: text/plain; charset=ISO-8859-15 X-Trace: sea.gmane.org 1188973104 3785 80.91.229.12 (5 Sep 2007 06:18:24 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Wed, 5 Sep 2007 06:18:24 +0000 (UTC) Cc: emacs-devel@gnu.org To: Michael Albinus Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Sep 05 08:18:24 2007 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1ISoDX-0004Ky-B2 for ged-emacs-devel@m.gmane.org; Wed, 05 Sep 2007 08:18:23 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1ISoDV-0005My-Ov for ged-emacs-devel@m.gmane.org; Wed, 05 Sep 2007 02:18:21 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1ISoBz-0004Fp-55 for emacs-devel@gnu.org; Wed, 05 Sep 2007 02:16:47 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1ISoBy-0004Eu-Ci for emacs-devel@gnu.org; Wed, 05 Sep 2007 02:16:46 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1ISoBy-0004Ej-1u for emacs-devel@gnu.org; Wed, 05 Sep 2007 02:16:46 -0400 Original-Received: from fencepost.gnu.org ([140.186.70.10]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1ISoBx-0002hr-Qt for emacs-devel@gnu.org; Wed, 05 Sep 2007 02:16:45 -0400 Original-Received: from rms by fencepost.gnu.org with local (Exim 4.60) (envelope-from ) id 1ISoBh-0006Dh-NH; Wed, 05 Sep 2007 02:16:29 -0400 In-reply-to: <87642qmb0g.fsf@gmx.de> (message from Michael Albinus on Tue, 04 Sep 2007 22:27:43 +0200) X-Detected-Kernel: Linux 2.6, seldom 2.4 (older, 4) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:77828 Archived-At: I'm playing a little bit with integration of D-Bus(*) into Emacs. It isn't feasible for me to browse a web site--what is D-Bus? Why do we want to control it from Emacs, and do it by adding C code? One of the basic concepts od D-Bus is, that one could register a callback function which is applied when there bis a signal on the bus one has registered for. By "signal" do you mean the C-level signals that are handled by `sigaction'? But that looks ugly to me. Isn't there another, more simple way to evaluate Lisp code from inside a callback function? What do you mean by "a callback function"? That is not an Emacs concept, so it doesn't specify the most relevant facts. What exactly is going to call this function, when? If you're talking about C-level signal handlers, the usual way for them to run Lisp code is by queuing input events.