From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Richard Stallman Newsgroups: gmane.emacs.devel Subject: Re: cond* Date: Sun, 07 Jan 2024 22:47:23 -0500 Message-ID: References: <87frzuae9n.fsf@posteo.net> <871qbatqc8.fsf@posteo.net> <87wmsz7lzn.fsf@posteo.net> <87edf1m7lq.fsf@localhost> <87il4a76zw.fsf@localhost> <871qauwquc.fsf@localhost> Reply-To: rms@gnu.org Content-Type: text/plain; charset=Utf-8 Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="6101"; mail-complaints-to="usenet@ciao.gmane.io" Cc: emacs-devel@gnu.org To: Ihor Radchenko Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Mon Jan 08 04:48:22 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 1rMgcg-0001Mq-D7 for ged-emacs-devel@m.gmane-mx.org; Mon, 08 Jan 2024 04:48:22 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rMgbl-0001d1-4C; Sun, 07 Jan 2024 22:47:25 -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 1rMgbk-0001cb-5d for emacs-devel@gnu.org; Sun, 07 Jan 2024 22:47:24 -0500 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1rMgbj-00045t-Tq; Sun, 07 Jan 2024 22:47:23 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=Date:References:Subject:In-Reply-To:To:From: mime-version; bh=CBOPqTTIk6PoV4Y7SSt0vm3M0Wuf2D+V2S4l1BlWqus=; b=SrIIGleT36To KpF6viqbFAxONmf/yWNRWEXd2tTTX8siN+yTKRvQZno8QG1flPCDGQ0YuTIEQujS4nd0UZDpWxwXa N89Xw3NneKfloRbKmTVZlSkAAiaQCrCr/sfg1/CMJGxV0QpLgld76eZr1dWJqrHZV9Ca1CS0JqD7E rpa3ArOHv27w+1JJNUZDtW0tbM1L9YY+wvD7E1fN2gZys1HA21TxULy1CB/sUB5FRKUFPgwlrCLM2 AM72fPouQevQlnxzClqy2n10CifXA8OTPaOXDJE4agGMmyVGew7cW43sKlOqGcEEfMzldVkLTOUBk jWTPmDmKK0PY4gruGItnHg==; Original-Received: from rms by fencepost.gnu.org with local (Exim 4.90_1) (envelope-from ) id 1rMgbj-0002mj-F5; Sun, 07 Jan 2024 22:47:23 -0500 In-Reply-To: <871qauwquc.fsf@localhost> (message from Ihor Radchenko on Sat, 06 Jan 2024 13:09:47 +0000) 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:314730 Archived-At: [[[ To any NSA and FBI agents reading my email: please consider ]]] [[[ whether defending the US Constitution against all enemies, ]]] [[[ foreign or domestic, requires you to follow Snowden's example. ]]] > May you please elaborate how you see named variables in `rx'? Exactly the same as in `rx' in pcase. I suppose pcase transforms the (rx ...) construct into a regular expression -- right? If this can be implemented for the (rx ...) pattern in pcase, it can be implemented for `rx' the function with the same code -- right? I expect it would work by allocating a subpattern number for each (let ...) variable. Please don't tell me that someone reimplemented `rx' from scratch for pcase, rather than using the existing `rx' code! -- Dr Richard Stallman (https://stallman.org) Chief GNUisance of the GNU Project (https://gnu.org) Founder, Free Software Foundation (https://fsf.org) Internet Hall-of-Famer (https://internethalloffame.org)