From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: =?utf-8?Q?Peter_M=C3=BCnster?= Newsgroups: gmane.emacs.help Subject: dbus problem: "notifications-notify :on-action" stops working Date: Mon, 27 Feb 2012 10:47:03 +0100 Message-ID: <87zkc4ehgo.fsf@micropit.couberia.bzh> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: dough.gmane.org 1330336055 4552 80.91.229.3 (27 Feb 2012 09:47:35 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Mon, 27 Feb 2012 09:47:35 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Mon Feb 27 10:47:32 2012 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1S1xB2-0000I7-8S for geh-help-gnu-emacs@m.gmane.org; Mon, 27 Feb 2012 10:47:28 +0100 Original-Received: from localhost ([::1]:37039 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1S1xB1-0006oo-OI for geh-help-gnu-emacs@m.gmane.org; Mon, 27 Feb 2012 04:47:27 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:38877) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1S1xAt-0006oQ-2G for help-gnu-emacs@gnu.org; Mon, 27 Feb 2012 04:47:24 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1S1xAr-0007jJ-W8 for help-gnu-emacs@gnu.org; Mon, 27 Feb 2012 04:47:18 -0500 Original-Received: from plane.gmane.org ([80.91.229.3]:42718) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1S1xAr-0007il-PY for help-gnu-emacs@gnu.org; Mon, 27 Feb 2012 04:47:17 -0500 Original-Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1S1xAo-00008g-0D for help-gnu-emacs@gnu.org; Mon, 27 Feb 2012 10:47:14 +0100 Original-Received: from arennes-359-1-256-163.w2-2.abo.wanadoo.fr ([2.2.207.163]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 27 Feb 2012 10:47:13 +0100 Original-Received: from pmlists by arennes-359-1-256-163.w2-2.abo.wanadoo.fr with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 27 Feb 2012 10:47:13 +0100 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 39 Original-X-Complaints-To: usenet@dough.gmane.org X-Gmane-NNTP-Posting-Host: arennes-359-1-256-163.w2-2.abo.wanadoo.fr User-Agent: Gnus/5.130004 (Ma Gnus v0.4) Emacs/24.0.93 (gnu/linux) Cancel-Lock: sha1:BmMu6lqnNC+srZ7/g6VH38cO48Q= X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 80.91.229.3 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:83878 Archived-At: 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