[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#21268: 24.4; request: add-several-to-list
From: |
Michael Hoffman |
Subject: |
bug#21268: 24.4; request: add-several-to-list |
Date: |
Sat, 15 Aug 2015 14:26:57 -0400 |
User-agent: |
Mozilla/5.0 (Windows NT 6.1; WOW64; rv:31.0) Gecko/20100101 Thunderbird/31.5.0 |
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.
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- bug#21268: 24.4; request: add-several-to-list,
Michael Hoffman <=