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: Auto Fill Comments Date: Wed, 2 Dec 2020 00:27:48 +0100 Message-ID: References: <87r1oclvkp.fsf@web.de> <87blffzq7f.fsf@web.de> <87wny2r1a1.fsf@web.de> <236fb79f-014c-412f-9c78-fd9c774a57fc@default> <20201201084224.GA26076@tuxteam.de> <87k0u1gw2x.fsf@web.de> <87im9lf77o.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="39179"; 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 Wed Dec 02 00:30:30 2020 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 1kkF6L-000A6x-CK for geh-help-gnu-emacs@m.gmane-mx.org; Wed, 02 Dec 2020 00:30:29 +0100 Original-Received: from localhost ([::1]:49996 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kkF6K-0008Bx-71 for geh-help-gnu-emacs@m.gmane-mx.org; Tue, 01 Dec 2020 18:30:28 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:59448) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kkF3q-0008AW-N0 for help-gnu-emacs@gnu.org; Tue, 01 Dec 2020 18:27:54 -0500 Original-Received: from mout.gmx.net ([212.227.17.21]:57101) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kkF3n-0004dX-R1 for help-gnu-emacs@gnu.org; Tue, 01 Dec 2020 18:27:54 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1606865268; bh=tRG5vKQG2u3CH9BieoyjRQkjw0tG9IyANLWQJBEqC+k=; h=X-UI-Sender-Class:From:To:Cc:Subject:Date:In-Reply-To:References; b=SZPxRK72nivxvZu4TIWg0WBAc8D/duS8x7YFFu2KGOBVk7t294FFU08hUIjTvhdPh lFO9WoaJEQ5PaMf5112nE0G+Fkh8w8JrZBAVRVrjloTobpwZBp4RpkwBdmWGXTid16 aZlGiZBYML7hG3DtR6aKwBRJO7kX8jyaiGVmFY98= 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-bs14.server.lan [172.19.170.182]) (via HTTP); Wed, 2 Dec 2020 00:27:48 +0100 Importance: normal Sensitivity: Normal In-Reply-To: <87im9lf77o.fsf@web.de> X-UI-Message-Type: mail X-Priority: 3 X-Provags-ID: V03:K1:L1r1pzR/j11bh8sfd7w5seFSQLSdxWRier2gLX1MaxvINaSXGbvSj7lS8Uz0kX4BnlHit BeG02vmSqFwzYzcs4C2PRTgkCFy15BJVA9+/zudakTX7Z6zN8bmagIsPi0knMMMFSD0fc5qC/VJN WKo+KkuL5NdDTaN0ZVBVc5MAv8FDq2jrp3ieIUOmQVsp+BM/tZMTfu3c42i+z9YqUsKpmeyNdl5I tIFPR84x0WKiUiMdFBl2myGVP3wjfZ8MwECDQo1lbuoh1yVF5yjNVDWV5HsZakRlEFT3YdF1clJg B4= X-UI-Out-Filterresults: notjunk:1;V03:K0:/znYD3I3oNU=:p9Eg1s0MAVh+3Ff4Kzv8Rz uPy40hUir47iBLmT1Yt8qD5cZe4wBNWWoAd6Mu6Sxpe8oSMvTm200a3t9M958VruVJowhHO3m tz9evMfcsmFYFERc/N6uK8ex0gc4ECPJXIOLPI0N0k8Lpj9LgIpxboda9oG4RN27OvFT7pkyd nESzgkOpZMVxKmh8ptCEaHm9tx5XaDZUJjTm32oAPASjUU2NOs1JbVXdW9gv0ipnZxNnjdNvq ZnOHZkHs29sh8hp4V4bWH0ih83NKRnnj655QL5ujEFe+w0dcmNqmKeaAXL2sRY6Yo+1PCvjhk rJgiVvE/wrAp4kNJUsT2gDfQZ3oEuOIPTwOX/0EW6TTDusgSZ9Qqkl5UPKLjPlX7fYEuBCfRk lnDTSxQD0lzO1rcRGXFOAZu/eu7HVR+8z1SGkIopgNhLS9cRehIJNz+nVdoIWaM2IPQWl7gI1 BAINAhUQYDgPdpRY1Sx13sN7BcLcEXXHFGrZw/YQicTJs++7tsWi2I/EMQLqBjflqNfuN7wJg UkQY7hiKaz3+QfYecGaVnjYsZOBC10Ux57BDLxdU5lU5EMwA8hVzs0gayd/JvWSRXRCxziYCR CVfNq1jtBi1T4= Received-SPF: pass client-ip=212.227.17.21; envelope-from=dimech@gmx.com; helo=mout.gmx.net X-Spam_score_int: -25 X-Spam_score: -2.6 X-Spam_bar: -- X-Spam_report: (-2.6 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_NONE=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.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:125812 Archived-At: It is a motivation of how beneficial properly working examples would be, to have in manuals, if they are not too long. Naturally, it is up to author discretion, but good to keep in mind. > Sent: Wednesday, December 02, 2020 at 12:16 AM > From: "Michael Heerdegen" > To: "Christopher Dimech" > Cc: help-gnu-emacs@gnu.org > Subject: Re: Auto Fill Comments > > Christopher Dimech writes: > > > Can someone show me some properly working examples of _ in pcase > > and say what they do? > > A simple example? > > #+begin_src emacs-lisp > (pcase person > ('christopher (message "Hello, Christopher!")) > ('michael) ; do nothing and return nil > ;; catchall branch: > (_ (message "Hello, how are you?"))) > #+end_src > > Of course one can use it, like any other pattern, to assemble compounded > patterns. It is particularly useful in backquote patterns for example. > > IME the `pcase' occurrences in the Emacs sources offer a nice set of > examples, once one has got an idea of the concept. > > Michael. > >