emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[elpa] externals/dash 9e1a667 360/439: Do not map nodes on conses (be co


From: Phillip Lord
Subject: [elpa] externals/dash 9e1a667 360/439: Do not map nodes on conses (be consistent with tree map)
Date: Tue, 04 Aug 2015 20:30:27 +0000

branch: externals/dash
commit 9e1a667afc1eacecf79f9bd67c0282559405e801
Author: Matus Goljer <address@hidden>
Commit: Matus Goljer <address@hidden>

    Do not map nodes on conses (be consistent with tree map)
---
 dash.el |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/dash.el b/dash.el
index 0c04622..44eec0d 100644
--- a/dash.el
+++ b/dash.el
@@ -1906,7 +1906,8 @@ returns non-nil, apply FUN to this node and do not descend
 further."
   (if (funcall pred tree)
       (funcall fun tree)
-    (if (listp tree)
+    (if (and (listp tree)
+             (not (-cons-pair? tree)))
         (-map (lambda (x) (-tree-map-nodes pred fun x)) tree)
       tree)))
 



reply via email to

[Prev in Thread] Current Thread [Next in Thread]