From: Gustav HÃ¥llberg Date: Thu, 14 Jan 2010 13:46:54 +0000 (+0100) Subject: stgit.el: Prevent stgit-applied-patches from moving point X-Git-Url: https://git.distorted.org.uk/~mdw/stgit/commitdiff_plain/9aa61946b4c03610a4ac90b6df391aa2df9b0d36 stgit.el: Prevent stgit-applied-patches from moving point This stops stgit-diff-range from moving point. Signed-off-by: Gustav HÃ¥llberg Signed-off-by: Karl Wiberg --- 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))