emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Orgmode] fixed error in my code


From: dericbytes
Subject: [Orgmode] fixed error in my code
Date: Sun, 12 Apr 2009 11:09:37 +0000 (UTC)
User-agent: Loom/3.14 (http://gmane.org/)

- changed regex
- it now works if there is no clock running

(defun change-todo-state-on-old-clock ()
; old-clock needs state changed if STARTED
(save-excursion
(progn
    (when (marker-buffer org-clock-marker)
(set-buffer (marker-buffer org-clock-marker))
(goto-char (point-min))
(when  (re-search-forward "^\*+ STARTED" nil t)
        (org-todo "WAITING"))))))





reply via email to

[Prev in Thread] Current Thread [Next in Thread]