[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/dash 5d2a73c 07/14: [Fix #155] -is-suffix? no longer de
From: |
Phillip Lord |
Subject: |
[elpa] externals/dash 5d2a73c 07/14: [Fix #155] -is-suffix? no longer destroys input list. |
Date: |
Sun, 04 Oct 2015 12:01:01 +0000 |
branch: externals/dash
commit 5d2a73c0b364792e0f56c6db0a8595115fafe3d5
Author: Matus Goljer <address@hidden>
Commit: Matus Goljer <address@hidden>
[Fix #155] -is-suffix? no longer destroys input list.
---
dash.el | 2 +-
dev/examples.el | 5 ++++-
2 files changed, 5 insertions(+), 2 deletions(-)
diff --git a/dash.el b/dash.el
index 9a82064..26ef17f 100644
--- a/dash.el
+++ b/dash.el
@@ -1854,7 +1854,7 @@ Alias: `-is-prefix-p'"
"Return non-nil if SUFFIX is suffix of LIST.
Alias: `-is-suffix-p'"
- (-is-prefix? (nreverse suffix) (nreverse list)))
+ (-is-prefix? (reverse suffix) (reverse list)))
(defun -is-infix? (infix list)
"Return non-nil if INFIX is infix of LIST.
diff --git a/dev/examples.el b/dev/examples.el
index 8491ccb..5bd0bdc 100644
--- a/dev/examples.el
+++ b/dev/examples.el
@@ -381,7 +381,10 @@ new list."
(-is-suffix? '(3 4 5) '(1 2 3 4 5)) => t
(-is-suffix? '(1 2 3 4 5) '(3 4 5)) => nil
(-is-suffix? '(3 5) '(1 2 3 4 5)) => nil
- (-is-suffix? '(3 4 5) '(1 2 3 5)) => nil)
+ (-is-suffix? '(3 4 5) '(1 2 3 5)) => nil
+ (let ((l '(1 2 3)))
+ (list (-is-suffix? '(3) l)
+ l)) => '(t (1 2 3)))
(defexamples -is-infix?
(-is-infix? '(1 2 3) '(1 2 3 4 5)) => t
- [elpa] externals/dash updated (eadb265 -> fa90644), Phillip Lord, 2015/10/08
- [elpa] externals/dash ce3c2fe 01/14: Errant paren removed from -let documentation., Phillip Lord, 2015/10/08
- [elpa] externals/dash ffe72fb 08/14: Update documentation., Phillip Lord, 2015/10/08
- [elpa] externals/dash c8c6ea4 05/14: [Fix #154] Clarify that -flatten destroys all nils., Phillip Lord, 2015/10/08
- [elpa] externals/dash dbe2bf2 10/14: Merge pull request #160 from phillord/feature/gnu-elpa-support, Phillip Lord, 2015/10/08
- [elpa] externals/dash 3e2e0b5 03/14: Merge pull request #131 from phillord/fix/documentation-for-let, Phillip Lord, 2015/10/08
- [elpa] externals/dash fa90644 14/14: Release 2.12.0, Phillip Lord, 2015/10/08
- [elpa] externals/dash 8fa70c5 12/14: [Fix #101] Use faster hashtable implementation for -union., Phillip Lord, 2015/10/08
- [elpa] externals/dash 66cb6f5 09/14: Merge pull request #146 from holomorph/info-macros, Phillip Lord, 2015/10/08
- [elpa] externals/dash 5d2a73c 07/14: [Fix #155] -is-suffix? no longer destroys input list.,
Phillip Lord <=
- [elpa] externals/dash 91a2b14 13/14: [Fix #101] Fix reversed condition for hashtable -union., Phillip Lord, 2015/10/08
- [elpa] externals/dash 3ae7335 02/14: Indicate macros in generated info manual, Phillip Lord, 2015/10/08
- [elpa] externals/dash c6c2105 04/14: Add support for GNU ELPA., Phillip Lord, 2015/10/08
- [elpa] externals/dash 7e1c13e 06/14: Add Cam SaĆ¼l to the readme template as contributor., Phillip Lord, 2015/10/08
- [elpa] externals/dash 4acab5d 11/14: Use reverse instead of explicit iteration., Phillip Lord, 2015/10/08