From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.ciao.gmane.io!not-for-mail From: Ivan Andrus Newsgroups: gmane.emacs.bugs Subject: bug#40692: 28.0.50; Constant list modified inside function Date: Fri, 17 Apr 2020 21:05:31 -0600 Message-ID: References: <57990C74-5CA1-42E6-83EC-7F6858AFD0E7@gmail.com> Mime-Version: 1.0 (Mac OS X Mail 12.4 \(3445.104.14\)) Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="ciao.gmane.io:159.69.161.202"; logging-data="106252"; mail-complaints-to="usenet@ciao.gmane.io" To: 40692@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sat Apr 18 05:06:30 2020 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1jPdoL-000RYD-G2 for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 18 Apr 2020 05:06:29 +0200 Original-Received: from localhost ([::1]:54272 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jPdoK-00018h-5M for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 17 Apr 2020 23:06:28 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:53710) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jPdnx-00018I-VV for bug-gnu-emacs@gnu.org; Fri, 17 Apr 2020 23:06:07 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1jPdnu-0006xU-UX for bug-gnu-emacs@gnu.org; Fri, 17 Apr 2020 23:06:04 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:58599) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1jPdnt-0006w4-NM for bug-gnu-emacs@gnu.org; Fri, 17 Apr 2020 23:06:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1jPdnt-0002Xn-IV for bug-gnu-emacs@gnu.org; Fri, 17 Apr 2020 23:06:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Ivan Andrus Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 18 Apr 2020 03:06:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 40692 X-GNU-PR-Package: emacs X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.15871791429753 (code B ref -1); Sat, 18 Apr 2020 03:06:01 +0000 Original-Received: (at submit) by debbugs.gnu.org; 18 Apr 2020 03:05:42 +0000 Original-Received: from localhost ([127.0.0.1]:41912 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jPdna-0002XD-2J for submit@debbugs.gnu.org; Fri, 17 Apr 2020 23:05:42 -0400 Original-Received: from lists.gnu.org ([209.51.188.17]:35140) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jPdnZ-0002X7-1a for submit@debbugs.gnu.org; Fri, 17 Apr 2020 23:05:41 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:53052) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jPdnX-00010W-OI for bug-gnu-emacs@gnu.org; Fri, 17 Apr 2020 23:05:40 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1jPdnW-0005D5-Fk for bug-gnu-emacs@gnu.org; Fri, 17 Apr 2020 23:05:39 -0400 Original-Received: from mail-il1-x134.google.com ([2607:f8b0:4864:20::134]:34318) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1jPdnR-00055H-PR for bug-gnu-emacs@gnu.org; Fri, 17 Apr 2020 23:05:34 -0400 Original-Received: by mail-il1-x134.google.com with SMTP id t4so4258102ilp.1 for ; Fri, 17 Apr 2020 20:05:33 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:content-transfer-encoding:mime-version:subject:date:references :to:in-reply-to:message-id; bh=ckP+0nvTK8czI0Dpif808N14OOt/yb6vPkSg/V9Yo6Q=; b=t33vJqV7cwtxRi363EZFPCFLej9lcqNG4z5aUD6Jl8W4QJdYjqpEZzVcrEe9PVBq5l OkHD7ecYdej1U36YIcYzr8H8TZ+4Jz/Bjg9qY59KZsewQWQWN8wKEMH6zPAV43nZeUZA 6P8QmQMWUMNdPr1EjLa5ZBIyJqb0cvaW2OecmgNVg4i6A9Yv2ioKtr9N8HZuFqO46DAs eHNh+ACIcNaqLxtIzX+oTuv9KFytwwhsUUu7ocOjNHLa4fBhhLg677KpDgreLi5nbfqm 10vvN2sSEZdTzh8OOKm5/AT/lF22ejeyglVxPCHIYqv1eE0ZS42wfPWPzJLgaQggyo0q OffQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:content-transfer-encoding:mime-version :subject:date:references:to:in-reply-to:message-id; bh=ckP+0nvTK8czI0Dpif808N14OOt/yb6vPkSg/V9Yo6Q=; b=VIWkTxIxPDgdvj+ACRmzie/gzRkdObfVVr8KnilowyKRSxI/Fng8jSlZsh+lE60acK naN6UzN8/vz/iVERxsEMMGU0ewdL7rtAYT9ztgzdLzXH4Q95YmAQpoT3s5dRwAzAsnq+ Umg7+cjyxvY2cO7wsUMwcY7pZVDNBApaIb/nj+EzIqV4bnSemNuYQMBkiMn/nk2KloTM 9jOJB15BWol4O26eqMwELidRqlFmCovS0p0qTvZdKFQxTEXc+jmT5nxNUmbw9/E8USna WFKcz19J1C8OGgR3rMmZgYXquwgNg333WvIVyRfJ1zuYvkcg8KVnPg9Fir7dps+3QMbK 7W4g== X-Gm-Message-State: AGi0Pub/0OsA63dH/Xj0y9ZrBuu1RpLr9JKucJgzNoBQuhkxC2nj58fH o2hLAL31susya4qD3xpcfcO2T98bURo= X-Google-Smtp-Source: APiQypIOj6AkYYyyvtjhNXa6RCFYWrkGd5Dv+remkuMUe+0+rxp3wFsOL/ceN01q34Xupr+j136ixg== X-Received: by 2002:a92:8bd1:: with SMTP id i200mr6421446ild.46.1587179132882; Fri, 17 Apr 2020 20:05:32 -0700 (PDT) Original-Received: from [192.150.23.4] (67-2-50-168.slkc.qwest.net. [67.2.50.168]) by smtp.gmail.com with ESMTPSA id h10sm4638049ils.24.2020.04.17.20.05.31 for (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Fri, 17 Apr 2020 20:05:32 -0700 (PDT) In-Reply-To: <57990C74-5CA1-42E6-83EC-7F6858AFD0E7@gmail.com> X-Mailer: Apple Mail (2.3445.104.14) X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. 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: 209.51.188.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-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:178548 Archived-At: On Apr 17, 2020, at 5:45 PM, Ivan Andrus wrote: >=20 > I believe this is the root cause of a bug in magit/forge = https://github.com/magit/forge/issues/267 in which all subsequent pull = requests created have the same name. The maintainer of magit/forge = (tarsius) was unable to reproduce that bug, so I tried my hand at = creating a minimal test case, and I was able to get it down to this. >=20 > Now, I understand reference semantics of lists in general, but it = seems like this should be different. If this behavior is intentional, = what's the best way to for creation of a new list every time so that = functions using the alist don't have to worry about not changing the = list? I tracked down the function doing the actual changing: = json-encode-alist. I filed = https://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D40693 =20 I still find the behavior here confusing, but I expect it will be = considered expected behavior. -Ivan=