[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/dash 0f13e5e 246/316: Prefer push over add-to-list
From: |
ELPA Syncer |
Subject: |
[elpa] externals/dash 0f13e5e 246/316: Prefer push over add-to-list |
Date: |
Mon, 15 Feb 2021 15:58:10 -0500 (EST) |
branch: externals/dash
commit 0f13e5e0bc835719ea425ae4714ac6c2d12cc912
Author: Basil L. Contovounesios <contovob@tcd.ie>
Commit: Basil L. Contovounesios <contovob@tcd.ie>
Prefer push over add-to-list
* dev/examples-to-docs.el (defexamples, def-example-group):
* dev/examples-to-info.el (defexamples, def-example-group): Replace
unneeded add-to-list with push.
---
dev/examples-to-docs.el | 14 +++++++-------
dev/examples-to-info.el | 14 +++++++-------
2 files changed, 14 insertions(+), 14 deletions(-)
diff --git a/dev/examples-to-docs.el b/dev/examples-to-docs.el
index 0d30aee..e93a3e9 100644
--- a/dev/examples-to-docs.el
+++ b/dev/examples-to-docs.el
@@ -66,17 +66,17 @@ FUNCTION may reference an elisp function, alias, macro or a
subr."
(help-function-arglist function-symbol))))
(defmacro defexamples (cmd &rest examples)
- `(add-to-list 'functions (list
- ',cmd
- (docs--signature ',cmd)
- (documentation ',cmd)
- (-map 'example-to-string (-partition 3
',examples)))))
+ `(push (list ',cmd
+ (docs--signature ',cmd)
+ (documentation ',cmd)
+ (mapcar #'example-to-string (-partition 3 ',examples)))
+ functions))
(defmacro def-example-group (group desc &rest examples)
`(progn
- (add-to-list 'functions ,(concat "### " group))
+ (push ,(concat "### " group) functions)
(when ,desc
- (add-to-list 'functions ,desc))
+ (push ,desc functions))
,@examples))
(defun quote-and-downcase (string)
diff --git a/dev/examples-to-info.el b/dev/examples-to-info.el
index a011a41..e8b32bd 100644
--- a/dev/examples-to-info.el
+++ b/dev/examples-to-info.el
@@ -70,17 +70,17 @@ FUNCTION may reference an elisp function, alias, macro or a
subr."
(help-function-arglist function-symbol))))
(defmacro defexamples (cmd &rest examples)
- `(add-to-list 'functions (list
- ',cmd
- (docs--signature ',cmd)
- (documentation ',cmd)
- (-map 'example-to-string (-partition 3
',examples)))))
+ `(push (list ',cmd
+ (docs--signature ',cmd)
+ (documentation ',cmd)
+ (mapcar #'example-to-string (-partition 3 ',examples)))
+ functions))
(defmacro def-example-group (group desc &rest examples)
`(progn
- (add-to-list 'functions ,(concat "### " group))
+ (push ,(concat "### " group) functions)
(when ,desc
- (add-to-list 'functions ,desc))
+ (push ,desc functions))
,@examples))
(defun quote-and-downcase (string)
- [elpa] externals/dash 47114ca 290/316: Make manual generation more consistent with README, (continued)
- [elpa] externals/dash 47114ca 290/316: Make manual generation more consistent with README, ELPA Syncer, 2021/02/15
- [elpa] externals/dash 3fa27c4 295/316: Make README's def-example-group more like manual's, ELPA Syncer, 2021/02/15
- [elpa] externals/dash 4043f4e 305/316: Consolidate duplicated change logs in new NEWS.md, ELPA Syncer, 2021/02/15
- [elpa] externals/dash 51d81a5 308/316: Avoid using dash.el functions in macro bodies, ELPA Syncer, 2021/02/15
- [elpa] externals/dash 41b5681 310/316: Merge pull request #369 from blc/gut, ELPA Syncer, 2021/02/15
- [elpa] externals/dash cec8c0d 311/316: Rename approx-equal to more accurate approx=, ELPA Syncer, 2021/02/15
- [elpa] externals/dash 4d40317 313/316: Update list of contributors, ELPA Syncer, 2021/02/15
- [elpa] externals/dash be4e939 314/316: ; Fix recent whitespace change in dev/examples.el., ELPA Syncer, 2021/02/15
- [elpa] externals/dash 0e97578 316/316: Release dash 2.18.0 and dash-functional 1.3.0, ELPA Syncer, 2021/02/15
- [elpa] externals/dash d98f5a0 235/316: Update for -iota, ELPA Syncer, 2021/02/15
- [elpa] externals/dash 0f13e5e 246/316: Prefer push over add-to-list,
ELPA Syncer <=
- [elpa] externals/dash 9703eac 249/316: ; Fix Edebug spec in last change, ELPA Syncer, 2021/02/15
- [elpa] externals/dash 4fb9613 255/316: Avoid evaluating file-local variables, ELPA Syncer, 2021/02/15
- [elpa] externals/dash ff5ed7a 261/316: Extend -keep docs and tests, ELPA Syncer, 2021/02/15
- [elpa] externals/dash 5d8de45 262/316: ; Fix recent typo in -filter & -remove docstrings, ELPA Syncer, 2021/02/15
- [elpa] externals/dash 7fc72d9 263/316: Fix Markdown quoting, ELPA Syncer, 2021/02/15
- [elpa] externals/dash e5e5363 272/316: Merge pull request #367 from HKey/fix-handling-nil, ELPA Syncer, 2021/02/15
- [elpa] externals/dash 8bd2887 269/316: Move pre-commit.sh under dev/, ELPA Syncer, 2021/02/15
- [elpa] externals/dash 8599380 270/316: Optimize -is-prefix? and -is-suffix?, ELPA Syncer, 2021/02/15
- [elpa] externals/dash 5362be7 275/316: Use actual advertised function signature in manual, ELPA Syncer, 2021/02/15
- [elpa] externals/dash 926eb0b 280/316: Add forceful Makefile targets, ELPA Syncer, 2021/02/15