From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Jens Schmidt Newsgroups: gmane.emacs.devel Subject: Re: Better documentation for non-binding clauses of if-let and friends Date: Sun, 10 Nov 2024 17:58:51 +0100 Message-ID: <5eb7206e-1a6a-43e5-aaee-310262c01de5@vodafonemail.de> References: <861pzkmk5v.fsf@gnu.org> <5998bf4f-c35b-409d-9e76-d31ce037c8df@vodafonemail.de> <23d411e4-5bcb-4a24-a0ff-464a7b51b168@vodafonemail.de> <87ttcfgn0z.fsf@melete.silentflame.com> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="14016"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Mozilla Thunderbird Cc: "Alfred M. Szmidt" , emacs-devel@gnu.org, Eli Zaretskii , Sean Whitton To: Joost Kremers Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Sun Nov 10 18:00:07 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 1tABID-0003Np-Ld for ged-emacs-devel@m.gmane-mx.org; Sun, 10 Nov 2024 18:00:05 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tABHW-0006Nc-5z; Sun, 10 Nov 2024 11:59:22 -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 1tABHU-0006NS-Bj for emacs-devel@gnu.org; Sun, 10 Nov 2024 11:59:20 -0500 Original-Received: from mr6.vodafonemail.de ([145.253.228.166]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1tABHS-0005SF-Ek; Sun, 10 Nov 2024 11:59:20 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=vodafonemail.de; s=vfde-mb-mr2-23sep; t=1731257955; bh=5qVkDwvkTsRNNvI2u6FeCFyNyyxdIsV+qf/BMLFOPsI=; h=Message-ID:Date:User-Agent:Subject:To:References:From: Content-Language:In-Reply-To:Content-Type:From; b=kai3ILpZBKf4YnOuLRCSoi24wFxs+sJ665UIJcSTO1vIyZkh49LZgltdrDQ1f4mir HZ0DKrUQoVkESUiI8C4MXVxX64PcTw6AsVvy5V8vKaUjSOxW4tDHYbw7+xpNa2pd2T p+QpqKysNAcK05Jk2d+/L8hjmpJAUokR6SwaE6A8= Original-Received: from smtp.vodafone.de (unknown [10.0.0.2]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by mr6.vodafonemail.de (Postfix) with ESMTPS id 4Xmf6C1TJsz1xqn; Sun, 10 Nov 2024 16:59:15 +0000 (UTC) Original-Received: from [192.168.178.41] (port-92-196-56-60.dynamic.as20676.net [92.196.56.60]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by smtp.vodafone.de (Postfix) with ESMTPSA id 4Xmf5t4N05z8sZt; Sun, 10 Nov 2024 16:58:55 +0000 (UTC) Content-Language: de-DE-frami, en-US In-Reply-To: <87ttcfgn0z.fsf@melete.silentflame.com> X-purgate-type: clean X-purgate: clean X-purgate-size: 861 X-purgate-ID: 155817::1731257950-287D7465-78086FEF/0/0 Received-SPF: pass client-ip=145.253.228.166; envelope-from=jschmidt4gnu@vodafonemail.de; helo=mr6.vodafonemail.de 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, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_VALIDITY_CERTIFIED_BLOCKED=0.001, RCVD_IN_VALIDITY_RPBL_BLOCKED=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 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:325379 Archived-At: Joost, who takes the lock? Merging should be pretty simple, I think. One could also add an example for a non-binding clause, like in (when-let* ((end (calculate-end)) ( (< point end))) (do-something-with end)) Jens On 2024-11-10 15:51, Sean Whitton wrote: > Hello, > > On Sun 10 Nov 2024 at 01:24pm +01, Jens Schmidt wrote: > >> For all of these SPEC is similar to what let* offers, with a few >> extensions useful in the context of testing conditions: As with >> let*, an element of SPEC which is a list (SYMBOL VALUEFORM) binds >> SYMBOL to the value of VALUEFORM. > > I think we should make sure we keep the reference to let*, indeed. > > We seem to have two proposed patches, now, from Joost and Jens. > > Would one of you kindly combine them, and also post it as an actual > diff? >