From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Davis Herring" Newsgroups: gmane.emacs.devel Subject: Re: callback functions in Emacs Date: Tue, 4 Sep 2007 15:32:12 -0700 (PDT) Message-ID: <59169.128.165.123.18.1188945132.squirrel@webmail.lanl.gov> References: <87642qmb0g.fsf@gmx.de> Reply-To: herring@lanl.gov NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain;charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Trace: sea.gmane.org 1188945154 7510 80.91.229.12 (4 Sep 2007 22:32:34 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 4 Sep 2007 22:32:34 +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 00:32:34 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 1ISgwj-000497-4l for ged-emacs-devel@m.gmane.org; Wed, 05 Sep 2007 00:32:33 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1ISgwh-0006kk-M8 for ged-emacs-devel@m.gmane.org; Tue, 04 Sep 2007 18:32:31 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1ISgwd-0006ju-9q for emacs-devel@gnu.org; Tue, 04 Sep 2007 18:32:27 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1ISgwc-0006jL-2x for emacs-devel@gnu.org; Tue, 04 Sep 2007 18:32:26 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1ISgwb-0006j0-M9 for emacs-devel@gnu.org; Tue, 04 Sep 2007 18:32:25 -0400 Original-Received: from mailwasher.lanl.gov ([192.65.95.54] helo=mailwasher-b.lanl.gov) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1ISgwa-0003oH-J9 for emacs-devel@gnu.org; Tue, 04 Sep 2007 18:32:24 -0400 Original-Received: from mailrelay2.lanl.gov (mailrelay2.lanl.gov [128.165.4.103]) by mailwasher-b.lanl.gov (8.13.8/8.13.6/(ccn-5)) with ESMTP id l84MWFnF009618; Tue, 4 Sep 2007 16:32:15 -0600 Original-Received: from webmail1.lanl.gov (webmail1.lanl.gov [128.165.4.106]) by mailrelay2.lanl.gov (8.13.8/8.13.8/(ccn-5)) with ESMTP id l84MWC96008805; Tue, 4 Sep 2007 16:32:12 -0600 Original-Received: from webmail1.lanl.gov (localhost.localdomain [127.0.0.1]) by webmail1.lanl.gov (8.12.11.20060308/8.12.11) with ESMTP id l84MWCNX026566; Tue, 4 Sep 2007 16:32:12 -0600 Original-Received: (from apache@localhost) by webmail1.lanl.gov (8.12.11.20060308/8.12.11/Submit) id l84MWCqr026564; Tue, 4 Sep 2007 15:32:12 -0700 X-Authentication-Warning: webmail1.lanl.gov: apache set sender to herring@lanl.gov using -f Original-Received: from 128.165.123.18 (SquirrelMail authenticated user 196434) by webmail.lanl.gov with HTTP; Tue, 4 Sep 2007 15:32:12 -0700 (PDT) In-Reply-To: <87642qmb0g.fsf@gmx.de> User-Agent: SquirrelMail/1.4.8-6.el3.2lanl X-Priority: 3 (Normal) Importance: Normal X-CTN-5-MailScanner-Information: Please see http://network.lanl.gov/email/virus-scan.php X-CTN-5-MailScanner: Found to be clean X-CTN-5-MailScanner-From: herring@lanl.gov X-Detected-Kernel: Linux 2.4-2.6 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:77774 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.) Davis -- This product is sold by volume, not by mass. If it appears too dense or too sparse, it is because mass-energy conversion has occurred during shipping.