From: Michael Albinus <michael.albinus@gmx.de>
To: Mario Lang <mlang@delysid.org>
Cc: emacs-devel@gnu.org
Subject: Re: dbus.el: defvar dbus-event for signal handlers?
Date: Sun, 09 Aug 2009 16:36:15 +0200 [thread overview]
Message-ID: <87k51djbq8.fsf@gmx.de> (raw)
In-Reply-To: <87tz0hp0al.fsf@x2.delysid.org> (Mario Lang's message of "Sun, 09 Aug 2009 15:46:42 +0200")
Mario Lang <mlang@delysid.org> 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.
prev parent reply other threads:[~2009-08-09 14:36 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-08-09 13:46 dbus.el: defvar dbus-event for signal handlers? Mario Lang
2009-08-09 14:36 ` Michael Albinus [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87k51djbq8.fsf@gmx.de \
--to=michael.albinus@gmx.de \
--cc=emacs-devel@gnu.org \
--cc=mlang@delysid.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.