From cf14807ff346c19d9a566380819a961d093d30ae Mon Sep 17 00:00:00 2001 From: Syohei YOSHIDA Date: Mon, 11 Jul 2016 00:28:01 +0900 Subject: [PATCH] Correct macro name 'when-let' is a function which is introduced at Emacs 25. In this case, '-when-let' of dash macro should be used. --- origami.el | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/origami.el b/origami.el index f08cd0a..53eddfe 100644 --- a/origami.el +++ b/origami.el @@ -722,10 +722,10 @@ that is a sibling of the fold the point is currently in." (interactive (list (current-buffer) (point))) (-when-let (tree (origami-get-fold-tree buffer)) (-when-let (path (origami-fold-find-path-containing tree point)) - (when-let (c (-> (origami-fold-next-sibling (origami-fold-children - (origami-fold-parent path)) - (-last-item path)) - origami-fold-beg)) + (-when-let (c (-> (origami-fold-next-sibling (origami-fold-children + (origami-fold-parent path)) + (-last-item path)) + origami-fold-beg)) (goto-char c))))) (defun origami-backward-fold-same-level (buffer point)