From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Visuwesh Newsgroups: gmane.emacs.devel Subject: Re: master 12f63c18f6 1/2: Add new macro 'while-let' Date: Wed, 28 Sep 2022 17:34:19 +0530 Message-ID: <87czbfbt8c.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="26490"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux) Cc: Lars Ingebrigtsen To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Wed Sep 28 17:23:29 2022 Return-path: Envelope-to: ged-emacs-devel@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1odYuG-0006iR-EY for ged-emacs-devel@m.gmane-mx.org; Wed, 28 Sep 2022 17:23:28 +0200 Original-Received: from localhost ([::1]:52814 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1odYuC-0008T8-Tg for ged-emacs-devel@m.gmane-mx.org; Wed, 28 Sep 2022 11:23:24 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:50774) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1odVnf-0008Fp-Ps for emacs-devel@gnu.org; Wed, 28 Sep 2022 08:04:27 -0400 Original-Received: from mail-pg1-x542.google.com ([2607:f8b0:4864:20::542]:42661) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1odVne-0002Fq-3T for emacs-devel@gnu.org; Wed, 28 Sep 2022 08:04:27 -0400 Original-Received: by mail-pg1-x542.google.com with SMTP id e129so5951611pgc.9 for ; Wed, 28 Sep 2022 05:04:25 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:user-agent:message-id:date:subject:cc:to:from:from:to :cc:subject:date; bh=wKkfPjUMjZK0GW00gTdkz/6YP92IH1ScRyGhxgx7tWY=; b=ovurui4xbGqPkBz8Q+crwjB/8159+FqqVxTzS4QTl6P7sDJbyR834TWvW8D21pW2c4 e6bRJZS8q8Avce04S2tLbjWKcXvQWvjaEel/e9I3qUjy579UzidEB8LYcDeCxWFBP+nn qbDm9A5S9jPUY84L7MB/cY42y4oPglnRCc5gVQPp69gALKsIRW2pL/3kKERfOG4d3JYY U0dEJ1OxCytuWBFig+iXG0hUt5fUPQ6jxWpj50ZHqhFdR4uN+0m7w6A1lVSrklvz4WTT HlmoMSQFiEOWR1UQHrcoptVazCmmtvmkxJRciHNHyqw2Y0H+W451PKWLglxifem0hXzz EslA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=mime-version:user-agent:message-id:date:subject:cc:to:from :x-gm-message-state:from:to:cc:subject:date; bh=wKkfPjUMjZK0GW00gTdkz/6YP92IH1ScRyGhxgx7tWY=; b=0Kmy4qh/UICRzb4isnZcklQeSVUkJV7JOkk9NMBu12KxrEPyKxFEPAEM5mqmFBTrdA qPMYcUSkGif8IR1KaUdcAO3jMfokHmtKUUq39G8h1J6poEwen42C3YYLNqQ3E3oZsHQZ t0yeTJXM7G8t3r+FFzm9Ga5GOINVpj0gOGVrgcxOxdmQaZDgc4nU8I9RofZ2oWEzCiL/ EMf6T8BQaQ0c07KCOTs5WrDaxUS5jCYohxiu8cHJOOuSAdR1A8WNvu17eoAokCFCycxV AtigrC51R6iwf5yHYKWwz8gEVr1AYpYgT42JjZldEtkoQbu+JVLTy8MSqpbTk1akoTFF IHVA== X-Gm-Message-State: ACrzQf3ifnQZon+2VmZJEzjR+l1hCF8/qHYf+xrfO5IYcE9KmaMKxJlP i0Lh43G7H9wgccYkGRaEMe5r9ztbL8g= X-Google-Smtp-Source: AMsMyM4e6ewawk+C/t9xgcXt/kJ8rzQmVTkumcsQHXuGopig2ZQY6gLtljjo6wdXJqGiY6sN8lKa9w== X-Received: by 2002:a63:250:0:b0:43c:1f18:a471 with SMTP id 77-20020a630250000000b0043c1f18a471mr27343183pgc.373.1664366663691; Wed, 28 Sep 2022 05:04:23 -0700 (PDT) Original-Received: from localhost ([115.240.90.130]) by smtp.gmail.com with ESMTPSA id n11-20020a170902d2cb00b001714c36a6e7sm3747287plc.284.2022.09.28.05.04.21 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 28 Sep 2022 05:04:22 -0700 (PDT) Received-SPF: pass client-ip=2607:f8b0:4864:20::542; envelope-from=visuweshm@gmail.com; helo=mail-pg1-x542.google.com X-Spam_score_int: -5 X-Spam_score: -0.6 X-Spam_bar: / X-Spam_report: (-0.6 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FAKE_REPLY_C=1.486, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Mailman-Approved-At: Wed, 28 Sep 2022 09:58:47 -0400 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.29 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-mx.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.io gmane.emacs.devel:296404 Archived-At: >branch: master >commit 12f63c18f6d5a886f62f10b4c8de8de3509e52df >Author: Lars Ingebrigtsen >Commit: Lars Ingebrigtsen > > Add new macro 'while-let' > > * doc/lispref/control.texi (Conditionals): Document > when-let/if-let/while-let. > * lisp/subr.el (while-let): New macro. >--- > doc/lispref/control.texi | 42 ++++++++++++++++++++++++++++++++++++++++++ > etc/NEWS | 4 ++++ > lisp/subr.el | 13 +++++++++++++ > 3 files changed, 59 insertions(+) > >diff --git a/doc/lispref/control.texi b/doc/lispref/control.texi >index ee2acdb002..9635b335bc 100644 >--- a/doc/lispref/control.texi >+++ b/doc/lispref/control.texi >@@ -294,6 +294,48 @@ For example: > @end group > @end example > >+If can be convenient to bind variables in conjunction with using a ^^ Typo: this should be "It". >+conditional. It's often the case that you do a computation, and then >+want to do something with that computation if it's non-@code{nil}. >+The straightforward way to do that is to just write, for instance: