From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Nicolas Petton Newsgroups: gmane.emacs.bugs Subject: bug#23105: 25.0.92; map-put does not change its argument MAP Date: Thu, 24 Mar 2016 17:39:30 +0100 Message-ID: <87fuvfomnx.fsf@petton.fr> References: <87y4976f8y.fsf@web.de> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha256; protocol="application/pgp-signature" X-Trace: ger.gmane.org 1458837843 1215 80.91.229.3 (24 Mar 2016 16:44:03 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 24 Mar 2016 16:44:03 +0000 (UTC) Cc: 23105@debbugs.gnu.org To: Michael Heerdegen , Sho Takemori Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Thu Mar 24 17:43:47 2016 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 1aj8MM-0004Sr-M2 for geb-bug-gnu-emacs@m.gmane.org; Thu, 24 Mar 2016 17:43:46 +0100 Original-Received: from localhost ([::1]:51837 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aj8MM-0008GO-0l for geb-bug-gnu-emacs@m.gmane.org; Thu, 24 Mar 2016 12:43:46 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:60914) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aj8Io-0001yF-4f for bug-gnu-emacs@gnu.org; Thu, 24 Mar 2016 12:40:06 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aj8Ik-0001c9-Sm for bug-gnu-emacs@gnu.org; Thu, 24 Mar 2016 12:40:06 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:39267) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aj8Ik-0001bv-M1 for bug-gnu-emacs@gnu.org; Thu, 24 Mar 2016 12:40:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1aj8Ik-000119-CJ for bug-gnu-emacs@gnu.org; Thu, 24 Mar 2016 12:40:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Nicolas Petton Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 24 Mar 2016 16:40:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 23105 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 23105-submit@debbugs.gnu.org id=B23105.14588375733866 (code B ref 23105); Thu, 24 Mar 2016 16:40:02 +0000 Original-Received: (at 23105) by debbugs.gnu.org; 24 Mar 2016 16:39:33 +0000 Original-Received: from localhost ([127.0.0.1]:36394 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1aj8IH-00010H-Km for submit@debbugs.gnu.org; Thu, 24 Mar 2016 12:39:33 -0400 Original-Received: from out1-smtp.messagingengine.com ([66.111.4.25]:47964) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1aj8IG-000109-7p for 23105@debbugs.gnu.org; Thu, 24 Mar 2016 12:39:32 -0400 Original-Received: from compute5.internal (compute5.nyi.internal [10.202.2.45]) by mailout.nyi.internal (Postfix) with ESMTP id 23A972137D for <23105@debbugs.gnu.org>; Thu, 24 Mar 2016 12:39:32 -0400 (EDT) Original-Received: from frontend1 ([10.202.2.160]) by compute5.internal (MEProxy); Thu, 24 Mar 2016 12:39:32 -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=SIYcCDHYBT18Br6L9AEAoIJawcQ=; b=ahbj4 T9awskqP1ftqS+3KaEfblqvNgbdFJCjYIHTtLszPqzsaRyH+HquX2ZQZ2zRNhycg W9DMmlHHd37zy2RVTgZw5Tw+Qc35LqGd4cdzqi17EyaN9lWdiizP4tRVi2tGiJZT w1RVF0Vf7Z8RC3iGNJptZdqCO9Bij8nlFVOetc= X-Sasl-enc: MFL2dH0tYd5s37wYAGfU7uQ7ot+So8VioOd8VMwJor/2 1458837571 Original-Received: from blueberry (89-156-196-194.rev.numericable.fr [89.156.196.194]) by mail.messagingengine.com (Postfix) with ESMTPA id 59536C0001B; Thu, 24 Mar 2016 12:39:31 -0400 (EDT) In-Reply-To: <87y4976f8y.fsf@web.de> User-Agent: Notmuch/0.21 (http://notmuchmail.org) Emacs/25.1.50.1 (x86_64-unknown-linux-gnu) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 208.118.235.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:115447 Archived-At: --=-=-= Content-Type: text/plain Michael Heerdegen writes: > Sho Takemori writes: > >> By expanding map-put, I found that it returns a new list if "m" is a >> list and the key is not in "m". > > Indeed, good catch. > > The implementation of `map-put' is wrong: it binds the evaluated place > expression to a new symbol and uses that symbol as place to operate on. > > The intention presumably was to avoid code duplication in the macro > expansion - which is good - but it fails to change the original place. Indeed, it is wrong. I will have a look at the issue. Nico --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 Comment: GPGTools - http://gpgtools.org iQEcBAEBCAAGBQJW9BhCAAoJECM1h6R8IHkQmzIH/iMykV6F5e6yMZWsb0PaIJLI 25Vdeiy7lNs3Q8JxTORytfMHUti0n9IIhTePyv7fUzTdYvtEub/GIix5Sj8QlciK LtgUTAJP5rbNK1pIyM+xpRbF01oAg8z+1Liwt3DJXPFt3PCNK+9sW6TPP4Drumoc CqeuYAnDO3VqaPlr9gAHPpZMTmK9hbN4sm5M6INrt94Kp2zAT57jIZxRtA/oE8Ez n11LmCHPzJAfi12VfwBdzA2BC4eVJsdXKdU8dgjSshcM/0Tu8HDv+9OhewH17oie AKDsRYnOJshWCdaMmwTOJrVWaAkMiHrBm8v/6PCR/pYpxh1ESwk9XNDqkv9bUw4= =xhhx -----END PGP SIGNATURE----- --=-=-=--