|
| From: | Bastien |
| Subject: | Re: [O] Bug: "SCHEDULED: " positioning is fragile [7.8.06 (release_7.8.06.181.ga481)] |
| Date: | Tue, 10 Apr 2012 16:12:58 +0200 |
| User-agent: | Gnus/5.13 (Gnus v5.13) Emacs/24.0.94 (gnu/linux) |
Hi Rainer,
Rainer Stengele <address@hidden> writes:
> why does the function fire in this case:
>
> ***** test
> ****** TODO task
> SCHEDULED: <2012-04-10 Di>
Because it was buggy -- here is a better version (also updated on Worg)
(defun org-check-misformatted-subtree ()
"Check misformatted entries in the current buffer."
(interactive)
(show-all)
(org-map-entries
(lambda ()
(when (and (move-beginning-of-line 2)
(not (looking-at org-heading-regexp)))
(if (or (and (org-get-scheduled-time (point))
(not (looking-at (concat "^.*" org-scheduled-regexp))))
(and (org-get-deadline-time (point))
(not (looking-at (concat "^.*" org-deadline-regexp)))))
(when (y-or-n-p "Fix this subtree? ")
(message "Call the function again when you're done fixing this
subtree.")
(recursive-edit))
(message "All subtrees checked."))))))
Thanks for testing!
--
Bastien
| [Prev in Thread] | Current Thread | [Next in Thread] |