forked from colonelpanic/dotfiles
Fix org-archive-if to not skip neighboring completed tasks
This commit is contained in:
parent
147a24fb61
commit
bb7fbf9c4e
@ -756,7 +756,10 @@ The current directory is assumed to be the project's root otherwise."
|
|||||||
|
|
||||||
(defun org-archive-if (condition-function)
|
(defun org-archive-if (condition-function)
|
||||||
(if (funcall 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 ()
|
(defun org-archive-if-completed ()
|
||||||
(interactive)
|
(interactive)
|
||||||
|
Loading…
Reference in New Issue
Block a user