org-agenda.el (org-agenda-set-restriction-lock): Put the overlay until the end of...
commitaa0e0068de109eef2ac7897c4659d545b351de01
authorBastien Guerry <bzg@altern.org>
Sat, 16 Feb 2013 22:09:57 +0000 (16 23:09 +0100)
committerBastien Guerry <bzg@altern.org>
Sat, 16 Feb 2013 22:09:57 +0000 (16 23:09 +0100)
tree7a18b2f0304017815d482d942dd7e762bd079188
parentc4d8d26d1d3891a0f7aa6a380f0a8c875d4614d2
org-agenda.el (org-agenda-set-restriction-lock): Put the overlay until the end of the subtree

* org-agenda.el (org-agenda-set-restriction-lock): Put the
overlay until the end of the subtree, not the end of the
headline.

When the agenda restriction is on, user expect agenda views to check
every entry in the subtree.  If a user add an entry outside of the
overlay without noticing it, this entry will not be checked and the
user will wonder why.  Put the end of the overlay at the end of the
subtree so that the user always knows if the entries she is adding
are within the current restriction.

We might need to find a less instrusive overlay color, though.
lisp/org-agenda.el