GNU bug report logs - #75170
add-to-alist: new function

Previous Next

Package: emacs;

Reported by: Roland Winkler <winkler <at> gnu.org>

Date: Sun, 29 Dec 2024 05:35:02 UTC

Severity: wishlist

Full log


View this message in rfc822 format

From: Drew Adams <drew.adams <at> oracle.com>
To: Stephen Gildea <stepheng+emacs <at> gildea.com>, "75170 <at> debbugs.gnu.org" <75170 <at> debbugs.gnu.org>
Subject: bug#75170: add-to-alist: new function
Date: Tue, 21 Jan 2025 22:53:11 +0000
> The test for presence of the car of ELT-CONS is done
> with `equal'."
>   (assoc (car elt-cons) (symbol-value alist-var))

Seems like you should consider adding an optional
TESTFN arg for the equality predicate.  There's a
reason Lisp has had both `assq' and `assoc' since
forever.  And there's a reason that `assoc' itself
later began to accept such an optional arg.




This bug report was last modified 142 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.