diff options
author | David Maus <dmaus@ictsoc.de> | 2010-09-23 21:04:10 +0200 |
---|---|---|
committer | David Maus <dmaus@ictsoc.de> | 2010-09-24 14:09:56 +0200 |
commit | 215749b3d89c6b40bbef3a73ccb6db9d172cbee7 (patch) | |
tree | 355d80fedcffb60d6872dc0d0ca369c23721a3e8 | |
parent | a3348311b41c0cd9e8a6f1722e519e44e1017386 (diff) | |
download | org-mode-215749b3d89c6b40bbef3a73ccb6db9d172cbee7.tar.gz |
Widen to remove possible restrictions in target buffer
* org-capture.el (org-capture-place-template): Widen to remove
possible restrictions in target buffer.
Jules Bean wrote:
>If I run org-capture with the template:
>("t" "Todo" entry (file+headline
>"/Users/jules/work/TODO.org" "Tasks") "* TODO %?
> (Captured at %u)
> %i
> %a
>")
>whilst I have narrowed (using, e.g., org-narrow-to-subtree) the buffer
>that contains TODO.org, a new "* Tasks" headline is inserted at the
>end of my narrowing and the new entry is added there, which messes up
>the hierarchy of the file.
-rw-r--r-- | lisp/org-capture.el | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lisp/org-capture.el b/lisp/org-capture.el index a3d40f0..44face1 100644 --- a/lisp/org-capture.el +++ b/lisp/org-capture.el @@ -681,6 +681,7 @@ already gone." (delete-other-windows) (org-switch-to-buffer-other-window (org-capture-get-indirect-buffer (org-capture-get :buffer) "CAPTURE")) + (widen) (show-all) (goto-char (org-capture-get :pos)) (org-set-local 'org-capture-target-marker |