GNU bug report logs - #21268
24.4; request: add-several-to-list

Previous Next

Package: emacs;

Reported by: Michael Hoffman <gmane3-hoffman <at> sneakemail.com>

Date: Sat, 15 Aug 2015 19:02:01 UTC

Severity: wishlist

Tags: wontfix

Found in version 24.4

Done: Lars Ingebrigtsen <larsi <at> gnus.org>

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 21268 in the body.
You can then email your comments to 21268 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-gnu-emacs <at> gnu.org:
bug#21268; Package emacs. (Sat, 15 Aug 2015 19:02:01 GMT) Full text and rfc822 format available.

Acknowledgement sent to Michael Hoffman <gmane3-hoffman <at> sneakemail.com>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs <at> gnu.org. (Sat, 15 Aug 2015 19:02:02 GMT) Full text and rfc822 format available.

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

From: Michael Hoffman <gmane3-hoffman <at> sneakemail.com>
To: bug-gnu-emacs <at> gnu.org
Subject: 24.4; request: add-several-to-list
Date: Sat, 15 Aug 2015 14:26:57 -0400
I would like to request the following function be added to subr.el:

(defun add-several-to-list (list-var &rest elements)
  "Add to LIST-VAR all ELEMENTS."
  (dolist (element (reverse elements))
    (add-to-list list-var element)))

This is useful in adding many items to configuration variables without
duplication, while keeping the same order, and avoiding repeated calls
to add-to-list.





Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#21268; Package emacs. (Thu, 01 Aug 2019 20:00:03 GMT) Full text and rfc822 format available.

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

From: Lars Ingebrigtsen <larsi <at> gnus.org>
To: Michael Hoffman <gmane3-hoffman <at> sneakemail.com>
Cc: 21268 <at> debbugs.gnu.org
Subject: Re: bug#21268: 24.4; request: add-several-to-list
Date: Thu, 01 Aug 2019 21:59:18 +0200
Michael Hoffman <gmane3-hoffman <at> sneakemail.com> writes:

> I would like to request the following function be added to subr.el:
>
> (defun add-several-to-list (list-var &rest elements)
>   "Add to LIST-VAR all ELEMENTS."
>   (dolist (element (reverse elements))
>     (add-to-list list-var element)))
>
> This is useful in adding many items to configuration variables without
> duplication, while keeping the same order, and avoiding repeated calls
> to add-to-list.

I think this seems like a too specialised function to be generally
useful.  And it's about the same thing as

(cl-delete-duplicates (append old new))

So I'm closing this bug report.

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no




Added tag(s) wontfix. Request was from Lars Ingebrigtsen <larsi <at> gnus.org> to control <at> debbugs.gnu.org. (Thu, 01 Aug 2019 20:00:04 GMT) Full text and rfc822 format available.

bug closed, send any further explanations to 21268 <at> debbugs.gnu.org and Michael Hoffman <gmane3-hoffman <at> sneakemail.com> Request was from Lars Ingebrigtsen <larsi <at> gnus.org> to control <at> debbugs.gnu.org. (Thu, 01 Aug 2019 20:00:05 GMT) Full text and rfc822 format available.

bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Fri, 30 Aug 2019 11:24:08 GMT) Full text and rfc822 format available.

This bug report was last modified 4 years and 212 days ago.

Previous Next


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