From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.devel Subject: Re: if-let/if-let*/and-let/.. Date: Sat, 10 Mar 2018 19:29:21 +0200 Message-ID: <83po4bu9e6.fsf@gnu.org> References: <877er5e9vx.fsf@web.de> <874llx9riy.fsf@web.de> <87r2oxtff3.fsf@web.de> <87a7vlgqzu.fsf@web.de> <83vae9qf0f.fsf@gnu.org> <87h8psx98a.fsf@web.de> <834llqptbj.fsf@gnu.org> <87d10d5lfl.fsf@web.de> <831sgtw9gi.fsf@gnu.org> <877eql5j1r.fsf@web.de> <83woylushg.fsf@gnu.org> <87y3j143b3.fsf@web.de> <83vae5un1s.fsf@gnu.org> <87k1uklwf7.fsf@web.de> <83muzguzn2.fsf@gnu.org> <87o9jv6hi9.fsf@web.de> <83r2oruc6l.fsf@gnu.org> <87k1uj6ebu.fsf@web.de> Reply-To: Eli Zaretskii NNTP-Posting-Host: blaine.gmane.org X-Trace: blaine.gmane.org 1520702886 23163 195.159.176.226 (10 Mar 2018 17:28:06 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Sat, 10 Mar 2018 17:28:06 +0000 (UTC) Cc: monnier@iro.umontreal.ca, emacs-devel@gnu.org To: Michael Heerdegen Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sat Mar 10 18:28:01 2018 Return-path: Envelope-to: ged-emacs-devel@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 1euiHp-0005tN-Gv for ged-emacs-devel@m.gmane.org; Sat, 10 Mar 2018 18:28:01 +0100 Original-Received: from localhost ([::1]:51471 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1euiJq-0000YY-LE for ged-emacs-devel@m.gmane.org; Sat, 10 Mar 2018 12:30:06 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:42544) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1euiJB-0000YB-86 for emacs-devel@gnu.org; Sat, 10 Mar 2018 12:29:26 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1euiJ7-0001v8-AF for emacs-devel@gnu.org; Sat, 10 Mar 2018 12:29:25 -0500 Original-Received: from fencepost.gnu.org ([2001:4830:134:3::e]:57906) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1euiJ7-0001v1-7u; Sat, 10 Mar 2018 12:29:21 -0500 Original-Received: from [176.228.60.248] (port=3785 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1euiJ6-0001NI-L8; Sat, 10 Mar 2018 12:29:21 -0500 In-reply-to: <87k1uj6ebu.fsf@web.de> (message from Michael Heerdegen on Sat, 10 Mar 2018 18:16:37 +0100) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2001:4830:134:3::e X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.org gmane.emacs.devel:223585 Archived-At: > From: Michael Heerdegen > Cc: monnier@iro.umontreal.ca, emacs-devel@gnu.org > Date: Sat, 10 Mar 2018 18:16:37 +0100 > > Then this is what I have so far: LGTM, thanks. > But we still can't use this, because the documentation of if-let and > when-let in emacs-26 refers to the documentation of if-let* and > when-let*. I would at least also have to rewrite the docstrings of > if-let and when-let. I'm beginning to wonder if what we are > constructing here is really simpler than my initial approach. It might not be a lot simpler, but it's certainly safer, since changes in doc string can never cause any breakage. > BTW, the srfi-2 allows a SYMBOL as element of the binding spec. AFAIK > all of the macros (foo-let and foo-let*) support that case, but it's not > documented. I dunno why, the original author, Mark Oteiza > , didn't respond to my questions in emacs-dev. My > guess is that it hasn't been documented because the foo-let > single-binding case intersects with this syntax. If you decide to add this to the documentation, it's fine by me.