From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Michael Heerdegen Newsgroups: gmane.emacs.devel Subject: Re: gv-exander for 'list' Date: Wed, 20 Mar 2019 19:15:51 +0100 Message-ID: <87ef71s97s.fsf@web.de> References: <87bm26stsj.fsf@web.de> <87sgviqys2.fsf@web.de> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="262472"; mail-complaints-to="usenet@blaine.gmane.org" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux) Cc: emacs-devel@gnu.org To: Stefan Monnier Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Mar 20 19:16:57 2019 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([209.51.188.17]) by blaine.gmane.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1h6flo-00166U-Gx for ged-emacs-devel@m.gmane.org; Wed, 20 Mar 2019 19:16:56 +0100 Original-Received: from localhost ([127.0.0.1]:51476 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1h6fln-0005c3-8m for ged-emacs-devel@m.gmane.org; Wed, 20 Mar 2019 14:16:55 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:52227) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1h6fl6-0005be-HQ for emacs-devel@gnu.org; Wed, 20 Mar 2019 14:16:13 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1h6fl3-0004Wj-Ib for emacs-devel@gnu.org; Wed, 20 Mar 2019 14:16:12 -0400 Original-Received: from mout.web.de ([212.227.17.12]:55461) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1h6fl2-0004Dl-Gi for emacs-devel@gnu.org; Wed, 20 Mar 2019 14:16:09 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=web.de; s=dbaedf251592; t=1553105754; bh=uv8VNlxN2hdB2zOPdvJNjkG7bM6ldye/BJJm3hpSlpI=; h=X-UI-Sender-Class:From:To:Cc:Subject:References:Date:In-Reply-To; b=f88LLFwZ/Xc24pLy4aBWE4eMsq6zgrcDLmBP9fK56/fGEkisej+zVSf35xQFs/szy xyozZM02HVZyIZ/mYaFnx8rd2jIqgHKQs/ZerHSVguQl/QhsKXh+UlNtJffm9lCk6a SDG9S3xfloA0DOUqg66Vvr5+bk7rt/aXKFSOzmSQ= X-UI-Sender-Class: c548c8c5-30a9-4db5-a2e7-cb6cb037b8f9 Original-Received: from drachen.dragon ([88.67.111.211]) by smtp.web.de (mrweb103 [213.165.67.124]) with ESMTPSA (Nemesis) id 0MhleR-1hJg9x1Ck7-00MtwA; Wed, 20 Mar 2019 19:15:54 +0100 In-Reply-To: (Stefan Monnier's message of "Tue, 19 Mar 2019 20:38:00 -0400") X-Provags-ID: V03:K1:0TVeR00CSTj4tLSQsuxENBj/O9V/LLxCb293U0nAQl5aC9A0+n8 xtEexiGS6jEkvD3pxUPHhFJ3qiBs4TMecnffhYhEnIzT23UdClySugWTS0+W14/s0kuZhIF tQBjLULdLRhUotpB6TSv0cJ46/7eYfQkoB8NubrCyHb5pENcwNN0GtmPuaYdPd25Bh8pht3 vmCoQ85DhVeWEYqiPA7Ng== X-UI-Out-Filterresults: notjunk:1;V03:K0:glVaiAFja4k=:6A1Sf1pCTfRwSbKLeAb+cN TPWa1Wburb5gfpzA7zXNIY+LDybm0lJj+o4da6yEACB5xDEuMnV7Bs6MScOMgAcdf5h/MwQto llb5WSIyOauotsa4o23yOSIQjjIYV0z4yUJ80ubqoD3QNc4Dej8i4P8zoVYlKnJay2ZM2Qwe8 JofuknGYaFYjXcXq/Rl85qpmUegXtpB40O1eY42luuFrDRKEHLgNF+s8QOllW0Gj096ufsNdf bUJ2dJgayx3ZMwBD0U7VAz1tQn25n/19xbBdSLlxY5K00+cxxr//SwCc4KD/Zwek/GGlInrk/ RjSX1u/V0uSJzXOylbvLOU8xjB675olwvcP7dxdyAkN1lFxXV00WgqSFgnCVu9f0swePoWlYl DcdloOIvlylMrXeFaDmVBM1RReO/4cUhOxBrtacGEI+s7BU10uj7qH9zHUAZAog1HWw+r9TC9 72ymNnbQrRXavG2tlbQMKxyf6pq3AlUKhL3rYkKDFNvBK0XZ2+fcIJiTShA1MylLfTI4rE6nM p0fratSI/u8qIIhZvfHLGxcC+jvwPJv6qawmAreuepRDzNVaNFb9NpD4VrLdTZlsU93JPyDmg 5SdSZoS0VWL9WH0d8hs5ATgtd0tA4XaCbsKhHc9YL9Z7mqgm3oNzHsTNxcOwQWS6Xh79Zkg6P aZkrEJ0CkdioO0I2xQixaeA7BFZ2/557tZO2fq782YSP0RLyx5LSrkF5Q9PeuFeUSf10VPLkY O7Jqlb9uj6Qj/SSZRES/AqQJAnVAs5E/J/tLb3n2/HBqGr63EUBDbeNuVe8i7fPZT56y4O6b X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 212.227.17.12 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.21 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" Xref: news.gmane.org gmane.emacs.devel:234416 Archived-At: Stefan Monnier writes: > > I mean that something like > > > > (cl-letf (((list a) (list 1))) > > a) > > > > errors unless variable a is already bound. > > Oh, right, that too. Ok, then let's forget the idea. BTW, in > + (funcall do `(list ,@(mapcar #'car getters+setters)) > + (lambda (v) > + (macroexp-let2 macroexp-copyable-p v v > + (macroexp-progn > + (mapcar (lambda (x) (funcall (cdr x) `(pop ,v))) > + getters+setters)))))))) is there a trick to avoid the redundant macroexp-progn in such a situation? macroexp-let2 only accept a body as &rest, but since it's a macro I can't `apply' it. Thanks, Michael.