From b206b9d73728dec9b71a41ac4e1622ec795d6fd0 Mon Sep 17 00:00:00 2001 From: Daiki Ueno Date: Thu, 26 Feb 2015 11:01:10 +0900 Subject: [PATCH] dbus.el: fix ":argN" keyword recognition * net/dbus.el (dbus-register-signal): Convert "N" of ":argN" to integer before comparison. --- lisp/ChangeLog | 5 +++++ lisp/net/dbus.el | 3 ++- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 7f7eac64b6e..33e04807e87 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog @@ -1,3 +1,8 @@ +2015-02-26 Daiki Ueno + + * net/dbus.el (dbus-register-signal): Convert "N" of ":argN" to + integer before comparison. + 2015-02-25 Nicolas Richard * progmodes/elisp-mode.el (elisp--eval-last-sexp): Document argument. diff --git a/lisp/net/dbus.el b/lisp/net/dbus.el index bbce300af40..b2c1ba883a4 100644 --- a/lisp/net/dbus.el +++ b/lisp/net/dbus.el @@ -707,7 +707,8 @@ Example: (setq counter (match-string 2 (symbol-name key)) args (cdr args) value (car args)) - (unless (and (<= counter 63) (stringp value)) + (unless (and (<= (string-to-number counter) 63) + (stringp value)) (signal 'wrong-type-argument (list "Wrong argument" key value))) (format -- 2.39.2