[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Emacs-diffs] master 3a33ac8: * lisp/emacs-lisp/subr-x.el (if-let): Fix
From: |
Artur Malabarba |
Subject: |
[Emacs-diffs] master 3a33ac8: * lisp/emacs-lisp/subr-x.el (if-let): Fix debug spec |
Date: |
Thu, 07 May 2015 20:14:59 +0000 |
branch: master
commit 3a33ac8911e835bf2be3ed34dd1288521ade91a8
Author: Artur Malabarba <address@hidden>
Commit: Artur Malabarba <address@hidden>
* lisp/emacs-lisp/subr-x.el (if-let): Fix debug spec
Support the case when BINDINGS is a single tuple. (Bug#20525)
---
lisp/emacs-lisp/subr-x.el | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
diff --git a/lisp/emacs-lisp/subr-x.el b/lisp/emacs-lisp/subr-x.el
index 78a6dc9..bd178fa 100644
--- a/lisp/emacs-lisp/subr-x.el
+++ b/lisp/emacs-lisp/subr-x.el
@@ -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
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Emacs-diffs] master 3a33ac8: * lisp/emacs-lisp/subr-x.el (if-let): Fix debug spec,
Artur Malabarba <=