From 9aa61946b4c03610a4ac90b6df391aa2df9b0d36 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Gustav=20H=C3=A5llberg?= Date: Thu, 14 Jan 2010 14:46:54 +0100 Subject: [PATCH] stgit.el: Prevent stgit-applied-patches from moving point MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit This stops stgit-diff-range from moving point. Signed-off-by: Gustav HÃ¥llberg Signed-off-by: Karl Wiberg --- contrib/stgit.el | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/contrib/stgit.el b/contrib/stgit.el index 56de515..43ee8b4 100644 --- a/contrib/stgit.el +++ b/contrib/stgit.el @@ -1660,8 +1660,10 @@ If ONLY-PATCHES is not nil, exclude index and work tree." '(applied top) '(applied top index work))) result) - (ewoc-map (lambda (patch) (when (memq (stgit-patch->status patch) states) - (setq result (cons patch result)))) + (ewoc-map (lambda (patch) + (when (memq (stgit-patch->status patch) states) + (setq result (cons patch result))) + nil) stgit-ewoc) result)) -- 2.11.0