org-capture: Fix bug when capturing with templates using `function'
commit747f46aa1f94fc8375fddd3620e15b9b0c0ff86e
authorBastien Guerry <bzg@altern.org>
Wed, 6 Nov 2013 14:51:57 +0000 (6 15:51 +0100)
committerBastien Guerry <bzg@altern.org>
Wed, 6 Nov 2013 14:51:57 +0000 (6 15:51 +0100)
tree8c88eff4fe35f828ec1c2d667d4110a2f913621f
parent2911965bfef9072a3031d48dfe2ea50bcb3ff9df
org-capture: Fix bug when capturing with templates using `function'

* org-capture.el (org-capture): Store :return-to-wconf
earlier.
(org-capture-place-template): Don't store :return-to-wconf
when called from a capture template using `function', rely on
the early :return-to-wconf value store from `org-capture'.

Thanks to Brett Viren for raising this issue.
lisp/org-capture.el