all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: "Peter Münster" <pmlists@free.fr>
To: help-gnu-emacs@gnu.org
Subject: dbus problem: "notifications-notify :on-action" stops working
Date: Mon, 27 Feb 2012 10:47:03 +0100	[thread overview]
Message-ID: <87zkc4ehgo.fsf@micropit.couberia.bzh> (raw)

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




             reply	other threads:[~2012-02-27  9:47 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-02-27  9:47 Peter Münster [this message]
2012-02-27 10:17 ` dbus problem: "notifications-notify :on-action" stops working 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

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=87zkc4ehgo.fsf@micropit.couberia.bzh \
    --to=pmlists@free.fr \
    --cc=help-gnu-emacs@gnu.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.