From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Olaf Rogalsky Newsgroups: gmane.emacs.help Subject: Re: understanding backquote Date: Wed, 3 Jun 2015 06:23:11 -0400 Message-ID: <14db8f2367e-75d-f8@webprd-m64.mail.aol.com> References: <14db86cf8dd-7b95-1235a@webprd-m64.mail.aol.com> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1433327030 23346 80.91.229.3 (3 Jun 2015 10:23:50 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 3 Jun 2015 10:23:50 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Wed Jun 03 12:23:35 2015 Return-path: Envelope-to: geh-help-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 1Z05pY-00069w-Jo for geh-help-gnu-emacs@m.gmane.org; Wed, 03 Jun 2015 12:23:28 +0200 Original-Received: from localhost ([::1]:34417 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Z05pY-0000vC-1C for geh-help-gnu-emacs@m.gmane.org; Wed, 03 Jun 2015 06:23:28 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:39755) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Z05pN-0000uu-9c for help-gnu-emacs@gnu.org; Wed, 03 Jun 2015 06:23:17 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Z05pI-00046J-Aj for help-gnu-emacs@gnu.org; Wed, 03 Jun 2015 06:23:17 -0400 Original-Received: from omr-m1.mx.aol.com ([64.12.224.134]:40320) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Z05pI-00045y-5R for help-gnu-emacs@gnu.org; Wed, 03 Jun 2015 06:23:12 -0400 Original-Received: from mtaomg-mab01.mx.aol.com (mtaomg-mab01.mx.aol.com [172.26.249.83]) by omr-m1.mx.aol.com (Outbound Mail Relay) with ESMTP id 608A3380000A6 for ; Wed, 3 Jun 2015 06:23:11 -0400 (EDT) Original-Received: from core-mfa03a.mail.aol.com (core-mfa03.mail.aol.com [172.27.61.3]) by mtaomg-mab01.mx.aol.com (OMAG/Core Interface) with ESMTP id 0E6A138000081 for ; Wed, 3 Jun 2015 06:23:11 -0400 (EDT) Original-Received: from 195.33.171.8 by webprd-m64.mail.aol.com (10.74.55.14) with HTTP (WebMailUI); Wed, 03 Jun 2015 06:23:10 -0400 In-Reply-To: <14db86cf8dd-7b95-1235a@webprd-m64.mail.aol.com> X-MB-Message-Source: WebUI X-MB-Message-Type: User X-Mailer: JAS STD X-Originating-IP: [195.33.171.8] x-aol-global-disposition: G DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=mx.aol.com; s=20140625; t=1433326991; bh=weB5KnE7c+8EBvJRlk0+kJNntl7ifPXLRLmdrz26mJ8=; h=From:To:Subject:Message-Id:Date:MIME-Version:Content-Type; b=C8lcOaEApRxrpGlH/eL/5FXamCVtOuM6XMkyDiIpcGR88B6vvitn8yK8TNDwrPSNS RFjypork49RH4hTNViqGbv+wqX63SK8HvHvSAySrTl0ODl/KBE6O26xae6h3k+8bCU hpQpbNZDKBTXb7bcuPEMj6cw+DOfNtDK2xCwQBjk= x-aol-sid: 3039ac1af953556ed58f6a01 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.4.x-2.6.x [generic] X-Received-From: 64.12.224.134 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 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.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:104731 Archived-At: For my amusement, I have written another variation on this subject:: (defun recursive-map (fun expr) (funcall fun (if (consp expr) (cons (recursive-map fun (car expr)) (recursive-map fun (cdr expr))) expr))) (defun eval-when-read (expr) (if (and (consp expr) (eq (car expr) 'eval-when-read)) (eval (cadr expr)) expr)) (defmacro read-wrapper (&rest body) (cons 'progn (mapcar (apply-partially 'recursive-map 'eval-when-read) body))) (read-wrapper (defun test () (eval-when-read (* (+ 1 2) (+ 3 4))))) Olaf