From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.ciao.gmane.io!not-for-mail From: Richard Stallman Newsgroups: gmane.emacs.devel Subject: Re: [ELPA] New package: transient Date: Sun, 03 May 2020 23:07:15 -0400 Message-ID: References: <87368npxw4.fsf@bernoul.li> <87v9ljo5d0.fsf@bernoul.li> <87ftcnxu5m.fsf@bernoul.li> <83y2qezlpd.fsf@gnu.org> <83tv12zjx1.fsf@gnu.org> <20200429101755.GF24737@tuxteam.de> <838sicw4do.fsf@gnu.org> <83zhaqu89z.fsf@gnu.org> <83sggiu2p9.fsf@gnu.org> <83r1w2u20y.fsf@gnu.org> Reply-To: rms@gnu.org Content-Type: text/plain; charset=Utf-8 Injection-Info: ciao.gmane.io; posting-host="ciao.gmane.io:159.69.161.202"; logging-data="78376"; mail-complaints-to="usenet@ciao.gmane.io" Cc: tomas@tuxteam.de, eliz@gnu.org, emacs-devel@gnu.org To: Drew Adams Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Mon May 04 05:08:01 2020 Return-path: Envelope-to: ged-emacs-devel@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 1jVRSa-000KHR-Qr for ged-emacs-devel@m.gmane-mx.org; Mon, 04 May 2020 05:08:00 +0200 Original-Received: from localhost ([::1]:48358 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jVRSZ-0005ns-QV for ged-emacs-devel@m.gmane-mx.org; Sun, 03 May 2020 23:07:59 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:34412) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jVRRu-0004qs-8v for emacs-devel@gnu.org; Sun, 03 May 2020 23:07:18 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:43972) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jVRRt-0003OA-U2; Sun, 03 May 2020 23:07:17 -0400 Original-Received: from rms by fencepost.gnu.org with local (Exim 4.82) (envelope-from ) id 1jVRRr-0000sh-15; Sun, 03 May 2020 23:07:15 -0400 In-Reply-To: (message from Drew Adams on Sat, 2 May 2020 10:33:12 -0700 (PDT)) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.23 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-mx.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.io gmane.emacs.devel:248766 Archived-At: [[[ To any NSA and FBI agents reading my email: please consider ]]] [[[ whether defending the US Constitution against all enemies, ]]] [[[ foreign or domestic, requires you to follow Snowden's example. ]]] > What's an alist? It's a list. What's a (true) > list? It's a sequence. > `copy-sequence' (aka `copy-seq') also copies an > alist. 'copy-sequence' is usually not an adequate way to copy an alist. It copies the backbone but not the associations. When you modify the associations -- which you presumably intend to do -- the two copies will both be changed. To copy an alist properly, you need to use 'copy-alist', and that is why we added that function. -- Dr Richard Stallman Chief GNUisance of the GNU Project (https://gnu.org) Founder, Free Software Foundation (https://fsf.org) Internet Hall-of-Famer (https://internethalloffame.org)