diff options
author | 2022-01-11 10:02:29 -0800 | |
---|---|---|
committer | 2022-01-11 10:02:29 -0800 | |
commit | 7df353e7dcc66731f03502460aba225700067fb3 (patch) | |
tree | 908fbc2e3bea673843474d69b0f60e4c790d54c7 /oni-org/oni-org.el | |
parent | 011f0ce2f97f7862bbb25cc4342cf1ea575e5b77 (diff) | |
download | emacs-config-7df353e7dcc66731f03502460aba225700067fb3.tar.gz emacs-config-7df353e7dcc66731f03502460aba225700067fb3.zip |
[oni-org] Don't change the state of a TODO when I'm capturing it
When a capture template is set up to clock in as I'm capturing it, this function
would immediately change the state of the item to WIP (or whichever next status
there was), but even though I'm spending time on the ticket at that point it's
not in progress yet.
Diffstat (limited to 'oni-org/oni-org.el')
-rw-r--r-- | oni-org/oni-org.el | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/oni-org/oni-org.el b/oni-org/oni-org.el index 58f5f5a..b17b645 100644 --- a/oni-org/oni-org.el +++ b/oni-org/oni-org.el @@ -4,7 +4,7 @@ ;; Author: Tom Willemse <tom@ryuslash.org> ;; Keywords: local -;; Version: 2022.0110.220554 +;; Version: 2022.0111.100221 ;; Package-Requires: (oni-yasnippet oni-alert oni-hydra org org-contrib org-bullets org-edna diminish all-the-icons olivetti mixed-pitch) ;; This program is free software; you can redistribute it and/or modify @@ -235,7 +235,8 @@ located at the start of the line." (defun oni-org-maybe-change-todo-state (current-state) "Change the state of the current task to in-progress CURRENT-STATE is todo." - (if (member current-state org-todo-heads) + (if (and (not org-capture-mode) + (member current-state org-todo-heads)) (cadr (member current-state org-todo-keywords-1)) current-state)) |