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: Lars Ingebrigtsen <larsi <at> gnus.org>
To: Alex Branham <alex.branham <at> gmail.com>
Cc: 33550 <at> debbugs.gnu.org
Subject: bug#33550: [PATCH] mention let* in if-let
Date: Sun, 23 Jun 2019 22:56:27 +0200
Alex Branham <alex.branham <at> gmail.com> writes:

>  (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.

Yes, I think that's clearer, because it's a bit surprising that if-let
is more like let* than let.  I've now applied your change to the Emacs
trunk.

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no




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.