summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBastien <bzg@gnu.org>2019-12-05 16:57:37 +0100
committerBastien <bzg@gnu.org>2019-12-05 16:57:37 +0100
commit7938b6ec3092e7af45146e8c258b7da50611d4d6 (patch)
tree53177239c802c577373ffeaa53b0441b8230f0cb
parent0ff2867aa1e6042f9333a586eff79441d1d35761 (diff)
downloadorg-mode-7938b6ec3092e7af45146e8c258b7da50611d4d6.tar.gz
org.el: Fix warning when updating to the same TODO state
* (org-todo): Only warn about TODO state change when both new and old states are not `nil'.
-rw-r--r--lisp/org.el2
1 files changed, 1 insertions, 1 deletions
diff --git a/lisp/org.el b/lisp/org.el
index 5ec3ddf..6a24777 100644
--- a/lisp/org.el
+++ b/lisp/org.el
@@ -10192,7 +10192,7 @@ When called through ELisp, arg is also interpreted in the following way:
(throw 'exit nil)))))
(store-match-data match-data)
(replace-match next t t)
- (cond ((equal this org-state)
+ (cond ((and org-state (equal this org-state))
(message "TODO state was already %s" (org-trim next)))
((not (pos-visible-in-window-p hl-pos))
(message "TODO state changed to %s" (org-trim next))))