From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.devel Subject: Re: callback functions in Emacs Date: Tue, 04 Sep 2007 21:15:03 -0400 Message-ID: References: <87642qmb0g.fsf@gmx.de> <59169.128.165.123.18.1188945132.squirrel@webmail.lanl.gov> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1188954918 30889 80.91.229.12 (5 Sep 2007 01:15:18 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Wed, 5 Sep 2007 01:15:18 +0000 (UTC) Cc: Michael Albinus , emacs-devel@gnu.org To: herring@lanl.gov Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Sep 05 03:15:18 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 1ISjUC-0004Aq-OJ for ged-emacs-devel@m.gmane.org; Wed, 05 Sep 2007 03:15:17 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1ISjUA-00049j-SY for ged-emacs-devel@m.gmane.org; Tue, 04 Sep 2007 21:15:14 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1ISjU7-00047e-Ky for emacs-devel@gnu.org; Tue, 04 Sep 2007 21:15:11 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1ISjU6-000478-5X for emacs-devel@gnu.org; Tue, 04 Sep 2007 21:15:11 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1ISjU6-000475-0A for emacs-devel@gnu.org; Tue, 04 Sep 2007 21:15:10 -0400 Original-Received: from tomts43.bellnexxia.net ([209.226.175.110] helo=tomts43-srv.bellnexxia.net) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1ISjU5-00033t-MX for emacs-devel@gnu.org; Tue, 04 Sep 2007 21:15:09 -0400 Original-Received: from pastel.home ([70.53.192.250]) by tomts43-srv.bellnexxia.net (InterMail vM.5.01.06.13 201-253-122-130-113-20050324) with ESMTP id <20070905011504.RTMI26794.tomts43-srv.bellnexxia.net@pastel.home> for ; Tue, 4 Sep 2007 21:15:04 -0400 Original-Received: by pastel.home (Postfix, from userid 20848) id BC3B18585; Tue, 4 Sep 2007 21:15:03 -0400 (EDT) In-Reply-To: <59169.128.165.123.18.1188945132.squirrel@webmail.lanl.gov> (Davis Herring's message of "Tue\, 4 Sep 2007 15\:32\:12 -0700 \(PDT\)") User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/23.0.50 (gnu/linux) X-Detected-Kernel: Solaris 8 (1) 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:77808 Archived-At: >> 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. That works fine as long everything is handled on >> C level. But I intend to register a callback C function, which calls >> then a Lisp function internally (via Ffuncall etc). > I would use `special-event-map' for this, like real signals do. (That is, > insert new symbols like "d-bus-go" but with better names into the input > stream and let the command loop handle calling into Lisp.) Agreed: if dbus signals can be made into events that's probably ideal. Stefan