From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Christopher Dimech Newsgroups: gmane.emacs.help Subject: Re: Does pcase need progn in if condition Date: Fri, 21 May 2021 19:09:56 +0200 Message-ID: References: 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="23542"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Help Gnu Emacs To: pietru@caramail.com Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Fri May 21 19:10:32 2021 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 1lk8fO-0005oh-1q for geh-help-gnu-emacs@m.gmane-mx.org; Fri, 21 May 2021 19:10:30 +0200 Original-Received: from localhost ([::1]:60520 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lk8fN-0005kM-52 for geh-help-gnu-emacs@m.gmane-mx.org; Fri, 21 May 2021 13:10:29 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:39000) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lk8ew-0005ht-51 for help-gnu-emacs@gnu.org; Fri, 21 May 2021 13:10:02 -0400 Original-Received: from mout.gmx.net ([212.227.17.21]:34083) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lk8eu-0000ME-5E for help-gnu-emacs@gnu.org; Fri, 21 May 2021 13:10:01 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1621616996; bh=lJflgSMtJL0kOCGkDrsLzAVBI4HDrbpQ6jG9fluJl/s=; h=X-UI-Sender-Class:From:To:Cc:Subject:Date:In-Reply-To:References; b=ezvO944lmjHh0+neH1DqowNuhFVnjZsEZNmdftm1X0fGke1OVN5aRGTFM2zpIZqaf 3j86nhBdwk6i7pTe3QnSjkQyumiePnKTd0jDFUky0Yv2Qlk513WTaCMwtRRl5BdNY+ Uq+lH1P0BmHfI3KR+pcfYN8jTcKGsbdGEMQhrLPU= X-UI-Sender-Class: 01bb95c1-4bf8-414a-932a-4f6e2808ef9c Original-Received: from [213.165.168.94] ([213.165.168.94]) by web-mail.gmx.net (3c-app-mailcom-bs04.server.lan [172.19.170.170]) (via HTTP); Fri, 21 May 2021 19:09:56 +0200 Importance: normal Sensitivity: Normal In-Reply-To: X-UI-Message-Type: mail X-Priority: 3 X-Provags-ID: V03:K1:lUJVt0OhpZDFmqkkzErMRnpFEXXnhk3jSh/vs6fsqW3KGs/sG1l5cOsk4C4TY7ykGG2Et yUhruDfFeU9ZbLZZwo7wG4zrA/DmLagrq4H/aD8sYYOznGzP8vLvmIgbpzHObhNie7iqOA/jJbo8 wp0a5YFWIti1vxEbvwSbuZXgAZdewarPJyEZAmlAIx78/1Osf/xnHSwyZ5Mm/vq+v/w2Y85q9VnY 5GTrEjczxQfzg7FzrQeoq0/LnsWgOcYR9udldnnIYTpgvxvUF7sGcwbbPIiA0aHrJWEfmhfuYMcL ns= X-UI-Out-Filterresults: notjunk:1;V03:K0:TcNN8fWE28k=:EHvsPFrLa0B0GboiQ89yXw NuTHMM4RBhba4TNAyrmrKD2hAy4ERhUMT8J1kKa3I2VYAfwXKNbPMfbuf8+M12+ulauIG8UCj ucJ4dqg2rHx2AzzLgn8AoQZWe7MHPHIWKG1IyvBO83STuAlrURrtRfMYevODlGYxiKiMBp6RK 41ENrJKgk+OrfLhJeTwH+teQKb+zwRZ2Ln8y8Q7h1FvemywCQmb7lp3glr1vZOf1kcPVhqPMy s3Xi503jEsTrxh5i4bQJgqA3XHzWqJmJO/DM4f24ET39qGhG98RaxD1esCX/cWwuU2J1c1dYa dEukcMyDiRrWtNuKV1Ec0twlp2WX3gDoqcxRgqoqYLhc5rDxF0vmW5H3Qct86Y6+zuMwxZ/Ek WKd2y5GUsro50RsWMxP6W1TnfmUmcRtkwzokW5FHmGKK586n6Z3jKW0WRxuCrojKt0Yu2fcg4 zY2NP665y0S2UsQ/Z6rjQh2BMDiZe9An4nOkRWdEEyb+FifmxsmqHMGd0Leus42Ao6mHieVIS wxCp6AiFcZ5kC7IJbNCJSTXNbQjTE5o00gt2O2qenCXP7GU5et5BE1U7bldCs0H4Kp5a+NeMb sOBJtXqtmTLspsAl9GGB6RsCA2kV6C53L5t8Kw43m/pt/iTaYPePUBq3KDhzW0CTDxfjohRzQ G/cRDumPwSWN1vJz9t5kVttxqcVnz9ECfr9dax6mJgsyrze2cj60y6hI8OtXgQrxDD0QUckYv 8xoQnpyjV/SoRelkMGEt2sJqZugSHq+9EKY8ZTGSX7AMuXRsrsgdWH8nUjtgqsokQUA4Ovez Received-SPF: pass client-ip=212.227.17.21; envelope-from=dimech@gmx.com; helo=mout.gmx.net X-Spam_score_int: -15 X-Spam_score: -1.6 X-Spam_bar: - X-Spam_report: (-1.6 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, FREEMAIL_FROM=0.001, FREEMAIL_REPLY=1, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=no autolearn_force=no X-Spam_action: no action X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "help-gnu-emacs" Xref: news.gmane.io gmane.emacs.help:130000 Archived-At: I do not think it needs a progn as it consists of a single expression. > Sent: Friday, May 21, 2021 at 9:25 PM > From: pietru@caramail.com > To: "Help Gnu Emacs" > Subject: Does pcase need progn in if condition > > > Does "pcase" need progn in an "if" condition > > -------- > > (if condition > > (pcase n > > (0 (save-excursion (insert s))) > > ((or 1 2 3 4 5) > (delete-region (point) b) > (save-excursion (insert s))) > > (_ (delete-region (point) b))) )) > >