org-todo: Display state change message when headline is not visible
commit1930a8f05ac3c09b6366491c076a3efde2f2205d
authorKyle Meyer <kyle@kyleam.com>
Fri, 23 Jun 2017 01:28:21 +0000 (22 21:28 -0400)
committerKyle Meyer <kyle@kyleam.com>
Fri, 23 Jun 2017 01:29:43 +0000 (22 21:29 -0400)
tree7cbc193ce587f1b5f3f12e695d06d838faac31ff
parent17a1cd23b99fdc0df3af73bc858a96a42f98f5c3
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>
lisp/org.el