From: Daiki Ueno Date: Thu, 26 Feb 2015 02:01:10 +0000 (+0900) Subject: dbus.el: fix ":argN" keyword recognition X-Git-Tag: emacs-25.0.90~2564^2~290 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=b206b9d73728dec9b71a41ac4e1622ec795d6fd0;p=emacs.git dbus.el: fix ":argN" keyword recognition * net/dbus.el (dbus-register-signal): Convert "N" of ":argN" to integer before comparison. --- 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