From: "Stephen J. Turnbull" <stephen@xemacs.org>
To: Vitalie Spinu <spinuvit@gmail.com>
Cc: Stefan Monnier <monnier@iro.umontreal.ca>, emacs-devel@gnu.org
Subject: Re: Replacement for `aput' from obsolete assoc.el?
Date: Sun, 10 Jun 2012 21:53:18 +0900 [thread overview]
Message-ID: <87k3zf8h1d.fsf@uwakimon.sk.tsukuba.ac.jp> (raw)
In-Reply-To: <87d358vhy6.fsf@gmail.com>
Vitalie Spinu writes:
> There is no way to associate multiple values at once. What is the
> canonical way to do that?
I don't see such a great need for it. The loop idiom you propose is
fine (except that I suppose in GNU Emacs you need to use `cl-loop', at
least in core). In XEmacs, the canonical destructive idiom is
(setq plist (canonicalize-lax-plist (nconc plist-new plist)))
which gives preference to entries in plist-new, and would be more
efficient (all of the functions are primitives implemented in C).
> I find reasonable that this sort of functionality be in the core for all
> available containers.
Reasonable, in some sense, yes. That probably would pass in Common
Lisp, but as you're probably aware Emacs Lisp prefers simplicity over
generality for generality's sake.
next prev parent reply other threads:[~2012-06-10 12:53 UTC|newest]
Thread overview: 19+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-06-04 16:46 Replacement for `aput' from obsolete assoc.el? Michael Heerdegen
2012-06-05 3:27 ` Christopher Schmidt
2012-06-05 17:43 ` Stefan Monnier
2012-06-05 19:31 ` Michael Heerdegen
2012-06-05 22:52 ` Stefan Monnier
2012-06-08 7:57 ` Vitalie Spinu
2012-06-08 12:39 ` Stephen J. Turnbull
2012-06-08 19:50 ` Stefan Monnier
2012-06-09 8:59 ` Stephen J. Turnbull
2012-06-09 9:46 ` Andreas Schwab
2012-06-09 10:13 ` Thien-Thi Nguyen
2012-06-10 12:11 ` Stephen J. Turnbull
2012-06-09 16:11 ` Drew Adams
2012-06-09 16:17 ` Drew Adams
2012-06-09 11:32 ` Vitalie Spinu
2012-06-10 12:53 ` Stephen J. Turnbull [this message]
2012-06-09 16:10 ` Drew Adams
2012-06-10 0:52 ` Stefan Monnier
2012-06-10 13:48 ` Stephen J. Turnbull
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87k3zf8h1d.fsf@uwakimon.sk.tsukuba.ac.jp \
--to=stephen@xemacs.org \
--cc=emacs-devel@gnu.org \
--cc=monnier@iro.umontreal.ca \
--cc=spinuvit@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.