emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Adding assoc-delete-all / rassoc-delete-all


From: Tassilo Horn
Subject: Adding assoc-delete-all / rassoc-delete-all
Date: Thu, 17 Apr 2014 13:39:41 +0200
User-agent: Gnus/5.13001 (Ma Gnus v0.10) Emacs/24.4.50 (gnu/linux)

Hi all,

I've just got aware of `assq-delete-all' which could be a convenient
function to get rid of some entry in an alist.  However, if the alist
entries start with a string, you need to use something awkward like

  (assq-delete-all
   (car (assoc "Biber" TeX-command-list))
   TeX-command-list)

so that the string "Biber" is not only equal but identical.

So I'm voting for adding a function `assoc-delete-all' which is just
like `assq-delete-all' except that it does the comparison with `equal'
instead of `eq'.  Then the above becomes just

  (assoc-delete-all "Biber" TeX-command-list)

For symmetry, I'd also add `rassoc-delete-all' to the existing
`rassq-delete-all'.

Would that be ok?

Bye,
Tassilo



reply via email to

[Prev in Thread] Current Thread [Next in Thread]