From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Mark Oteiza Newsgroups: gmane.emacs.bugs Subject: bug#28254: 26.0.50; SRFI-2 and-let* Date: Tue, 12 Sep 2017 09:09:47 -0400 Message-ID: <20170912130947.GA23119@holos.localdomain> References: <20170902021043.GA7509@holos.localdomain> <878thx7qcc.fsf@users.sourceforge.net> <20170902041424.GA21189@holos.localdomain> <87tw0lzn7w.fsf@drachen> <20170902133604.GA27251@holos.localdomain> <20170904011356.GA21128@holos.localdomain> <20170905035548.GB11331@holos.localdomain> <20170909003355.GA3363@holos.localdomain> <87efrcccps.fsf@drachen> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: blaine.gmane.org 1505221825 31365 195.159.176.226 (12 Sep 2017 13:10:25 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Tue, 12 Sep 2017 13:10:25 +0000 (UTC) User-Agent: Mutt/1.9.0 (2017-09-02) Cc: 28254@debbugs.gnu.org, Noam Postavsky To: Michael Heerdegen Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Tue Sep 12 15:10:16 2017 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1drkx4-0007MS-K6 for geb-bug-gnu-emacs@m.gmane.org; Tue, 12 Sep 2017 15:10:06 +0200 Original-Received: from localhost ([::1]:35776 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1drkxA-0001Jt-47 for geb-bug-gnu-emacs@m.gmane.org; Tue, 12 Sep 2017 09:10:12 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:36328) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1drkx4-0001Ii-5l for bug-gnu-emacs@gnu.org; Tue, 12 Sep 2017 09:10:07 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1drkx0-0004d3-Tg for bug-gnu-emacs@gnu.org; Tue, 12 Sep 2017 09:10:06 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:54482) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1drkx0-0004cx-OK for bug-gnu-emacs@gnu.org; Tue, 12 Sep 2017 09:10:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1drkx0-0008Cz-Gv for bug-gnu-emacs@gnu.org; Tue, 12 Sep 2017 09:10:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Mark Oteiza Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 12 Sep 2017 13:10:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 28254 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 28254-submit@debbugs.gnu.org id=B28254.150522179831539 (code B ref 28254); Tue, 12 Sep 2017 13:10:02 +0000 Original-Received: (at 28254) by debbugs.gnu.org; 12 Sep 2017 13:09:58 +0000 Original-Received: from localhost ([127.0.0.1]:34930 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1drkww-0008Cd-4T for submit@debbugs.gnu.org; Tue, 12 Sep 2017 09:09:58 -0400 Original-Received: from mail-qk0-f173.google.com ([209.85.220.173]:35736) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1drkwt-0008CN-1C for 28254@debbugs.gnu.org; Tue, 12 Sep 2017 09:09:55 -0400 Original-Received: by mail-qk0-f173.google.com with SMTP id r141so24837494qke.2 for <28254@debbugs.gnu.org>; Tue, 12 Sep 2017 06:09:55 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=udel-edu.20150623.gappssmtp.com; s=20150623; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=P0QD8Xea8guICfkf/v+X6WXLq0+yg3+g0Da3yzr4Y4k=; b=lXiHX9GM0EaSAb9N5Ta3dCjbID9hoUboCEWh3sBrsyF9sjd3wdejz2LpNh0luApUOl SF0MFjIpdsQ77GfSOWfkf+tBzkxk62JEELpPF0EDTB6uBI+2Md2ZeENYwN00+cgIwBS/ 5+lmItzcgfqbOcKUhnzft/nzfj+o/jKCf+1hOqbmoi6ZX2Wp00rFYxOR//Khc2JyniKP nMQDQ0Bp6lTkC0Fx1rZ9C5TV1/TcTpapVmmsH+Ok+PhmH/jmo3LCx/euqn7On2m7kiCz 71fY27wcI0pXNt9fXhuo+V+BZ3V+QHoWmXGqz5dVi0NEQSscV+fYwhK3dn3sNZFYByDR QKYA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=P0QD8Xea8guICfkf/v+X6WXLq0+yg3+g0Da3yzr4Y4k=; b=f4EeXNWNqmuJqSWGT+Xm7L8GdYbfoRRWKUI03RTibu12Nj+SLPAUOWgCayXLuTqB69 +olQl36TjK4YeswC2Z8wKjzsfHxBLuMvr+qHnPHKGGVvnCEc8X4LM+jRAzA0uyL3zYHV /EJIb4vRGTRu1C6gULxYSO7YdSr4KX2gH4f8k43R7m3LuIJmskWv9hLOYOjhDGaz9OyI LmuJ5em0yu3kyZUo2gJdHZ9vZjpP4weYgDJHb+P2wLACDWaCDFn+2KvqWRtm5OtifJtt 3Ql2sVlbnzFMe8d9NqRBdORL04N2xgUqCbU18J83r6ZXgmJcyGNWFL+C1tbXFgMlMCDD pRow== X-Gm-Message-State: AHPjjUg9R6nOXlZoKIST2qTKe5NuZtyT3d/+F/bdPQuudhcC+oGd5C8U VhJdX9sVO1dTFUg/di/x1g== X-Google-Smtp-Source: AOwi7QDrNgm5ZifIwl8V+WGjOPlhpLGCduqDvlTVA0yyCiNk6e2qp5J4ipODmaPtKH5eABneWXLs/w== X-Received: by 10.55.45.199 with SMTP id t190mr4190066qkh.230.1505221789137; Tue, 12 Sep 2017 06:09:49 -0700 (PDT) Original-Received: from holos.localdomain (pool-173-67-36-61.bltmmd.fios.verizon.net. [173.67.36.61]) by smtp.gmail.com with ESMTPSA id l89sm8095324qkh.69.2017.09.12.06.09.47 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Tue, 12 Sep 2017 06:09:48 -0700 (PDT) Original-Received: by holos.localdomain (Postfix, from userid 1000) id 173B868221; Tue, 12 Sep 2017 09:09:47 -0400 (EDT) Content-Disposition: inline In-Reply-To: <87efrcccps.fsf@drachen> X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 208.118.235.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.org gmane.emacs.bugs:136829 Archived-At: On 12/09/17 at 02:39pm, Michael Heerdegen wrote: > Mark Oteiza writes: > > > Any comments? > > Some notes on the documentation of `if-let*' after your patch: > > | "Bind variables according to VARLIST and eval THEN or ELSE. > | Each binding is evaluated in turn with `let*', > > Maybe comparing with `let*' is confusing after the change, because not > all bindings must look like (SYMBOL EXPRESSION) any more. I think when > we just remove the two words "with `let*'", the documentation is still > fine. I agree, thanks. > | 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. > > Not really related to your change, but: Maybe we should additionally say > that THEN can refer to the bindings made in the VARLIST, but ELSE to > none, not even to those that resulted in non-nil values before > "failing". That's not true though--you can refer to the bindings in either branch: (if-let* ((x 2) (y nil)) x (list x y)) => (let* ((x (and t 2)) (y (and x nil))) (if y x (list x y))) > | Each element of VARLIST is a symbol (which is bound to nil) [...] > > Did we agree that we drop this useless case? Ah yes, this is no longer the case in this patch. Good catch, thank you.