From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Adam Porter Newsgroups: gmane.emacs.devel Subject: Re: [External] : Re: [ELPA] New package: listen Date: Mon, 26 Feb 2024 12:07:12 -0600 Message-ID: References: <51bcca65-2690-4f23-98bd-d929e63d7f94@alphapapa.net> <87il2cdb17.fsf@posteo.net> <6e496679-63f0-4a30-aa6a-8402ff96a6a1@alphapapa.net> <87zfvoac8r.fsf@posteo.net> <49be5d31-043d-4776-8284-b8c4a611ec5f@alphapapa.net> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="25109"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Mozilla Thunderbird Cc: emacs-devel To: Drew Adams , Philip Kaludercic Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Mon Feb 26 19:08:58 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 1refPN-0006Ke-Si for ged-emacs-devel@m.gmane-mx.org; Mon, 26 Feb 2024 19:08:58 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1refOE-0008IZ-P7; Mon, 26 Feb 2024 13:07:47 -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 1refNz-0008Bc-TV for emacs-devel@gnu.org; Mon, 26 Feb 2024 13:07:34 -0500 Original-Received: from shrimp.cherry.relay.mailchannels.net ([23.83.223.164]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1refNl-0003lX-Sm for emacs-devel@gnu.org; Mon, 26 Feb 2024 13:07:31 -0500 X-Sender-Id: dreamhost|x-authsender|adam@alphapapa.net Original-Received: from relay.mailchannels.net (localhost [127.0.0.1]) by relay.mailchannels.net (Postfix) with ESMTP id E450B36321E; Mon, 26 Feb 2024 18:07:14 +0000 (UTC) Original-Received: from pdx1-sub0-mail-a203.dreamhost.com (unknown [127.0.0.6]) (Authenticated sender: dreamhost) by relay.mailchannels.net (Postfix) with ESMTPA id 83022363592; Mon, 26 Feb 2024 18:07:14 +0000 (UTC) ARC-Seal: i=1; s=arc-2022; d=mailchannels.net; t=1708970834; a=rsa-sha256; cv=none; b=9F7mLnn7WvU4kws/ownEaD9nAM31zagZfjg8dy2V+PP3dNbSxb5177oJKl+TN2RJqKf5BH /LyrYOuvgslZ6hlPoumhVckN0ULdzE3qMM37q2qJuL5r71Ur38mWRq8wj/GePpYyqIpCA3 3zDAODhevTL4jXCtDnHwgkMEINxK3iPt/gu0L0Ngf0M0WL7zAEMe8LbfKdQo84RCmBU4lW DsO3QqktjtMBfGc7HevRUGG9wvsHjfrpRxAD2UBTnBrqvrRH1GpquPk4Em4zjev89fTnUh 3b8RmzYWxWDlPHUrx4jRjNuTPIV0FkJ1mNAF/IDNlkTAuaQm60XhYq9BhAtIOA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=mailchannels.net; s=arc-2022; t=1708970834; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:dkim-signature; bh=D0xBUcTO5RoQtSnGRovIFAmEVoE7Nv+QCvZSTynoXE4=; b=TKBj94rNvCYf4lxgq0RfQ+8vXMYrDqexk9m8n4G09bqPLrqxbaIAn1WOYVqlqELxrKcpFd o8SdbxjwjreqJe1yPGmlFZTYuYxYT8hdii/Rwu5IkImeMhfUMjF5dDLz0te8I44IlA/Pvc kNWYz0ocEXCToxDIdErpJt+cT31Q6HkFXSJqFsRe86tzgZMBFRD1rWWOBu7CFQnb5QIdRn nfiKcZn/qn4vNEt2Gsyy/58Plu52ME5r9oehTD7+6kIX6eNjtcyLO3BWbWdxrf8JVblaTL spTsYZrjUzrW+wCrD9W4pYlAk6iB6wAyJ+z02b54aeL2E/1m+bqGNMk/QOZGWA== ARC-Authentication-Results: i=1; rspamd-55b4bfd7cb-9jm27; auth=pass smtp.auth=dreamhost smtp.mailfrom=adam@alphapapa.net X-Sender-Id: dreamhost|x-authsender|adam@alphapapa.net X-MC-Relay: Neutral X-MailChannels-SenderId: dreamhost|x-authsender|adam@alphapapa.net X-MailChannels-Auth-Id: dreamhost X-Abaft-Decisive: 6b0dd510692cf0cf_1708970834801_1540405248 X-MC-Loop-Signature: 1708970834801:277755886 X-MC-Ingress-Time: 1708970834801 Original-Received: from pdx1-sub0-mail-a203.dreamhost.com (pop.dreamhost.com [64.90.62.162]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384) by 100.123.27.52 (trex/6.9.2); Mon, 26 Feb 2024 18:07:14 +0000 Original-Received: from [10.43.0.214] (unknown [193.56.116.15]) (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) (Authenticated sender: adam@alphapapa.net) by pdx1-sub0-mail-a203.dreamhost.com (Postfix) with ESMTPSA id 4Tk7qj63lhzy3; Mon, 26 Feb 2024 10:07:13 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=alphapapa.net; s=dreamhost; t=1708970834; bh=D0xBUcTO5RoQtSnGRovIFAmEVoE7Nv+QCvZSTynoXE4=; h=Date:Subject:To:Cc:From:Content-Type:Content-Transfer-Encoding; b=cjVIM/YnHwMQ7BRKzu8h1sa2sN9iyRy9XgqyZQNfa5Gd47sp2WIGl51Pt4EkNNAJm kH9551SwTIWrg6I7BpTwd2j8Qmk0ExP4KgEuBep8ZZ+19I/1DZsb22wahEMwMZX4xh Zw0NxoUqAuNseJz5MoJhlXWU2EtBVlsRKXmI3O1BVlAs6bliPw8WBp2GJI2QJcnZqb eJdtpW2Sr3/lamqmU86Qpa7AH0u59U+xxHftlccpHObEVPuyl10cElsLXhNIdHTiad 7sB2DA8GQMwcHZOddd0xJSVWE0lVcmU+QC6pOqN2Q5pJhBuL6XA3DeEkxnM8Y2xRD2 JxhdKe2HtJi4Q== Content-Language: en-US In-Reply-To: Received-SPF: neutral client-ip=23.83.223.164; envelope-from=adam@alphapapa.net; helo=shrimp.cherry.relay.mailchannels.net X-Spam_score_int: 0 X-Spam_score: 0.0 X-Spam_bar: / X-Spam_report: (0.0 / 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_BL_SPAMCOP_NET=1.347, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H3=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_NEUTRAL=0.779, T_SCC_BODY_TEXT_LINE=-0.01, T_SPF_HELO_TEMPERROR=0.01 autolearn=no 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:316577 Archived-At: On 2/26/24 11:17, Drew Adams wrote: > There's no separation of return value from > conditions in `when' - it simply always > returns `nil'. It has only one condition, > the body has no bearing on the return value > (unless it `throw's etc.). > > The visual separation of condition code and > body is irrelevant to the logical separation > of condition and return value. The body's > irrelevant to the return value. According to elisp.info: > when is a Lisp macro in ‘subr.el’. > > (when COND &rest BODY) > > If COND yields non-nil, do BODY, else return nil. > When COND yields non-nil, eval BODY forms sequentially and return > value of last one, or nil if there are none. According to CLHS: > In a when form, if the test-form yields true, the forms are evaluated in order from left to right and the values returned by the forms are returned from the when form. Otherwise, if the test-form yields false, the forms are not evaluated, and the when form returns nil.