Change errant if to when (Bug#31840)
* lisp/emacs-lisp/subr-x.el: Expand to 'when' instead of 'if'.
This commit is contained in:
parent
6353387835
commit
5b9cc1508e
1 changed files with 2 additions and 2 deletions
|
@ -152,8 +152,8 @@ are non-nil, then the result is non-nil."
|
|||
(let (res)
|
||||
(if varlist
|
||||
`(let* ,(setq varlist (internal--build-bindings varlist))
|
||||
(if ,(setq res (caar (last varlist)))
|
||||
,@(or body `(,res))))
|
||||
(when ,(setq res (caar (last varlist)))
|
||||
,@(or body `(,res))))
|
||||
`(let* () ,@(or body '(t))))))
|
||||
|
||||
(defmacro if-let (spec then &rest else)
|
||||
|
|
Loading…
Add table
Reference in a new issue