From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Ken Raeburn Newsgroups: gmane.emacs.bugs Subject: bug#10744: 24.0.93; dbus notification callback error Date: Mon, 06 Feb 2012 20:29:03 -0500 Message-ID: <6e62fj77og.fsf@just-testing.permabit.com> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: dough.gmane.org 1328580917 16242 80.91.229.3 (7 Feb 2012 02:15:17 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Tue, 7 Feb 2012 02:15:17 +0000 (UTC) To: 10744@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Tue Feb 07 03:15:16 2012 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([140.186.70.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1RuaaQ-0007Bn-FQ for geb-bug-gnu-emacs@m.gmane.org; Tue, 07 Feb 2012 03:15:14 +0100 Original-Received: from localhost ([::1]:38470 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RuaaP-0008Q7-71 for geb-bug-gnu-emacs@m.gmane.org; Mon, 06 Feb 2012 21:15:13 -0500 Original-Received: from eggs.gnu.org ([140.186.70.92]:47301) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RuaVZ-0007F6-Ul for bug-gnu-emacs@gnu.org; Mon, 06 Feb 2012 21:10:15 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RuaVV-0001Z0-Vl for bug-gnu-emacs@gnu.org; Mon, 06 Feb 2012 21:10:13 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:54276) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RuaVV-0001Yw-TL for bug-gnu-emacs@gnu.org; Mon, 06 Feb 2012 21:10:09 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.72) (envelope-from ) id 1RuaWM-0002br-NO for bug-gnu-emacs@gnu.org; Mon, 06 Feb 2012 21:11:02 -0500 X-Loop: help-debbugs@gnu.org 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: X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.13285806129968 (code B ref -1); Tue, 07 Feb 2012 02:11:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 7 Feb 2012 02:10:12 +0000 Original-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 Original-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 Original-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 Original-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 Original-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 Original-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 Original-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 Original-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) 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-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 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-Received-From: 140.186.70.43 X-Mailman-Approved-At: Mon, 06 Feb 2012 21:15:10 -0500 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:56611 Archived-At: 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)