From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Tassilo Horn Newsgroups: gmane.emacs.devel Subject: Adding assoc-delete-all / rassoc-delete-all Date: Thu, 17 Apr 2014 13:39:41 +0200 Message-ID: <87a9bkjibm.fsf@gnu.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1397734862 16979 80.91.229.3 (17 Apr 2014 11:41:02 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 17 Apr 2014 11:41:02 +0000 (UTC) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Apr 17 13:40:53 2014 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 1WakgV-0003BH-FQ for ged-emacs-devel@m.gmane.org; Thu, 17 Apr 2014 13:40:51 +0200 Original-Received: from localhost ([::1]:59883 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WakgU-0002SJ-VF for ged-emacs-devel@m.gmane.org; Thu, 17 Apr 2014 07:40:50 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:37629) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WakgJ-0002Mz-Rm for emacs-devel@gnu.org; Thu, 17 Apr 2014 07:40:47 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Wakg8-0000sv-TY for emacs-devel@gnu.org; Thu, 17 Apr 2014 07:40:39 -0400 Original-Received: from deliver.uni-koblenz.de ([141.26.64.15]:51953) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Wakg8-0000sH-Fl for emacs-devel@gnu.org; Thu, 17 Apr 2014 07:40:28 -0400 Original-Received: from localhost (localhost [127.0.0.1]) by deliver.uni-koblenz.de (Postfix) with ESMTP id 613521A8446 for ; Thu, 17 Apr 2014 13:40:27 +0200 (CEST) X-Virus-Scanned: amavisd-new at uni-koblenz.de Original-Received: from deliver.uni-koblenz.de ([127.0.0.1]) by localhost (deliver.uni-koblenz.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id D4LlUunFOG4x for ; Thu, 17 Apr 2014 13:40:27 +0200 (CEST) X-CHKRCPT: Envelopesender noch tsdh@gnu.org Original-Received: from thinkpad-t440p (dhcp84.uni-koblenz.de [141.26.71.84]) (using TLSv1 with cipher AES128-SHA (128/128 bits)) (No client certificate requested) by deliver.uni-koblenz.de (Postfix) with ESMTPSA id 1683D1A8442 for ; Thu, 17 Apr 2014 13:40:26 +0200 (CEST) Mail-Followup-To: emacs-devel@gnu.org User-Agent: Gnus/5.13001 (Ma Gnus v0.10) Emacs/24.4.50 (gnu/linux) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 141.26.64.15 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:171464 Archived-At: 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