From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Dmitry Gutov Newsgroups: gmane.emacs.devel Subject: Re: Instead of pcase Date: Mon, 27 Nov 2023 14:21:41 +0200 Message-ID: <5be2b2cb-8bb2-5fe1-6a83-cb6582608b2e@gutov.dev> References: <87fs169mjj.fsf@posteo.net> <093f11a1-57c2-5e56-d39b-26fef1c67cbb@gutov.dev> <25942.25061.217864.329049@retriever.mtv.corp.google.com> <87zfzdcz6z.fsf@posteo.net> <87zfza2aq2.fsf@web.de> <7nmsv9zq6u.fsf@ecube.ecubist.org> <7nv89x5tsi.fsf@ecube.ecubist.org> <87o7focuf5.fsf@web.de> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="11307"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.13.0 Cc: michael_heerdegen@web.de, emacs-devel@gnu.org To: rms@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Mon Nov 27 13:22:52 2023 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 1r7adX-0002io-9V for ged-emacs-devel@m.gmane-mx.org; Mon, 27 Nov 2023 13:22:51 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1r7acd-0007T4-7c; Mon, 27 Nov 2023 07:21:55 -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 1r7aca-0007Sf-5d for emacs-devel@gnu.org; Mon, 27 Nov 2023 07:21:52 -0500 Original-Received: from out4-smtp.messagingengine.com ([66.111.4.28]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1r7acV-0006MP-S0; Mon, 27 Nov 2023 07:21:51 -0500 Original-Received: from compute1.internal (compute1.nyi.internal [10.202.2.41]) by mailout.nyi.internal (Postfix) with ESMTP id A3C525C0056; Mon, 27 Nov 2023 07:21:45 -0500 (EST) Original-Received: from mailfrontend1 ([10.202.2.162]) by compute1.internal (MEProxy); Mon, 27 Nov 2023 07:21:45 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gutov.dev; 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:sender:subject:subject:to:to; s=fm3; t= 1701087705; x=1701174105; bh=2FCTkNDPk9ZgoqVVLEEtujHNZPce95ZCix1 jEYCbEx0=; b=Wmzss/vQPo4O1mJd2rAZPvTzbdeAhN6GPhFX7qeZwnR3lYDodai QEFw7/k9CvmnfYyGML6OzOcR8n7o3Xzm5nYiMkDhHTm4JxiN0wrj5GoY9ltwETWN NV25HHVQ9UdtsmwVVmEBrg8w1YDToVnDPKr0jgxOlAsoXdsnKGOLzJ7C5MqPX+Av HLROwQgg53MvW6rccce+6LIIYlMOgT+uK5jjsPS7rvifaJg0Q9yt0BR36ZEgBrzs nHcYa4N2TrKWbkfK5y/dyBOnj+EStK3NYDduj8HPwuQPl0d2+NmqjeFJT1IoFCnf 3Kl0pLEup940YSXxymNMd+9NoQvruEsD1dg== 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:sender:subject:subject:to:to:x-me-proxy :x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm1; t= 1701087705; x=1701174105; bh=2FCTkNDPk9ZgoqVVLEEtujHNZPce95ZCix1 jEYCbEx0=; b=ZKZJze82N4ixHTiS0UbpCjJ5kO7Dr8SkHkhqFq71W/8jV0XijXM MucxxulTzS7eYEk4RpvO3zKHF0m15s8oFitUWW213KmQ1lydAF4pZox7vBK5Udoc D1QixHcEUv7QC/hgo0E2pQhbFI73HF9na+HEShxEKSMsTFDOf75AeOeAad63mKNe 9CdfaJJst5RJua+VE4I28JsI71UY68OomC+3+xBXdfU3KuAA3F5eap0a4oFFtrZb CoKZxWEPQszi7D/F+0SPMKCAd1YlcM36ksBeLjC+OOCyHrziaw8jYU8H1SowMIB6 +GEfzxxY/AlwyBK2EjO8PD3ZVd4G/3e+E/w== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvkedrudeiuddgfeelucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucenucfjughrpefkffggfgfuvfevfhfhjggtgfesth ejredttdefjeenucfhrhhomhepffhmihhtrhihucfiuhhtohhvuceoughmihhtrhihsehg uhhtohhvrdguvghvqeenucggtffrrghtthgvrhhnpeeigfetveehveevffehledtueekie eikeeufeegudfgfeeghfdulefgfeevledvveenucevlhhushhtvghrufhiiigvpedtnecu rfgrrhgrmhepmhgrihhlfhhrohhmpegumhhithhrhiesghhuthhovhdruggvvh X-ME-Proxy: Feedback-ID: i0e71465a:Fastmail Original-Received: by mail.messagingengine.com (Postfix) with ESMTPA; Mon, 27 Nov 2023 07:21:44 -0500 (EST) Content-Language: en-US In-Reply-To: Received-SPF: pass client-ip=66.111.4.28; envelope-from=dmitry@gutov.dev; helo=out4-smtp.messagingengine.com X-Spam_score_int: -46 X-Spam_score: -4.7 X-Spam_bar: ---- X-Spam_report: (-4.7 / 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, NICE_REPLY_A=-1.857, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H3=0.001, RCVD_IN_MSPIKE_WL=0.001, 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:313266 Archived-At: On 27/11/2023 05:09, Richard Stallman wrote: > [[[ 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. ]]] > > > I suggest you try rewriting the definition of completion-help-at-point > > using your alternative construct. > > I tried to do this, and it isn't hard to do this by formulating each clause > to use :match. I didn't think it would be difficult. But then one would compare the solutions. > However, to make the simplest possible result, I need to know > all the kinds of values that RES can have. For instance, at this point, > > (`(,hookfun . ,_) > ;; The hook function already performed completion :-( > ;; Not much we can do at this point. > (message "%s already performed completion!" hookfun) > nil) > > what are the possible values of RES that will NOT match that pattern? Since "_" means "anything", the pcase form does enumerate all possible options (anything else would be a bug in the code producing res).