diff options
author | Bastien Guerry <bzg@altern.org> | 2012-01-19 16:20:07 +0100 |
---|---|---|
committer | Bastien Guerry <bzg@altern.org> | 2012-01-19 16:20:07 +0100 |
commit | 9b9f2d0d8d36dd87424ead1c942b236d1d417a7e (patch) | |
tree | f24588e88e761d6c4d4de0b1e339079c00749868 | |
parent | a7c6f70ab1324143a290aafef7217f126764d880 (diff) | |
download | org-mode-9b9f2d0d8d36dd87424ead1c942b236d1d417a7e.tar.gz |
Revert "Honour existing restrictions when clocking in from the agenda"
This reverts commit c41a6f5a333441ba68029c6f8792c9a9938fc57c.
-rw-r--r-- | lisp/org-agenda.el | 17 |
1 files changed, 8 insertions, 9 deletions
diff --git a/lisp/org-agenda.el b/lisp/org-agenda.el index 8927b61..cc0d906 100644 --- a/lisp/org-agenda.el +++ b/lisp/org-agenda.el @@ -7879,15 +7879,14 @@ The cursor may be at a date in the calendar, or in the Org agenda." newhead) (org-with-remote-undo (marker-buffer marker) (with-current-buffer (marker-buffer marker) - (save-restriction - (widen) - (goto-char pos) - (org-show-context 'agenda) - (org-show-entry) - (org-cycle-hide-drawers 'children) - (org-clock-in arg) - (setq newhead (org-get-heading))) - (org-agenda-change-all-lines newhead hdmarker)))))) + (widen) + (goto-char pos) + (org-show-context 'agenda) + (org-show-entry) + (org-cycle-hide-drawers 'children) + (org-clock-in arg) + (setq newhead (org-get-heading))) + (org-agenda-change-all-lines newhead hdmarker))))) (defun org-agenda-clock-out () "Stop the currently running clock." |