]> git.eshelyaron.com Git - emacs.git/commitdiff
dbus.el: fix ":argN" keyword recognition
authorDaiki Ueno <ueno@gnu.org>
Thu, 26 Feb 2015 02:01:10 +0000 (11:01 +0900)
committerDaiki Ueno <ueno@gnu.org>
Thu, 26 Feb 2015 02:08:44 +0000 (11:08 +0900)
* net/dbus.el (dbus-register-signal): Convert "N" of ":argN" to
integer before comparison.

lisp/ChangeLog
lisp/net/dbus.el

index 7f7eac64b6eb866e6291ec88e892522c20c046d0..33e04807e87a592690914e61f82b0347c7002702 100644 (file)
@@ -1,3 +1,8 @@
+2015-02-26  Daiki Ueno  <ueno@gnu.org>
+
+       * net/dbus.el (dbus-register-signal): Convert "N" of ":argN" to
+       integer before comparison.
+
 2015-02-25  Nicolas Richard  <theonewiththeevillook@yahoo.fr>
 
        * progmodes/elisp-mode.el (elisp--eval-last-sexp): Document argument.
index bbce300af40563157d8d8c77663d0e27ba701e50..b2c1ba883a4df24ad8b305c89b94198dd69485a6 100644 (file)
@@ -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