From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.bugs Subject: bug#19814: 24.4; pcase-lambda Date: Sun, 08 Feb 2015 23:27:49 -0500 Message-ID: References: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1423456129 17562 80.91.229.3 (9 Feb 2015 04:28:49 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 9 Feb 2015 04:28:49 +0000 (UTC) Cc: 19814@debbugs.gnu.org To: Leo Liu Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon Feb 09 05:28:48 2015 Return-path: Envelope-to: geb-bug-gnu-emacs@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 1YKfxl-0000sB-Mz for geb-bug-gnu-emacs@m.gmane.org; Mon, 09 Feb 2015 05:28:45 +0100 Original-Received: from localhost ([::1]:58814 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YKfxl-0005mh-5H for geb-bug-gnu-emacs@m.gmane.org; Sun, 08 Feb 2015 23:28:45 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:50664) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YKfxE-0005Jm-54 for bug-gnu-emacs@gnu.org; Sun, 08 Feb 2015 23:28:13 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YKfx4-0005Lb-UA for bug-gnu-emacs@gnu.org; Sun, 08 Feb 2015 23:28:12 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:46478) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YKfx4-0005LX-S9 for bug-gnu-emacs@gnu.org; Sun, 08 Feb 2015 23:28:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1YKfx4-0008GQ-HY for bug-gnu-emacs@gnu.org; Sun, 08 Feb 2015 23:28:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Stefan Monnier Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 09 Feb 2015 04:28:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 19814 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 19814-submit@debbugs.gnu.org id=B19814.142345608031743 (code B ref 19814); Mon, 09 Feb 2015 04:28:02 +0000 Original-Received: (at 19814) by debbugs.gnu.org; 9 Feb 2015 04:28:00 +0000 Original-Received: from localhost ([127.0.0.1]:37718 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1YKfx1-0008Ft-Gx for submit@debbugs.gnu.org; Sun, 08 Feb 2015 23:27:59 -0500 Original-Received: from ironport2-out.teksavvy.com ([206.248.154.181]:61128) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1YKfwy-0008Eu-GK for 19814@debbugs.gnu.org; Sun, 08 Feb 2015 23:27:57 -0500 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: ArsTAPOG1lTAqyxp/2dsb2JhbABbgwaDX4VTwGUEAgKBDUQBAQEBAQF8hA0BBAFWIxALDiYSFBgNJIg4CM4jAQEBAQYBAQEBHo94B4QqBYonoRAihAwggnMBAQE X-IPAS-Result: ArsTAPOG1lTAqyxp/2dsb2JhbABbgwaDX4VTwGUEAgKBDUQBAQEBAQF8hA0BBAFWIxALDiYSFBgNJIg4CM4jAQEBAQYBAQEBHo94B4QqBYonoRAihAwggnMBAQE X-IronPort-AV: E=Sophos;i="5.09,536,1418101200"; d="scan'208";a="109993637" Original-Received: from 192-171-44-105.cpe.pppoe.ca (HELO pastel.home) ([192.171.44.105]) by ironport2-out.teksavvy.com with ESMTP/TLS/DHE-RSA-AES256-SHA; 08 Feb 2015 23:27:50 -0500 Original-Received: by pastel.home (Postfix, from userid 20848) id 0172B1F77; Sun, 8 Feb 2015 23:27:49 -0500 (EST) In-Reply-To: (Leo Liu's message of "Mon, 09 Feb 2015 09:14:30 +0800") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.0.50 (gnu/linux) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 140.186.70.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:99195 Archived-At: >> Maybe it'd be better to just splitting the body into 2 parts: >> - "declarations", which would include docstrings, `declare's, and interactive >> - code. > Coincidentally I have done just that locally :) > (defun macroexp-parse-body (exps) > "Parse EXPS into ((DOC DECLARE-FORM INTERACTIVE-FORM) . BODY)." > `((,(and (stringp (car exps)) > (pop exps)) > ,(and (eq (car-safe (car exps)) 'declare) > (pop exps)) > ,(and (eq (car-safe (car exps)) 'interactive) > (pop exps))) > ,@exps)) No, I meant (DECLS . BODY) such that (let ((x (macroexp-parse-body body))) (append (car x) (cdr x))) return something `equal' to `body'. Stefan