all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* dbus problem: "notifications-notify :on-action" stops working
@ 2012-02-27  9:47 Peter Münster
  2012-02-27 10:17 ` Michael Albinus
  0 siblings, 1 reply; 8+ messages in thread
From: Peter Münster @ 2012-02-27  9:47 UTC (permalink / raw)
  To: help-gnu-emacs

Hi,

Sometimes, the call-back function specified in ":on-action" of the
`notifications-notify' function is no more called and I have to restart
emacs to make it work again.

I was able (but not always) to reproduce this problem with this simple
test file:

--8<---------------cut here---------------start------------->8---
(require 'notifications)

(defun my-test-action (id ignore)
  (message "Success (id = %d)" id))

(defun my-test ()
  (interactive)
  (message "Begin test (id = %d)"
           (notifications-notify
            :title     "title"
            :timeout   30000
            :actions   '("key" "click here")
            :on-action 'my-test-action)))

(global-set-key [?\C-a] 'my-test)
(switch-to-buffer "*Messages*")
--8<---------------cut here---------------end--------------->8---

I save it in /tmp/init.el and start "emacs -Q -l /tmp/init.el". Then I
press about a dozen times "C-a" followed by a click on "click here".
Then I wait about 2-3 minutes and try it again: no more "Success".

Can others reproduce this behaviour?

Where could be the problem, and how could I debug it?

TIA for any help!
-- 
           Peter




^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2012-03-05  7:15 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-02-27  9:47 dbus problem: "notifications-notify :on-action" stops working Peter Münster
2012-02-27 10:17 ` Michael Albinus
2012-02-27 11:00   ` Peter Münster
2012-02-27 20:49     ` Michael Albinus
2012-02-28  8:10       ` Peter Münster
2012-03-01 14:18         ` Michael Albinus
2012-03-04 21:10           ` Peter Münster
2012-03-05  7:15             ` Michael Albinus

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.