From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Nicolas Petton Newsgroups: gmane.emacs.devel Subject: Re: Using gv in map and seq? Date: Wed, 17 Jun 2015 16:40:51 +0200 Message-ID: <87twu6z9cc.fsf@petton.fr> References: <87egldxn7p.fsf@petton.fr> <878ublkrqe.fsf@petton.fr> <871thbbdd0.fsf@petton.fr> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha1; protocol="application/pgp-signature" X-Trace: ger.gmane.org 1434552089 4118 80.91.229.3 (17 Jun 2015 14:41:29 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 17 Jun 2015 14:41:29 +0000 (UTC) Cc: emacs-devel To: Stefan Monnier Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Jun 17 16:41:20 2015 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 1Z5EWl-0000yj-RK for ged-emacs-devel@m.gmane.org; Wed, 17 Jun 2015 16:41:20 +0200 Original-Received: from localhost ([::1]:47300 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Z5EWk-0002uj-Rf for ged-emacs-devel@m.gmane.org; Wed, 17 Jun 2015 10:41:18 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:42305) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Z5EWS-0002tf-3L for emacs-devel@gnu.org; Wed, 17 Jun 2015 10:41:05 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Z5EWN-0007dM-0d for emacs-devel@gnu.org; Wed, 17 Jun 2015 10:40:59 -0400 Original-Received: from out5-smtp.messagingengine.com ([66.111.4.29]:37891) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Z5EWM-0007d6-B2 for emacs-devel@gnu.org; Wed, 17 Jun 2015 10:40:54 -0400 Original-Received: from compute3.internal (compute3.nyi.internal [10.202.2.43]) by mailout.nyi.internal (Postfix) with ESMTP id CABBD20987 for ; Wed, 17 Jun 2015 10:40:53 -0400 (EDT) Original-Received: from frontend2 ([10.202.2.161]) by compute3.internal (MEProxy); Wed, 17 Jun 2015 10:40:53 -0400 DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-sasl-enc :x-sasl-enc; s=smtpout; bh=d+gwsflUADMqXx+VJZlCN15GDho=; b=BQ5gh djXvrTsAZmBZITYQoqRmc2UgqoEzgKUGk3Ok5lTNcvSMGgHqNQrHNm3Ovxi+v+5P 7AsUU03FDAxXAjvnkBnUcPZ+dd89X9NOyPg7LAH0Z0FXttSxAxEzF/r3PGg2yTQl Z/wPhmt8ukMZDCpka71mcdV/kMRbudffEip61c= X-Sasl-enc: HHl6serRMSMRdyy7+VQKmlfO6ymO6GN7NpfFMeAj6IfG 1434552053 Original-Received: from blueberry (unknown [31.211.216.84]) by mail.messagingengine.com (Postfix) with ESMTPA id 289A96800FA; Wed, 17 Jun 2015 10:40:53 -0400 (EDT) In-Reply-To: User-Agent: Notmuch/0.19 (http://notmuchmail.org) Emacs/24.5.1 (x86_64-redhat-linux-gnu) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 66.111.4.29 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:187244 Archived-At: --=-=-= Content-Type: text/plain Content-Transfer-Encoding: quoted-printable Stefan Monnier writes: >>> > Something like the patch below seems to work (and it generalizes >>> > map-put to accept for MAP not only symbols but any "lvalue"). >>> For lists, yes indeed. I was looking for a simple way to do that, >>> thanks! >> Since the macro-expansion is done before we know what type we'll get, >> the restriction to lvalues carries over to all other types :-( Just out of curiosity, where is this restriction set? Nico =2D-=20 Nicolas Petton http://nicolas-petton.fr --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 Comment: GPGTools - http://gpgtools.org iQEcBAEBAgAGBQJVgYbzAAoJECM1h6R8IHkQemAIANVkFn15zSstJSnYBq/RHA67 gBAcT1qX+A5FCMahVlEXtUetBykWuCUPqbrlL0jqPqQni73A6HOnafpnxELirZx5 XAk8n059VLGlsEnzOTTyqvZjNNVzghcOZnO40Y74DT/srhyZ6LzqJ7ewN1zfF4sU DqixdVKUIRQq2ygzIfK52938vWH+ym0xrrS5BgD8DWLcWzsO7CmNMR4NKIrNcsYK /ruJrQIvuMoxYNjhznkJtpvhXLmy6QjFN+3k3d4qGM54blJm1+IYj4IRIi5JNPLi M8phQVInvNlE4mDuPMHcu1jv3pbcdGIJ/UoiKbjT2I0gSkvOh0NbceP30U7jpeM= =IRHx -----END PGP SIGNATURE----- --=-=-=--