From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Stephen J. Turnbull" Newsgroups: gmane.emacs.devel Subject: Re: Replacement for `aput' from obsolete assoc.el? Date: Sun, 10 Jun 2012 22:48:43 +0900 Message-ID: <87ipez8eh0.fsf@uwakimon.sk.tsukuba.ac.jp> References: <87txyrnhxi.fsf@web.de> <87oboytp45@ch.ristopher.com> <87haupwo6b.fsf@web.de> <871ulq44oj.fsf@gmail.com> <87pq9a7zab.fsf@uwakimon.sk.tsukuba.ac.jp> <87mx4c97za.fsf@uwakimon.sk.tsukuba.ac.jp> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 X-Trace: dough.gmane.org 1339336140 16163 80.91.229.3 (10 Jun 2012 13:49:00 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sun, 10 Jun 2012 13:49:00 +0000 (UTC) Cc: emacs-devel@gnu.org To: Stefan Monnier Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sun Jun 10 15:48:59 2012 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 1SdiVg-0007eH-Ra for ged-emacs-devel@m.gmane.org; Sun, 10 Jun 2012 15:48:52 +0200 Original-Received: from localhost ([::1]:43468 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SdiVg-0004bm-PR for ged-emacs-devel@m.gmane.org; Sun, 10 Jun 2012 09:48:52 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:38449) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SdiVe-0004bh-6U for emacs-devel@gnu.org; Sun, 10 Jun 2012 09:48:51 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SdiVc-0001wL-Kj for emacs-devel@gnu.org; Sun, 10 Jun 2012 09:48:49 -0400 Original-Received: from mgmt1.sk.tsukuba.ac.jp ([130.158.97.223]:38785) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SdiVc-0001vQ-Ak for emacs-devel@gnu.org; Sun, 10 Jun 2012 09:48:48 -0400 Original-Received: from uwakimon.sk.tsukuba.ac.jp (uwakimon.sk.tsukuba.ac.jp [130.158.99.156]) by mgmt1.sk.tsukuba.ac.jp (Postfix) with ESMTP id 572443FA0850; Sun, 10 Jun 2012 22:48:44 +0900 (JST) Original-Received: by uwakimon.sk.tsukuba.ac.jp (Postfix, from userid 1000) id 1E24B1A355D; Sun, 10 Jun 2012 22:48:44 +0900 (JST) In-Reply-To: X-Mailer: VM 8.0.12-devo-585 under 21.5 (beta31) "ginger" b4715fcbe001 XEmacs Lucid (x86_64-unknown-linux) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-Received-From: 130.158.97.223 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:150874 Archived-At: Stefan Monnier writes: > I didn't see much ion their which addresses the issue of setting > elements in plists (other than plist-put which doesn't seem to be > significantly better than (push (cons a b) c)). Multiple pair updates? As Drew points out, a plist can be treated like a stack in the same way as an alist. For lax plists, `nconc' works, and if you need a true plist, canonicalize-lax-plist is efficient. But really, it's a matter of style.