stgit.el: Prevent stgit-applied-patches from moving point
authorGustav Hållberg <gustav@virtutech.com>
Thu, 14 Jan 2010 13:46:54 +0000 (14:46 +0100)
committerKarl Wiberg <kha@treskal.com>
Fri, 22 Jan 2010 13:58:34 +0000 (14:58 +0100)
This stops stgit-diff-range from moving point.

Signed-off-by: Gustav Hållberg <gustav@virtutech.com>
Signed-off-by: Karl Wiberg <kha@treskal.com>
contrib/stgit.el

index 56de515..43ee8b4 100644 (file)
@@ -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))