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: Instead of pcase Date: Tue, 28 Nov 2023 22:42:05 -0500 Message-ID: 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> <5be2b2cb-8bb2-5fe1-6a83-cb6582608b2e@gutov.dev> 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="31813"; mail-complaints-to="usenet@ciao.gmane.io" Cc: michael_heerdegen@web.de, emacs-devel@gnu.org To: Dmitry Gutov Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Wed Nov 29 04:42:24 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 1r8BSx-000868-Q8 for ged-emacs-devel@m.gmane-mx.org; Wed, 29 Nov 2023 04:42:23 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1r8BSh-0001eQ-LG; Tue, 28 Nov 2023 22:42:08 -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 1r8BSf-0001dC-WE for emacs-devel@gnu.org; Tue, 28 Nov 2023 22:42:06 -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 1r8BSf-0007zz-L9; Tue, 28 Nov 2023 22:42:05 -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=AgtnMqnDs1MHhzzz62iBVUXkqEX5EZbrbv0XUX3Qxnw=; b=en+a0ekDFuWc 6uHkVbJYAotR5vtbzX5IX2Iir+sJfmshkULzYfnV+UlQc+v1JDdIi98tiWU7sOioGOYiaG+4q7TsO nSrc5544hGfqne3myOopb1vlAASG1bFrW9oYkYTZu6q/GkjVDE4h3cgzY753TI+rvKs+OlpqckW0M LT1cC4MCqkU8JUu0jGoyfFXNcSI3T0bLQehJsJwXknWf5qREyKpQuYRu/FhLi7ftVUoQzfb/s/jOX 1YdQXvPL/OQOhLjBlsAismSOikQakpCbLbHfjd0DKPvp8FOnt9t9F0hVYdjKy5v+GQrYaPh/BxL2S wZgxR+yurVuHF/mAcQDaDA==; Original-Received: from rms by fencepost.gnu.org with local (Exim 4.90_1) (envelope-from ) id 1r8BSf-0001KP-6D; Tue, 28 Nov 2023 22:42:05 -0500 In-Reply-To: <5be2b2cb-8bb2-5fe1-6a83-cb6582608b2e@gutov.dev> (message from Dmitry Gutov on Mon, 27 Nov 2023 14:21:41 +0200) 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:313351 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. ]]] > > 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 We had a miscommunication. Your answer tells me what that pcase clause recognizes, but the question I am asking is a different one. My question is about what values of RES are _valid_ at that point in the code. (anything else would be a bug in the code producing res). My question is about the code producing RES. What are the values it can produce, and what do they mean? -- 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)