@@ -130,14 +130,9 @@ threading."
130
130
" Process BINDINGS and if all values are non-nil eval THEN, else ELSE.
131
131
Argument BINDINGS is a list of tuples whose car is a symbol to be
132
132
bound and (optionally) used in THEN, and its cadr is a sexp to be
133
- evalled to set symbol's value. In the special case you only want
134
- to bind a single value, BINDINGS can just be a plain tuple."
133
+ evalled to set symbol's value."
135
134
(declare (indent 2 )
136
135
(debug ([&or (&rest (symbolp form)) (symbolp form)] form body)))
137
- (when (and (<= (length bindings) 2 )
138
- (not (listp (car bindings))))
139
- ; ; Adjust the single binding case
140
- (setq bindings (list bindings)))
141
136
`(let* ,(internal--build-bindings bindings)
142
137
(if ,(car (internal--listify (car (last bindings))))
143
138
, then
@@ -148,8 +143,7 @@ to bind a single value, BINDINGS can just be a plain tuple."
148
143
" Process BINDINGS and if all values are non-nil eval BODY.
149
144
Argument BINDINGS is a list of tuples whose car is a symbol to be
150
145
bound and (optionally) used in BODY, and its cadr is a sexp to be
151
- evalled to set symbol's value. In the special case you only want
152
- to bind a single value, BINDINGS can just be a plain tuple."
146
+ evalled to set symbol's value."
153
147
(declare (indent 1 ) (debug if-let*))
154
148
`(if-let* , bindings ,(macroexp-progn body)))))
155
149
0 commit comments