org-capture: Fix `org-capture-refile'
commit7d7c38c6b1255a3a1ddd03f32849232bf86200e3
authorNicolas Goaziou <mail@nicolasgoaziou.fr>
Sun, 19 Feb 2017 14:27:09 +0000 (19 15:27 +0100)
committerNicolas Goaziou <mail@nicolasgoaziou.fr>
Sun, 19 Feb 2017 14:37:12 +0000 (19 15:37 +0100)
treee78d077dd0f87d4efb013fafe10ade27829c9f10
parentc5ab7958b7074ae8da734e9e6180666cca4c2c62
org-capture: Fix `org-capture-refile'

* lisp/org-capture.el (org-capture-refile): Preserve location of point
  when refiling.

* testing/lisp/test-org-capture.el (test-org-capture/refile): New
  test.

Reported-by: Liu Hui <liuhui1610@gmail.com>
<http://permalink.gmane.org/gmane.emacs.orgmode/112202>
lisp/org-capture.el
testing/lisp/test-org-capture.el