Widen to remove possible restrictions in target buffer
commit215749b3d89c6b40bbef3a73ccb6db9d172cbee7
authorDavid Maus <dmaus@ictsoc.de>
Thu, 23 Sep 2010 19:04:10 +0000 (23 21:04 +0200)
committerDavid Maus <dmaus@ictsoc.de>
Fri, 24 Sep 2010 12:09:56 +0000 (24 14:09 +0200)
tree355d80fedcffb60d6872dc0d0ca369c23721a3e8
parenta3348311b41c0cd9e8a6f1722e519e44e1017386
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.
lisp/org-capture.el