Honour existing restrictions when visiting tasks from the agenda
commit31d003ad28a747e63935b45396d2995933514c5b
authorBernt Hansen <bernt@norang.ca>
Fri, 30 Dec 2011 15:49:09 +0000 (30 15:49 +0000)
committerCarsten Dominik <carsten.dominik@gmail.com>
Sat, 31 Dec 2011 08:10:36 +0000 (31 09:10 +0100)
treec59c564a1794ea32d558508ea34ec15e8c7e67ab
parentfc1f01c54e5f9018374c15f11cf7b25c37996dd6
Honour existing restrictions when visiting tasks from the agenda

* lisp/org-agenda.el (org-agenda-switch-to): Widen org buffer only if point is
  outside the current restriction

Widen org buffer when visiting from agenda only if point is outside
current restriction.

Visiting a task with RET or TAB in the agenda should not affect the
org-mode buffer restriction unless the target task is not currently
visible due to the restriction.
lisp/org-agenda.el