[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Replacement for `aput' from obsolete assoc.el?
From: |
Michael Heerdegen |
Subject: |
Replacement for `aput' from obsolete assoc.el? |
Date: |
Mon, 04 Jun 2012 18:46:49 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/24.1.50 (gnu/linux) |
Hello,
I make much use of `aput' from assoc.el in my .emacs. It lets me modify
the value associated with a certain key in an alist, where keys are
compared with `equal'.
I often saw people reinventing this function who didn't yet know
assoc.el. Now, assoc.el is obsolete. I'm not against that, since there
were not many useful things in assoc.el besides `aput'.
But I wonder if there is a simple replacement for `aput' in vanilla
Emacs? I don't think so, but maybe I have overseen something.
If not, can we add a new function `assoc-delete-all' to subr.el (which
would be like `assq-delete-all', but would compare keys with `equal'
instead of `eq')? Dunno why this function does not exist yet, but it
would ease handling alists e.g. if its keys are strings.
Thanks,
Michael.
- Replacement for `aput' from obsolete assoc.el?,
Michael Heerdegen <=
- Re: Replacement for `aput' from obsolete assoc.el?, Christopher Schmidt, 2012/06/04
- Re: Replacement for `aput' from obsolete assoc.el?, Stefan Monnier, 2012/06/05
- Re: Replacement for `aput' from obsolete assoc.el?, Michael Heerdegen, 2012/06/05
- Re: Replacement for `aput' from obsolete assoc.el?, Stefan Monnier, 2012/06/05
- Re: Replacement for `aput' from obsolete assoc.el?, Vitalie Spinu, 2012/06/08
- Re: Replacement for `aput' from obsolete assoc.el?, Stephen J. Turnbull, 2012/06/08
- Re: Replacement for `aput' from obsolete assoc.el?, Stefan Monnier, 2012/06/08
- Re: Replacement for `aput' from obsolete assoc.el?, Stephen J. Turnbull, 2012/06/09
- Re: Replacement for `aput' from obsolete assoc.el?, Andreas Schwab, 2012/06/09
- Re: Replacement for `aput' from obsolete assoc.el?, Thien-Thi Nguyen, 2012/06/09