From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.devel Subject: Re: pcase docs Date: Sun, 24 Jan 2016 00:07:03 -0500 Message-ID: References: <83a8o8gcya.fsf@gnu.org> <87zivx5ree.fsf@web.de> <87r3h95qs3.fsf@web.de> <83wpr15mk1.fsf@gnu.org> <8737toiota.fsf@web.de> <83fuxo5xo4.fsf@gnu.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1453612047 29651 80.91.229.3 (24 Jan 2016 05:07:27 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 24 Jan 2016 05:07:27 +0000 (UTC) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sun Jan 24 06:07:20 2016 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1aNCtT-0003mM-Ur for ged-emacs-devel@m.gmane.org; Sun, 24 Jan 2016 06:07:20 +0100 Original-Received: from localhost ([::1]:59226 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aNCtT-0003GN-4P for ged-emacs-devel@m.gmane.org; Sun, 24 Jan 2016 00:07:19 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:57872) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aNCtP-0003Ek-Vh for emacs-devel@gnu.org; Sun, 24 Jan 2016 00:07:16 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aNCtK-0004go-W5 for emacs-devel@gnu.org; Sun, 24 Jan 2016 00:07:15 -0500 Original-Received: from plane.gmane.org ([80.91.229.3]:58384) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aNCtK-0004gj-PU for emacs-devel@gnu.org; Sun, 24 Jan 2016 00:07:10 -0500 Original-Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1aNCtJ-0003is-UO for emacs-devel@gnu.org; Sun, 24 Jan 2016 06:07:09 +0100 Original-Received: from 108.161.125.56 ([108.161.125.56]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sun, 24 Jan 2016 06:07:09 +0100 Original-Received: from monnier by 108.161.125.56 with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sun, 24 Jan 2016 06:07:09 +0100 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 13 Original-X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: 108.161.125.56 User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.1.50 (gnu/linux) Cancel-Lock: sha1:cTgS73v4e+tpBYnRX5OwWhV2JWo= X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 80.91.229.3 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 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.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:198684 Archived-At: > Sorry, I don't understand: how can knowing what 'defmacro' does help > to know what 'pcase-defmacro' does? (defmacro FOO (FARGS) BODY) takes an expression of the form (FOO AARGS), and replaces it with the result of evaluating BODY in a context where FARGS is bound to AARGS. (pcase-defmacro FOO (FARGS) BODY) takes a pattern of the form (FOO AARGS), and replaces it with the result of evaluating BODY in a context where FARGS is bound to AARGS. Stefan "hoping this clarifies it. Sorry for my poor docstrings"