summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKyle Meyer <kyle@kyleam.com>2017-06-22 21:28:21 -0400
committerKyle Meyer <kyle@kyleam.com>2017-06-22 21:29:43 -0400
commit1930a8f05ac3c09b6366491c076a3efde2f2205d (patch)
tree7cbc193ce587f1b5f3f12e695d06d838faac31ff
parent17a1cd23b99fdc0df3af73bc858a96a42f98f5c3 (diff)
downloadorg-mode-1930a8f05ac3c09b6366491c076a3efde2f2205d.tar.gz
org-todo: Display state change message when headline is not visible
* lisp/org.el (org-todo): Display state change message when headline is not visible, reversing unintentional modification from dd17e9d29. Prior to dd17e9d29 (2014-05-31), a message was displayed when changing the state of a headline that was *not* visible, helping the user know what the new state was even though the headline was off the screen. While extending this code, dd17e9d29 unintentionally reversed the visibility check, resulting in the message only being shown when the headline is visible. Reported-by: Russell Adams <RLAdams@AdamsInfoServ.Com> <https://lists.gnu.org/archive/html/emacs-orgmode/2017-06/msg00442.html>
-rw-r--r--lisp/org.el2
1 files changed, 1 insertions, 1 deletions
diff --git a/lisp/org.el b/lisp/org.el
index 1e6d009..d9b6489 100644
--- a/lisp/org.el
+++ b/lisp/org.el
@@ -12681,7 +12681,7 @@ When called through ELisp, arg is also interpreted in the following way:
(replace-match next t t)
(cond ((equal this org-state)
(message "TODO state was already %s" (org-trim next)))
- ((pos-visible-in-window-p hl-pos)
+ ((not (pos-visible-in-window-p hl-pos))
(message "TODO state changed to %s" (org-trim next))))
(unless head
(setq head (org-get-todo-sequence-head org-state)