From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Heime Newsgroups: gmane.emacs.help Subject: Re: pcase on multiple conditions Date: Fri, 28 Oct 2022 09:57:11 +0000 Message-ID: References: <87fsf82xzu.fsf@web.de> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="31897"; mail-complaints-to="usenet@ciao.gmane.io" Cc: help-gnu-emacs@gnu.org To: Michael Heerdegen Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Fri Oct 28 11:58:37 2022 Return-path: Envelope-to: geh-help-gnu-emacs@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 1ooM8J-00082d-Qz for geh-help-gnu-emacs@m.gmane-mx.org; Fri, 28 Oct 2022 11:58:35 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ooM7L-0003NQ-LZ; Fri, 28 Oct 2022 05:57:35 -0400 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 1ooM7E-0003KM-Kx for help-gnu-emacs@gnu.org; Fri, 28 Oct 2022 05:57:28 -0400 Original-Received: from mail-4319.protonmail.ch ([185.70.43.19]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ooM7C-0004Li-NM for help-gnu-emacs@gnu.org; Fri, 28 Oct 2022 05:57:28 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=protonmail.com; s=protonmail3; t=1666951040; x=1667210240; bh=yLTK3z4gMSg5Esxk7Nq7bJvXkV2S9Mq446gSsKBp9cg=; h=Date:To:From:Cc:Subject:Message-ID:In-Reply-To:References: Feedback-ID:From:To:Cc:Date:Subject:Reply-To:Feedback-ID: Message-ID:BIMI-Selector; b=UvdqgExUOK+ZuRgV7SIJJA8y9uj+k2/B6A7WFj7zRSTmqyC+qlIoaPDPSAPeutMVU 5fWTLkSphfSnUnaZAzMs5EhlIr+DUunQeA6AVmkW02/lycqHEaYPj3MNUHUBG9lZ6k zce0fl4y2VjZn4HyBNtFbMpqwjbZE75i9Sumy+5LQpGTXx/E1Mi0jMCDQTiuAHkSBa JbnNDwVgpsvn0OdaTvP0w6LwDFKqB8k2Vy1eYDF+MYlW41gSYIxQsbiza5eWwVZOD+ GFn7tKdxaNde5iCj0eOpj6GZRk3jpsRLBEeRuekVtYXPJ7bYrSj7mQOl/xiDiIrB1R gAYmi/4RF4bJw== In-Reply-To: <87fsf82xzu.fsf@web.de> Feedback-ID: 57735886:user:proton Received-SPF: pass client-ip=185.70.43.19; envelope-from=heimeborgia@protonmail.com; helo=mail-4319.protonmail.ch X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 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, FREEMAIL_FROM=0.001, RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: "help-gnu-emacs" Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.help:140460 Archived-At: ------- Original Message ------- On Friday, October 28th, 2022 at 7:44 AM, Michael Heerdegen wrote: > Jean Louis bugs@gnu.support writes: >=20 > > * Heime heimeborgia@protonmail.com [2022-10-28 09:49]: > >=20 > > > Is this the way to test for two values to perform the same operation? > > >=20 > > > (pcase complt > > >=20 > > > ((or 3 4) > > >=20 > > > (myfunc))) > >=20 > > With `or' it will become true if any of values is true. >=20 >=20 > `pcase' patterns are not values. Your interpretation of the semantics of = this` or` pattern is wrong. >=20 > Michael. I want to call "myfunc" when "complt" has value 3 or 4.