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: Using gv in map and seq? Date: Wed, 17 Jun 2015 08:58:10 -0400 Message-ID: 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: text/plain X-Trace: ger.gmane.org 1434545936 12256 80.91.229.3 (17 Jun 2015 12:58:56 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 17 Jun 2015 12:58:56 +0000 (UTC) Cc: emacs-devel To: Nicolas Petton Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Jun 17 14:58:46 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 1Z5CvQ-0003hq-9u for ged-emacs-devel@m.gmane.org; Wed, 17 Jun 2015 14:58:40 +0200 Original-Received: from localhost ([::1]:46628 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Z5CvP-0005gK-ME for ged-emacs-devel@m.gmane.org; Wed, 17 Jun 2015 08:58:39 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:60287) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Z5Cv3-0005bj-Vv for emacs-devel@gnu.org; Wed, 17 Jun 2015 08:58:18 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Z5Cux-00007Q-QX for emacs-devel@gnu.org; Wed, 17 Jun 2015 08:58:17 -0400 Original-Received: from ironport2-out.teksavvy.com ([206.248.154.181]:24599) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Z5Cux-00007D-NL for emacs-devel@gnu.org; Wed, 17 Jun 2015 08:58:11 -0400 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: A0DaFgA731xV/1enxEVcgxCEAoVVwgOBCAQCAoE8PBEBAQEBAQEBgQpBBYNdAQEDAVYREhALNBIUGA0kiDcIzyMBAQEHAgEfizqFBQeELQWzP4FFI4QUIoJ4AQEB X-IPAS-Result: A0DaFgA731xV/1enxEVcgxCEAoVVwgOBCAQCAoE8PBEBAQEBAQEBgQpBBYNdAQEDAVYREhALNBIUGA0kiDcIzyMBAQEHAgEfizqFBQeELQWzP4FFI4QUIoJ4AQEB X-IronPort-AV: E=Sophos;i="5.13,465,1427774400"; d="scan'208";a="127011801" Original-Received: from 69-196-167-87.dsl.teksavvy.com (HELO ceviche.home) ([69.196.167.87]) by ironport2-out.teksavvy.com with ESMTP/TLS/DHE-RSA-AES256-SHA; 17 Jun 2015 08:58:11 -0400 Original-Received: by ceviche.home (Postfix, from userid 20848) id 13A496614A; Wed, 17 Jun 2015 08:58:10 -0400 (EDT) In-Reply-To: (Stefan Monnier's message of "Tue, 16 Jun 2015 20:41:54 -0400") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.0.50 (gnu/linux) X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 206.248.154.181 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:187241 Archived-At: >> > 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 :-( Hmm.. actually I guess we could try to catch the macro-expansion error in the list-branch (when the MAP expression is not an lvalue) and still generate the code for the other branches. Stefan