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


Message #34 received at 75170 <at> debbugs.gnu.org (full text, mbox):

From: Michael Heerdegen <michael_heerdegen <at> web.de>
To: Roland Winkler <winkler <at> gnu.org>
Cc: Eli Zaretskii <eliz <at> gnu.org>, 75170 <at> debbugs.gnu.org
Subject: Re: bug#75170: add-to-alist: new function
Date: Sun, 19 Jan 2025 03:20:42 +0100
Roland Winkler <winkler <at> gnu.org> writes:

> Is there a simple way to accomplish this in other ways (a way that we
> recommend for users in their init file if they do not want to use
> customize like me)?

We indeed recommend using (setf (alist-get ...)), IIUC this is _exactly_
what you were looking for.  Your patch contains an implementation of the
setter of `alist-get', and we would add a duplication.

If you did not find this thing, maybe we need to add a hint to some
chapter of the manual?


Michael.




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.