原文地址:https://lujun9972.github.io/blog/2019/06/27/repeated-task执行(org-todo-"done")不会记录状态变更日志之谜/index.html
今天遇到一个很奇怪的情况,我们都知道当repeated task的state变成DONE时,是会自动将state变回原state, 同时会记录一条状态变更的日志。
比如,下面这个 t.org
, 当执行了 (org-todo "DONE")
之后变成了 其中的
- State "DONE" from "" [2019-06-27 四 20:49]
就是org自动生成的状态日志变更记录。
但是,若你以 EmacsScript 的形式执行 (org-todo "DONE")
时却发现状态变更日志不见了。
比如,我们创建一个测试文件 t.el
,内容为
(find-file "t.org") (org-todo "DONE") (save-some-buffers t)