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: Eli Zaretskii <eliz <at> gnu.org>
To: Stefan Kangas <stefankangas <at> gmail.com>
Cc: 75170 <at> debbugs.gnu.org, rpluim <at> gmail.com, acorallo <at> gnu.org, winkler <at> gnu.org, monnier <at> gnu.org
Subject: bug#75170: add-to-alist: new function
Date: Tue, 21 Jan 2025 21:15:10 +0200
> From: Stefan Kangas <stefankangas <at> gmail.com>
> Date: Tue, 21 Jan 2025 10:47:13 -0800
> Cc: Roland Winkler <winkler <at> gnu.org>, Eli Zaretskii <eliz <at> gnu.org>, acorallo <at> gnu.org, 
> 	75170 <at> debbugs.gnu.org, Stefan Monnier <monnier <at> gnu.org>
> 
> So `map-put!` is not a good alternative to `add-to-alist`.  I don't
> think generalized variables are either, not for something intended for
> end-users and not developers (as `add-to-list` is).
> 
> What are we left with?  Maybe we should just add `add-to-alist`.

Can someone tell me again why add-to-list doesn't fit the bill of
being a tool easy for end-users?  I've been using it in my init files
to customize stuff like default-frame-alist since about forever.




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.