* lisp/emacs-lisp/subr-x.el (if-let): Fix debug spec
Support the case when BINDINGS is a single tuple. (Bug#20525)
This commit is contained in:
parent
ead05a1c2f
commit
3a33ac8911
1 changed files with 2 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue