From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Sean Whitton Newsgroups: gmane.emacs.devel Subject: Re: Is this a bug in while-let or do I missunderstand it? Date: Mon, 25 Nov 2024 12:45:41 +0800 Message-ID: <87o723vs3u.fsf@melete.silentflame.com> References: <86ldxrliau.fsf@gnu.org> <865xot2y1d.fsf@fastmail.fm> <86ldxoiqzr.fsf@gnu.org> <86ttccvwwj.fsf@fastmail.fm> <87bjyjfowt.fsf@melete.silentflame.com> <874j4bfoen.fsf@melete.silentflame.com> <86cyiz2yaz.fsf@fastmail.fm> <86a5e2l066.fsf@gnu.org> <86o72i5ip1.fsf@fastmail.fm> <867c8ssy88.fsf@fastmail.fm> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="13783"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Cc: Eli Zaretskii , emacs-devel@gnu.org To: Joost Kremers Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Mon Nov 25 05:46:56 2024 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 1tFQzw-0003PJ-B5 for ged-emacs-devel@m.gmane-mx.org; Mon, 25 Nov 2024 05:46:56 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tFQzA-000620-2n; Sun, 24 Nov 2024 23:46:08 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1tFQyy-00061Z-3w for emacs-devel@gnu.org; Sun, 24 Nov 2024 23:45:59 -0500 Original-Received: from sendmail.purelymail.com ([34.202.193.197]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1tFQyw-0007Rt-6R for emacs-devel@gnu.org; Sun, 24 Nov 2024 23:45:55 -0500 DKIM-Signature: a=rsa-sha256; b=nta2snRJEJh/hDYCd2vF6j00+5nbyVVzTT+64vwtIuSOMeVHbRrJvJjmWs5ucRfe/7aFd/eE1C1owD+i9KCKHL/bX3wxW2EEpUqZAJTFQI6On2CmUMYvB2PRZAZ3pRVC7wd3Eauk/XNCC6qYKryrImn1ZbnMpzwOccicmGfgnW5iqKR46+ipTcM2Y7CcZWpMu5s/uUh5NHykpA0eO3Xp2owgYEHMlTijUEyD0sSCsD0EIPk1ZVId7poPUaY78aIteIJw/ahAjgojtwaHqec/o5aOF63q2iBVASSuCSOWPEVd2kO8Jr2611qasH+pS2AzT6uSPHGyD2bP8AKHtwqnfQ==; s=purelymail3; d=spwhitton.name; v=1; bh=tmqtmDHjNjZzb1wPLSLvurWcryt1aAW25ZRP5YyH+kE=; h=Received:Received:From:To:Subject:Date; DKIM-Signature: a=rsa-sha256; b=V5gyrWcjwH6KevhyjrJYyl61lXhMdAwuSOxfqLRo+TPxxNr0GMj4B62NWfsH5+xO09g3wCAeDKIXXjNXtxajMlBBTpu2/a1RC5yJc1Yn670W1Drri5NlKVVedxIOul849xUUh2nikNdVcK0l5SfbxlgsVIaRzFV7430/kn+OEzB/7OWl7Hus62VN2tYM7FmT6NN3UBDOoh2LCAqktwASH2xzBRMf7gy1ttpIYMyHYWYOw1GXoUDTkM4HWTxZGmGE/hZoJCQUSQqDVVeIALc4Vr+5k6P1bNe4g1I+yaPb5i60mzm+0iFWT4rEdNQiUPhLfDj0Y5agYmzECVv79/Y9pw==; s=purelymail3; d=purelymail.com; v=1; bh=tmqtmDHjNjZzb1wPLSLvurWcryt1aAW25ZRP5YyH+kE=; h=Feedback-ID:Received:Received:From:To:Subject:Date; Feedback-ID: 20115:3760:null:purelymail X-Pm-Original-To: emacs-devel@gnu.org Original-Received: by smtp.purelymail.com (Purelymail SMTP) with ESMTPSA id 1687526063; (version=TLSv1.3 cipher=TLS_AES_256_GCM_SHA384); Mon, 25 Nov 2024 04:45:45 +0000 (UTC) Original-Received: by melete.silentflame.com (Postfix, from userid 1000) id B83877E7673; Mon, 25 Nov 2024 12:45:41 +0800 (CST) In-Reply-To: <867c8ssy88.fsf@fastmail.fm> (Joost Kremers's message of "Sun, 24 Nov 2024 11:49:27 +0100") Received-SPF: pass client-ip=34.202.193.197; envelope-from=spwhitton@spwhitton.name; helo=sendmail.purelymail.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 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, RCVD_IN_VALIDITY_CERTIFIED_BLOCKED=0.001, RCVD_IN_VALIDITY_RPBL_BLOCKED=0.001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=unavailable autolearn_force=no X-Spam_action: no action 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-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.devel:325682 Archived-At: Hello, Installed, thanks. I edited your commit message to be more specific about what you changed. I realised though that we are missing one of the features of these macros: you can also just write a symbol in the list, and it means to proceed if that symbol is already bound to a true value. E.g. (let ((foo t)) (when-let* ((hello "hello") foo) (message hello))) If in the first line you bind foo to nil instead, then 'message' is not called. I can't remember where this is documented, but it is somewhere.. It would be good to have it in the manual too, if you would consider working on it. -- Sean Whitton