org-capture: Fix last commit

* lisp/org-capture.el (org-capture-fill-template): %K link
  specifically targets a headline.  Also provide a description.
This commit is contained in:
Nicolas Goaziou 2017-07-14 10:40:03 +02:00
parent 3315bd1118
commit 8d9854ca8a
1 changed files with 3 additions and 2 deletions

View File

@ -1580,9 +1580,10 @@ The template may still contain \"%?\" for cursor positioning."
""))
(v-K (if (marker-buffer org-clock-marker)
(org-make-link-string
(format "%s::%s"
(format "%s::*%s"
(buffer-file-name (marker-buffer org-clock-marker))
(org-no-properties org-clock-heading)))
v-k)
v-k)
""))
(v-f (or (org-capture-get :original-file-nondirectory) ""))
(v-F (or (org-capture-get :original-file) ""))