From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Joost Kremers Newsgroups: gmane.emacs.devel Subject: Re: New for GNU ELPA: literate-scratch Date: Wed, 19 Jun 2024 08:37:42 +0200 Message-ID: <86a5jho2tl.fsf@fastmail.fm> References: <87ed96wtkr.fsf@melete.silentflame.com> <87sexemjsm.fsf@posteo.net> <87bk3xvej9.fsf@melete.silentflame.com> <87le31a3lj.fsf@posteo.net> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="5336"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Sean Whitton , Sean Whitton via "Emacs development discussions." To: Philip Kaludercic Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Wed Jun 19 08:38:27 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 1sJoxe-00016G-V7 for ged-emacs-devel@m.gmane-mx.org; Wed, 19 Jun 2024 08:38:27 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sJox6-0008RO-4L; Wed, 19 Jun 2024 02:37:52 -0400 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 1sJox4-0008PY-NW for emacs-devel@gnu.org; Wed, 19 Jun 2024 02:37:50 -0400 Original-Received: from fhigh1-smtp.messagingengine.com ([103.168.172.152]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1sJox2-0001ES-Sm for emacs-devel@gnu.org; Wed, 19 Jun 2024 02:37:50 -0400 Original-Received: from compute6.internal (compute6.nyi.internal [10.202.2.47]) by mailfhigh.nyi.internal (Postfix) with ESMTP id DEFA8114033E; Wed, 19 Jun 2024 02:37:46 -0400 (EDT) Original-Received: from mailfrontend2 ([10.202.2.163]) by compute6.internal (MEProxy); Wed, 19 Jun 2024 02:37:46 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=fastmail.fm; h= cc:cc:content-transfer-encoding:content-type:content-type:date :date:from:from:in-reply-to:in-reply-to:message-id:mime-version :references:reply-to:subject:subject:to:to; s=fm2; t=1718779066; x=1718865466; bh=g6N1gvDvNdMqk+hdXh0vRxHn8i0OTmQUtyXTwXPNrb0=; b= gAeZt84bXkHi3bCV/1ziK5MajFz7LMIpNvQMKrNwoSKRDWtCJHfOfhehsi2oq752 P0es5Rvqp+Yl7sdjUF7skfgJiQzDMiAyhQhUAfeRuijJSWRbLSStRRYsljQjay8+ TOOCHsFx/HGX3J12GQ+7r0/0csy72nNdKF79ozy69rLcBSu/CQ9/S3tJkq/yPa5/ r53W+uJJqP9DRTtrFwqJIX6DgwbRYzOWoTCEAAeJMPeSg9v2G1NM3rvk5IGw/fA0 CDUlhhQ3AIh8141gyXv9UoYpRcsRx7fZWQS6pbsjnU/++pe9TqDlHxz2MRp8GHik s001gV7iGGyvSo9F4n1KDw== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-transfer-encoding :content-type:content-type:date:date:feedback-id:feedback-id :from:from:in-reply-to:in-reply-to:message-id:mime-version :references:reply-to:subject:subject:to:to:x-me-proxy:x-me-proxy :x-me-sender:x-me-sender:x-sasl-enc; s=fm2; t=1718779066; x= 1718865466; bh=g6N1gvDvNdMqk+hdXh0vRxHn8i0OTmQUtyXTwXPNrb0=; b=O OHUthqI3RK7ZwVXZq1gFK8TSJuXg97D2AUpZDLUCejzxCiJWQQYG41DVgvv0m0ed 3Te6pNXK2XAwUJg4q/AlBWIn7oKAl/NrBR5fCZIRe98cdSkurCcp6uHpF15fzU68 HwIOIUBpOsZM8O31+dxXQXOzKmrEKtK06fe3Rym3DZhCibTpJ7cXJdZ4dPL9LBwQ Y2OeycMWO1geq7gK5yvhmwndXbeejUxNxKetRapQ+Ta3HvuydY60vuNZEKTxeWMZ PCkhMqW/NaXdZ75+TlURoWcPtseU+geBK5rGmG+iFlp71y/44zaIGnMDJ3jt3cBM PIh5FlHOLcwhbGUgRvbJQ== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvledrfedvledgudduudcutefuodetggdotefrod ftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfgh necuuegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmd enucfjughrpefhvfevufgjfhffkfggtgfgsehtqhertddttdejnecuhfhrohhmpeflohho shhtucfmrhgvmhgvrhhsuceojhhoohhsthhkrhgvmhgvrhhssehfrghsthhmrghilhdrfh hmqeenucggtffrrghtthgvrhhnpefggfegkeehveefgfdtgfevjeefgeevheefleeuhefg heegjeehveejuefgjeejtdenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmh grihhlfhhrohhmpehjohhoshhtkhhrvghmvghrshesfhgrshhtmhgrihhlrdhfmh X-ME-Proxy: Feedback-ID: ie15541ac:Fastmail Original-Received: by mail.messagingengine.com (Postfix) with ESMTPA; Wed, 19 Jun 2024 02:37:45 -0400 (EDT) In-Reply-To: <87le31a3lj.fsf@posteo.net> (Philip Kaludercic's message of "Wed, 19 Jun 2024 05:44:40 +0000") Received-SPF: pass client-ip=103.168.172.152; envelope-from=joostkremers@fastmail.fm; helo=fhigh1-smtp.messagingengine.com X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 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, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_LOW=-0.7, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham 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:320278 Archived-At: On Wed, Jun 19 2024, Philip Kaludercic wrote: > Sean Whitton writes: >>> You should be able to merge the `and-let*' and `and' like >>> >>> --8<---------------cut here---------------start------------->8--- >>> (and-let* ((new (car (bounds-of-thing-at-point 'paragraph))) >>> ((< new start))) >>> (setq start new)) >>> --8<---------------cut here---------------end--------------->8--- >> >> Very interesting! >> This seems to be undocumented behaviour of the macro, though? >> I don't think I can see anything which implies it in the docstring. > > Apparently so? I thought it was documented under if-let* or when-let*, > but I couldn't find anything myself either. It's documented under if-let, where it says that "[a]n element can additionally be of the form (VALUEFORM) [...]": ,---- | Each element of SPEC is a list (SYMBOL VALUEFORM) that binds | SYMBOL to the value of VALUEFORM. An element can additionally be | of the form (VALUEFORM), which is evaluated and checked for nil; | i.e. SYMBOL can be omitted if only the test result is of | interest. It can also be of the form SYMBOL, then the binding of | SYMBOL is checked for nil. `---- The doc string of and-let* points to when-let*, which points to when-let, w= hich points to if-let. =F0=9F=98=84 --=20 Joost Kremers Life has its moments