[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: dbus.el: defvar dbus-event for signal handlers?
From: |
Michael Albinus |
Subject: |
Re: dbus.el: defvar dbus-event for signal handlers? |
Date: |
Sun, 09 Aug 2009 16:36:15 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/23.1.50 (gnu/linux) |
Mario Lang <address@hidden> writes:
> Hi.
Hi,
> `dbus-register-signal' allows for SERVICE and PATH to be nil, which is
> something I need for a group of signals I need to handle. However, to be
> able to run `dbus-event-service-name' and `dbus-event-path-name' to
> figure out what SERVICE and PATH actually are during handler execution I
> somehow need to get to the actual event object when my signal handler is run.
> Given how elisp works, there is a way to access the event object by just
> using EVENT, for example:
>
> (defun handler ()
> (message "Event on service %s path %s" (dbus-event-service-name event)
> (dbus-event-path-name event)))
Call (dbus-event-service-name last-input-event) etc.
Best regards, Michael.