From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Juri Linkov Newsgroups: gmane.emacs.bugs Subject: bug#75170: add-to-alist: new function Date: Sun, 29 Dec 2024 09:54:02 +0200 Organization: LINKOV.NET Message-ID: <87h66m3ox1.fsf@mail.linkov.net> References: <878qrzm4sb.fsf@gnu.org> <874j2nm1zn.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="3913"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/31.0.50 (x86_64-pc-linux-gnu) Cc: 75170@debbugs.gnu.org To: Roland Winkler Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sun Dec 29 09:00:19 2024 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1tRoDi-0000ud-W9 for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 29 Dec 2024 09:00:19 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tRoDW-0006uk-KG; Sun, 29 Dec 2024 03:00:07 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1tRoDT-0006tD-8T for bug-gnu-emacs@gnu.org; Sun, 29 Dec 2024 03:00:03 -0500 Original-Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1tRoDS-0008QM-U8 for bug-gnu-emacs@gnu.org; Sun, 29 Dec 2024 03:00:02 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=debbugs.gnu.org; s=debbugs-gnu-org; h=MIME-Version:Date:References:In-Reply-To:From:To:Subject; bh=IvpbKEniWkeKjGf5B1gbU+RxB0k/SdORv2hjKd4d3pc=; b=BjMM6/rCbaksWBUa+BHQxjeNqkajbm3j38sVtlcFu4M/95U/SYOnGh56Os+pwx/lJnd9chJkL/+8Pi/xK83pkCY67lSLrXhEoxG9ysv2HOCkdoEcknMP+rNdMjnVKVNNrGAtzuzYDYx9cOBNOarz3qLpPEgBVPW+Pwu5mZoOMLTWQG4JwHCEnlx9VxYA9LiIexXp258K+u4FSYB2ceh+5vPAclOv7zNvzfVO11ylcN9D/uV3PTivDtZQSBN7Yt7TV64yLxlxSIzo8FB++LY08oSGQG4m3PQyOXB1zndUHlLPFM8exTF5avTeICWx0x4lVul9s3D+gLx94AIG35QkaA==; Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1tRoDS-0000pP-NB for bug-gnu-emacs@gnu.org; Sun, 29 Dec 2024 03:00:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Juri Linkov Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 29 Dec 2024 08:00:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 75170 X-GNU-PR-Package: emacs Original-Received: via spool by 75170-submit@debbugs.gnu.org id=B75170.17354591493060 (code B ref 75170); Sun, 29 Dec 2024 08:00:02 +0000 Original-Received: (at 75170) by debbugs.gnu.org; 29 Dec 2024 07:59:09 +0000 Original-Received: from localhost ([127.0.0.1]:53644 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tRoCa-0000nH-Kb for submit@debbugs.gnu.org; Sun, 29 Dec 2024 02:59:08 -0500 Original-Received: from relay2-d.mail.gandi.net ([217.70.183.194]:55083) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tRoCY-0000mk-0X for 75170@debbugs.gnu.org; Sun, 29 Dec 2024 02:59:06 -0500 Original-Received: by mail.gandi.net (Postfix) with ESMTPSA id 7C82340002; Sun, 29 Dec 2024 07:58:36 +0000 (UTC) In-Reply-To: <874j2nm1zn.fsf@gnu.org> (Roland Winkler's message of "Sun, 29 Dec 2024 00:34:20 -0600") X-GND-Sasl: juri@linkov.net X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:297937 Archived-At: >>> Here's a handy function I'd like to see added to Emacs 21: >>> add-to-alist. > > I forgot to say: I could not find any follow-up or discussion of > Stephen's proposal > > https://lists.gnu.org/archive/html/bug-gnu-emacs/2001-02/msg00066.html > > I know about the very different approaches underlying the function > add-to-list compared to the macro pushnew. I followed the design of > add-to-list as I am thinking (like Stephen) of similar use cases. While indeed there were no responses to the original message, other proposed implementations can be found as well, e.g. https://lists.gnu.org/archive/html/bug-gnu-emacs/2002-04/msg00669.html https://lists.gnu.org/archive/html/bug-gnu-emacs/2002-04/msg00671.html Also there are threads discussing 'org--tag-add-to-alist' and 'package--append-to-alist' (renamed from 'package--add-to-alist').