]> code.delx.au - gnu-emacs/commitdiff
* lisp/emacs-lisp/subr-x.el (if-let): Fix debug spec
authorArtur Malabarba <bruce.connor.am@gmail.com>
Thu, 7 May 2015 20:13:29 +0000 (21:13 +0100)
committerArtur Malabarba <bruce.connor.am@gmail.com>
Thu, 7 May 2015 20:13:29 +0000 (21:13 +0100)
Support the case when BINDINGS is a single tuple.  (Bug#20525)

lisp/emacs-lisp/subr-x.el

index 78a6dc9845636326eb47456e7d5ee09b778df257..bd178faa4affb80922ff55a10fe84e9633b5ba4d 100644 (file)
@@ -120,7 +120,8 @@ Argument BINDINGS is a list of tuples whose car is a symbol to be
 bound and (optionally) used in THEN, and its cadr is a sexp to be
 evalled to set symbol's value.  In the special case you only want
 to bind a single value, BINDINGS can just be a plain tuple."
-  (declare (indent 2) (debug ((&rest (symbolp form)) form body)))
+  (declare (indent 2)
+           (debug ([&or (&rest (symbolp form)) (symbolp form)] form body)))
   (when (and (<= (length bindings) 2)
              (not (listp (car bindings))))
     ;; Adjust the single binding case