emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

master 0e72d4793c: Tweak while-let definition


From: Lars Ingebrigtsen
Subject: master 0e72d4793c: Tweak while-let definition
Date: Thu, 29 Sep 2022 06:29:58 -0400 (EDT)

branch: master
commit 0e72d4793c332f2eaba05130ea08e9809813f599
Author: Lars Ingebrigtsen <larsi@gnus.org>
Commit: Lars Ingebrigtsen <larsi@gnus.org>

    Tweak while-let definition
    
    * lisp/subr.el (while-let): Use if-let* since we don't need/want
    the backwards compat of if-let.
---
 lisp/subr.el | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lisp/subr.el b/lisp/subr.el
index 2a8fc46a9f..4f8273d56f 100644
--- a/lisp/subr.el
+++ b/lisp/subr.el
@@ -2524,7 +2524,7 @@ The variable list SPEC is the same as in `if-let'."
   (let ((done (gensym "done")))
     `(catch ',done
        (while t
-         (if-let ,spec
+         (if-let* ,spec
              (progn
                ,@body)
            (throw ',done nil))))))



reply via email to

[Prev in Thread] Current Thread [Next in Thread]