GNU bug report logs - #33550
[PATCH] mention let* in if-let

Previous Next

Package: emacs;

Reported by: Alex Branham <alex.branham <at> gmail.com>

Date: Thu, 29 Nov 2018 19:20:01 UTC

Severity: wishlist

Tags: fixed, patch

Fixed in version 27.1

Done: Lars Ingebrigtsen <larsi <at> gnus.org>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: Alex Branham <alex.branham <at> gmail.com>
To: 33550 <at> debbugs.gnu.org
Subject: bug#33550: [PATCH] mention let* in if-let
Date: Thu, 29 Nov 2018 13:18:54 -0600
[Message part 1 (text/plain, inline)]
Hi -

I think this patch makes it much clearer that if-let functions like
let*, not let.

Thanks,
Alex

From 0504ba0c88bc63b527e54fc92e1923e60ff5759a Mon Sep 17 00:00:00 2001
From: Alex Branham <alex.branham <at> gmail.com>
Date: Thu, 29 Nov 2018 12:57:43 -0600
Subject: [PATCH] ; * lisp/emacs-lisp/subr-x.el (if-let): Improve docstring by
 mentioning let*

---
 lisp/emacs-lisp/subr-x.el | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/lisp/emacs-lisp/subr-x.el b/lisp/emacs-lisp/subr-x.el
index 7fab9083e8..8278f50d1d 100644
--- a/lisp/emacs-lisp/subr-x.el
+++ b/lisp/emacs-lisp/subr-x.el
@@ -158,9 +158,9 @@ are non-nil, then the result is non-nil."

 (defmacro if-let (spec then &rest else)
   "Bind variables according to SPEC and eval THEN or ELSE.
-Each binding is evaluated in turn, and evaluation stops if a
-binding value is nil.  If all are non-nil, the value of THEN is
-returned, or the last form in ELSE is returned.
+Each binding is evaluated in turn, as in `let*', and evaluation
+stops if a binding value is nil.  If all are non-nil, the value
+of THEN is returned, or the last form in ELSE is returned.

 Each element of SPEC is a list (SYMBOL VALUEFORM) which binds
 SYMBOL to the value of VALUEFORM.  An element can additionally be
--
2.19.1


[0001-lisp-emacs-lisp-subr-x.el-if-let-Improve-docstring-b.patch (text/x-patch, attachment)]

This bug report was last modified 5 years and 339 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.