[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/dash 19fbc24 426/426: Fix anaphoric -spice-list macro
From: |
Phillip Lord |
Subject: |
[elpa] externals/dash 19fbc24 426/426: Fix anaphoric -spice-list macro |
Date: |
Tue, 04 Aug 2015 19:39:23 +0000 |
branch: externals/dash
commit 19fbc24559415a71fafc96812322e7178d437157
Author: Matus Goljer <address@hidden>
Commit: Matus Goljer <address@hidden>
Fix anaphoric -spice-list macro
---
dash.el | 2 +-
dev/examples.el | 3 ++-
2 files changed, 3 insertions(+), 2 deletions(-)
diff --git a/dash.el b/dash.el
index 2c96cf9..fa4057c 100644
--- a/dash.el
+++ b/dash.el
@@ -439,7 +439,7 @@ See also: `-splice-list', `-insert-at'"
See also: `-splice', `-insert-at'"
(-splice pred (lambda (_) new-list) list))
-(defun --splice-list (pred new-list list)
+(defmacro --splice-list (pred new-list list)
"Anaphoric form of `-splice-list'."
`(-splice-list (lambda (it) ,pred) ,new-list ,list))
diff --git a/dev/examples.el b/dev/examples.el
index 21e8ba5..cd00df5 100644
--- a/dev/examples.el
+++ b/dev/examples.el
@@ -70,7 +70,8 @@ new list."
(defexamples -splice-list
(-splice-list 'keywordp '(a b c) '(1 :foo 2)) => '(1 a b c 2)
- (-splice-list 'keywordp nil '(1 :foo 2)) => '(1 2))
+ (-splice-list 'keywordp nil '(1 :foo 2)) => '(1 2)
+ (--splice-list (keywordp it) '(a b c) '(1 :foo 2)) => '(1 a b c 2))
(defexamples -mapcat
(-mapcat 'list '(1 2 3)) => '(1 2 3)
- [elpa] externals/dash 5219ac0 422/426: [-let] Eliminate useless re-binding of symbols when sources are immutable, (continued)
- [elpa] externals/dash 5219ac0 422/426: [-let] Eliminate useless re-binding of symbols when sources are immutable, Phillip Lord, 2015/08/04
- [elpa] externals/dash a06e66e 382/426: Add test for clean byte compilation, Phillip Lord, 2015/08/04
- [elpa] externals/dash 43dcd37 295/426: Only eval NUM in --dotimes once, Phillip Lord, 2015/08/04
- [elpa] externals/dash 4ecfea6 296/426: Merge pull request #79 from Fuco1/debug-forms, Phillip Lord, 2015/08/04
- [elpa] externals/dash 624c501 306/426: Add `-table` and `-table-flat`, Phillip Lord, 2015/08/04
- [elpa] externals/dash cf7ca23 415/426: [Fix #97] Add -remove-item, Phillip Lord, 2015/08/04
- [elpa] externals/dash 2eefbec 386/426: Don't use an inline comment on a line of its own, Phillip Lord, 2015/08/04
- [elpa] externals/dash bbc1d9c 309/426: `--each-while` should also expose `it-index`, Phillip Lord, 2015/08/04
- [elpa] externals/dash 6bdcfa5 286/426: Add -split-on, -split-when, Phillip Lord, 2015/08/04
- [elpa] externals/dash bd85b7c 302/426: Make -zip support infinite (circular) lists, Phillip Lord, 2015/08/04
- [elpa] externals/dash 19fbc24 426/426: Fix anaphoric -spice-list macro,
Phillip Lord <=
- [elpa] externals/dash 36b7f49 419/426: [-let] Reuse the ignore-place predicate, Phillip Lord, 2015/08/04
- [elpa] externals/dash 703bb59 297/426: Convert -zip to support variable-length arguments, Phillip Lord, 2015/08/04
- [elpa] externals/dash 3132ae0 314/426: Alias -tail to nthcdr, Phillip Lord, 2015/08/04
- [elpa] externals/dash 4098ea0 285/426: Merge pull request #74 from YoungFrog/dashfontifix, Phillip Lord, 2015/08/04
- [elpa] externals/dash 0c045f2 369/426: Highlight with el instead of cl, Phillip Lord, 2015/08/04
- [elpa] externals/dash 5086d24 293/426: Merge pull request #60 from rejeep/cask, Phillip Lord, 2015/08/04
- [elpa] externals/dash 1fde888 407/426: Merge pull request #125 from wasamasa/feature-some, Phillip Lord, 2015/08/04
- [elpa] externals/dash 51a07b1 408/426: Merge pull request #127 from occidens/fixfn, Phillip Lord, 2015/08/04
- [elpa] externals/dash ffa37bf 425/426: Merge pull request #129 from holomorph/docs, Phillip Lord, 2015/08/04
- [elpa] externals/dash 63ec298 308/426: Merge pull request #92 from Fuco1/outer-product, Phillip Lord, 2015/08/04