Honour existing restrictions when clocking in from the agenda
commitc41a6f5a333441ba68029c6f8792c9a9938fc57c
authorBernt Hansen <bernt@norang.ca>
Fri, 30 Dec 2011 10:49:08 +0000 (30 05:49 -0500)
committerBastien Guerry <bzg@altern.org>
Wed, 11 Jan 2012 15:42:34 +0000 (11 16:42 +0100)
tree955ac250a64e16bb1bd54451e56487b9b66a8996
parenta0a26cddda56e493322de3926b1f9eedfde18332
Honour existing restrictions when clocking in from the agenda

* lisp/org-agenda.el (org-agenda-clock-in): Save restriction when clocking in from the agenda

Narrowed org buffers are now retained when clocking in from the agenda.
We only widen the buffer when the task to clock in is outside the existing
restriction.
lisp/org-agenda.el