From unknown Mon Aug 18 11:27:12 2025 X-Loop: help-debbugs@gnu.org Subject: bug#10744: 24.0.93; dbus notification callback error Resent-From: Ken Raeburn Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 07 Feb 2012 02:11:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 10744 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: 10744@debbugs.gnu.org X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.13285806129968 (code B ref -1); Tue, 07 Feb 2012 02:11:02 +0000 Received: (at submit) by debbugs.gnu.org; 7 Feb 2012 02:10:12 +0000 Received: from localhost ([127.0.0.1]:57899 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1RuaVX-0002ai-6e for submit@debbugs.gnu.org; Mon, 06 Feb 2012 21:10:12 -0500 Received: from eggs.gnu.org ([140.186.70.92]:40781) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1RuaSY-0002Vf-7o for submit@debbugs.gnu.org; Mon, 06 Feb 2012 21:07:07 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RuaRa-00010m-B6 for submit@debbugs.gnu.org; Mon, 06 Feb 2012 21:06:07 -0500 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,NO_DNS_FOR_FROM, T_RP_MATCHES_RCVD autolearn=no version=3.3.2 Received: from lists.gnu.org ([140.186.70.17]:35055) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RuaRa-00010h-9a for submit@debbugs.gnu.org; Mon, 06 Feb 2012 21:06:06 -0500 Received: from eggs.gnu.org ([140.186.70.92]:33123) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RuaRY-0006t4-Rn for bug-gnu-emacs@gnu.org; Mon, 06 Feb 2012 21:06:06 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RuaRX-00010W-JF for bug-gnu-emacs@gnu.org; Mon, 06 Feb 2012 21:06:04 -0500 Received: from pbit-mailserver.permabit.com ([204.246.225.83]:56695) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RuaRX-00010S-9r for bug-gnu-emacs@gnu.org; Mon, 06 Feb 2012 21:06:03 -0500 Received: from just-testing.permabit.com (just-testing.permabit.com [10.95.208.54]) by pbit-mailserver.permabit.com (Postfix) with ESMTPS id 0EFC9148E0F7; Mon, 6 Feb 2012 20:29:33 -0500 (EST) From: Ken Raeburn Date: Mon, 06 Feb 2012 20:29:03 -0500 Message-ID: <6e62fj77og.fsf@just-testing.permabit.com> MIME-Version: 1.0 Content-Type: text/plain X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-Received-From: 140.186.70.17 X-Spam-Score: -4.2 (----) X-Mailman-Approved-At: Mon, 06 Feb 2012 21:10:09 -0500 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -4.2 (----) Using a gnome desktop environment, start emacs -Q. M-x set-variable RET debug-on-error RET t RET M-x load-library RET notifications RET Have some other application send a notification (specifically, using service org.freedesktop.Notifications), which pops up on the desktop. (In my test case, it's another emacs process where I call dbus-call-method in some code I wrote before finding notifications.el. :-) Wait for the notification to time out and go away. An error pops up indicating that notifications-on-closed-signal is passed one argument instead of the expected two: Debugger entered--Lisp error: (wrong-number-of-arguments #[(id reason) ...] 1) notifications-on-closed-signal(673) apply(notifications-on-closed-signal 673) byte-code(... [result event dbus-message-type-error dbus-message-type-method-call nil dbus-check-event 2 signal dbus-error 9 apply 8 err ... dbus-handle-event((dbus-event :session 4 1352 ":1.12" "/org/freedesktop/Notifications" "org.freedesktop.Notifications" "NotificationClosed" notifications-on-closed-signal 673)) call-interactively(dbus-handle-event nil [(dbus-event :session 4 1352 ":1.12" "/org/freedesktop/Notifications" "org.freedesktop.Notifications" "NotificationClosed" notifications-on-closed-signal 673)]) It's not necessary to run any extra code relating to notifications; simply loading the library code causes registration of the handler for desktop notifications. In GNU Emacs 24.0.93.1 (x86_64-unknown-linux-gnu, X toolkit, Xaw3d scroll bars) of 2012-02-03 on just-testing.permabit.com Windowing system distributor `The X.Org Foundation', version 11.0.10402000 Configured using: `configure '--prefix=/permabit/user/raeburn/I64/install/emacs-24.0.93' '--with-x-toolkit=lucid'' Important settings: value of $LC_ALL: nil value of $LC_COLLATE: nil value of $LC_CTYPE: nil value of $LC_MESSAGES: nil value of $LC_MONETARY: nil value of $LC_NUMERIC: nil value of $LC_TIME: nil value of $LANG: C value of $XMODIFIERS: nil locale-coding-system: nil default enable-multibyte-characters: t Major mode: Lisp Interaction Minor modes in effect: tooltip-mode: t mouse-wheel-mode: t tool-bar-mode: t menu-bar-mode: t file-name-shadow-mode: t global-font-lock-mode: t font-lock-mode: t blink-cursor-mode: t auto-composition-mode: t auto-encryption-mode: t auto-compression-mode: t line-number-mode: t transient-mark-mode: t Recent input: C-f C-f C-a C-e C-p C-n C-n C-f C-f M-x i e l m M-x C-g ( s e t C-g M-x v s a t e t - v a r d e b u g - o n - e r r o r t l o a d - l i b r a r y SPC " n o t i f i c a t i o n s " ) C-x 5 2 C-h f n o t i f i c a t i o n s - n o t C-x o C-n C-u C-f C-x 1 C-x k C-x 5 0 C-x m M-> C-x o M-< M-> M-w C-x o C-y M-< C-u C-n C-n C-n C-u C-u C-b C-u C-f C-u C-f C-b C-SPC C-M-f C-M-f C-n C-n C-n C-p C-u C-f C-f C-f C-f C-f C-w . . . C-u C-u C-b C-u C-b C-u C-f C-M-SPC C-g C-b C-b C-f C-f C-M-f C-b C-SPC C-p C-p C-u C-u C-f C-u C-u C-b C-u C-u C-b C-u C-u C-b C-u C-b C-u C-f C-u C-f C-b C-w C-a C-n C-n C-n C-u C-u C-k C-x o C-x C-g q C-p C-p C-x k M-x s e n d b u - b C-g M-x r e p o r t - Recent messages: call-interactively: End of buffer [2 times] Quit [2 times] Loading notifications...done Type C-x 1 to delete the help window, C-M-v to scroll help. uncompressing notifications.el.gz...done Entering debugger... Mark set [7 times] Quit Mark set Back to top level. Quit Load-path shadows: None found. Features: (shadow sort mail-extr emacsbug gnus-util message format-spec rfc822 mml mml-sec mm-decode mm-bodies mm-encode mail-parse rfc2231 rfc2047 rfc2045 ietf-drums mm-util mail-prsvr mailabbrev mail-utils gmm-utils mailheader debug jka-compr find-func help-mode view notifications dbus xml cus-edit easymenu wid-edit cus-start cus-load help-fns ielm pp comint regexp-opt ring time-date tooltip ediff-hook vc-hooks lisp-float-type mwheel x-win x-dnd tool-bar dnd fontset image fringe lisp-mode register page menu-bar rfn-eshadow timer select scroll-bar mouse jit-lock font-lock syntax facemenu font-core frame cham georgian utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao korean japanese hebrew greek romanian slovak czech european ethiopic indian cyrillic chinese case-table epa-hook jka-cmpr-hook help simple abbrev minibuffer loaddefs button faces cus-face files text-properties overlay sha1 md5 base64 format env code-pages mule custom widget hashtable-print-readable backquote make-network-process dbusbind dynamic-setting font-render-setting x-toolkit x multi-tty emacs) From unknown Mon Aug 18 11:27:12 2025 X-Loop: help-debbugs@gnu.org Subject: bug#10744: 24.0.93; dbus notification callback error Resent-From: Michael Albinus Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 07 Feb 2012 09:11:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 10744 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Ken Raeburn Cc: 10744@debbugs.gnu.org Received: via spool by 10744-submit@debbugs.gnu.org id=B10744.132860583118521 (code B ref 10744); Tue, 07 Feb 2012 09:11:01 +0000 Received: (at 10744) by debbugs.gnu.org; 7 Feb 2012 09:10:31 +0000 Received: from localhost ([127.0.0.1]:58225 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1Ruh4J-0004of-1w for submit@debbugs.gnu.org; Tue, 07 Feb 2012 04:10:31 -0500 Received: from mailout-de.gmx.net ([213.165.64.22]:49152) by debbugs.gnu.org with smtp (Exim 4.72) (envelope-from ) id 1Ruh4G-0004oR-Az for 10744@debbugs.gnu.org; Tue, 07 Feb 2012 04:10:29 -0500 Received: (qmail invoked by alias); 07 Feb 2012 09:09:26 -0000 Received: from p57BB95DE.dip0.t-ipconnect.de (EHLO detlef.gmx.de) [87.187.149.222] by mail.gmx.net (mp020) with SMTP; 07 Feb 2012 10:09:26 +0100 X-Authenticated: #3708877 X-Provags-ID: V01U2FsdGVkX1/TmJB1XTPT9P8xlWZ2NpbDfCCnWlOLfQ4EbXciit Y77GVUGigknQys From: Michael Albinus References: <6e62fj77og.fsf@just-testing.permabit.com> Date: Tue, 07 Feb 2012 10:09:22 +0100 In-Reply-To: <6e62fj77og.fsf@just-testing.permabit.com> (Ken Raeburn's message of "Mon, 06 Feb 2012 20:29:03 -0500") Message-ID: <8762fjxb5p.fsf@gmx.de> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.93 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Y-GMX-Trusted: 0 X-Spam-Score: -1.9 (-) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -1.9 (-) Ken Raeburn writes: > An error pops up indicating that notifications-on-closed-signal is > passed one argument instead of the expected two: > > Debugger entered--Lisp error: (wrong-number-of-arguments #[(id reason) ...] 1) > notifications-on-closed-signal(673) According to the spec, the NotificationClosed signal shall send 2 arguments, the id and the reason. See . That's what `notifications-on-closed-signal' expects. And doesn't get. > dbus-handle-event((dbus-event :session 4 1352 ":1.12" "/org/freedesktop/Notifications" "org.freedesktop.Notifications" "NotificationClosed" notifications-on-closed-signal 673)) The daemon sends only one argument, the id (673). I could reproduce the problem on an old RHEL system with: notification-daemon.x86_64 0.3.5-9.el5 installed Reading the NEWS entry of the notification-daemon sources, I've found version 0.4.0 (20-November-2008): * Send the reason code along with the NotificationClosed signal in order to indicate why the notification was closed. (Bug #137) So it is clearly a daemon error, which is corrected meanwhile. I've submitted a fix to the trunk, making the reason argument in `notifications-on-closed-signal' optional (assuming `undefined' as default). Could you, please, check? Best regards, Michael. From debbugs-submit-bounces@debbugs.gnu.org Fri Feb 10 14:45:01 2012 Received: (at control) by debbugs.gnu.org; 10 Feb 2012 19:45:02 +0000 Received: from localhost ([127.0.0.1]:35264 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1RvwOz-0003TY-Eb for submit@debbugs.gnu.org; Fri, 10 Feb 2012 14:45:01 -0500 Received: from fencepost.gnu.org ([140.186.70.10]:56508 ident=Debian-exim) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1RvwOx-0003TQ-4Q for control@debbugs.gnu.org; Fri, 10 Feb 2012 14:44:59 -0500 Received: from rgm by fencepost.gnu.org with local (Exim 4.71) (envelope-from ) id 1RvwNk-0007W6-2l for control@debbugs.gnu.org; Fri, 10 Feb 2012 14:43:44 -0500 Date: Fri, 10 Feb 2012 14:43:44 -0500 Message-Id: Subject: control message for bug 10744 To: X-Mailer: mail (GNU Mailutils 2.1) From: Glenn Morris X-Spam-Score: -4.2 (----) X-Debbugs-Envelope-To: control X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -4.2 (----) close 10744 24.0.94 From unknown Mon Aug 18 11:27:12 2025 X-Loop: help-debbugs@gnu.org Subject: bug#10744: 24.0.93; dbus notification callback error Resent-From: Ken Raeburn Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 11 Feb 2012 00:05:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 10744 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Michael Albinus Cc: "10744@debbugs.gnu.org" <10744@debbugs.gnu.org> Received: via spool by 10744-submit@debbugs.gnu.org id=B10744.132891865910304 (code B ref 10744); Sat, 11 Feb 2012 00:05:02 +0000 Received: (at 10744) by debbugs.gnu.org; 11 Feb 2012 00:04:19 +0000 Received: from localhost ([127.0.0.1]:35429 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1Rw0Rv-0002g9-2z for submit@debbugs.gnu.org; Fri, 10 Feb 2012 19:04:19 -0500 Received: from pbit-mailserver.permabit.com ([204.246.225.83]:44736) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1Rw0Rs-0002ft-9o for 10744@debbugs.gnu.org; Fri, 10 Feb 2012 19:04:17 -0500 Received: from [10.1.12.17] (unknown [10.1.12.17]) by pbit-mailserver.permabit.com (Postfix) with ESMTPSA id 7FADE148E1D9; Fri, 10 Feb 2012 19:02:54 -0500 (EST) References: <6e62fj77og.fsf@just-testing.permabit.com> <8762fjxb5p.fsf@gmx.de> In-Reply-To: <8762fjxb5p.fsf@gmx.de> Mime-Version: 1.0 (1.0) Content-Type: text/plain; charset=us-ascii Message-Id: <53B98205-9F01-46D1-9B77-644A0CAFCCCD@permabit.com> Content-Transfer-Encoding: quoted-printable X-Mailer: iPhone Mail (9A405) From: Ken Raeburn Date: Fri, 10 Feb 2012 19:02:51 -0500 X-Spam-Score: -1.9 (-) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -1.9 (-) Sorry for the delay. I can confirm the patch works for me. (And my desktop= is Debian Lenny w/notification-daemon 0.3.7.) Ken Sent from my iPhone On Feb 7, 2012, at 4:09, Michael Albinus wrote: > Ken Raeburn writes: >=20 >> An error pops up indicating that notifications-on-closed-signal is >> passed one argument instead of the expected two: >>=20 >> Debugger entered--Lisp error: (wrong-number-of-arguments #[(id reason) ..= .] 1) >> notifications-on-closed-signal(673) >=20 > According to the spec, the NotificationClosed signal shall send 2 > arguments, the id and the reason. See > . >=20 > That's what `notifications-on-closed-signal' expects. And doesn't get. >=20 >> dbus-handle-event((dbus-event :session 4 1352 ":1.12" "/org/freedesktop/= Notifications" "org.freedesktop.Notifications" "NotificationClosed" notifica= tions-on-closed-signal 673)) >=20 > The daemon sends only one argument, the id (673). I could reproduce the > problem on an old RHEL system with: >=20 > notification-daemon.x86_64 0.3.5-9.el5 installed >=20 > Reading the NEWS entry of the notification-daemon sources, I've found >=20 > version 0.4.0 (20-November-2008): > * Send the reason code along with the NotificationClosed signal in o= rder > to indicate why the notification was closed. (Bug #137) >=20 > So it is clearly a daemon error, which is corrected meanwhile. I've > submitted a fix to the trunk, making the reason argument in > `notifications-on-closed-signal' optional (assuming `undefined' as > default). Could you, please, check? >=20 > Best regards, Michael.