Fix org-archive-if to not skip neighboring completed tasks

This commit is contained in:
Ivan Malison 2015-08-16 16:10:50 -07:00
parent 147a24fb61
commit bb7fbf9c4e

View File

@ -756,7 +756,10 @@ The current directory is assumed to be the project's root otherwise."
(defun org-archive-if (condition-function)
(if (funcall condition-function)
(org-archive-subtree)))
(let ((next-point-marker
(save-excursion (org-forward-heading-same-level 1) (point-marker))))
(org-archive-subtree)
(setq org-map-continue-from (marker-position next-point-marker)))))
(defun org-archive-if-completed ()
(interactive)