diff options
author | Nicolas Goaziou <mail@nicolasgoaziou.fr> | 2017-07-14 10:40:03 +0200 |
---|---|---|
committer | Nicolas Goaziou <mail@nicolasgoaziou.fr> | 2017-07-14 10:40:03 +0200 |
commit | 8d9854ca8a462e61c53e4e57f87967e079cfe36f (patch) | |
tree | eb28e433e83ea5deeabe37ca3713abab482f4ff6 | |
parent | 3315bd11186992e11e7164429f513a41afa9785c (diff) | |
download | org-mode-8d9854ca8a462e61c53e4e57f87967e079cfe36f.tar.gz |
org-capture: Fix last commit
* lisp/org-capture.el (org-capture-fill-template): %K link
specifically targets a headline. Also provide a description.
-rw-r--r-- | lisp/org-capture.el | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/lisp/org-capture.el b/lisp/org-capture.el index 9fc4da9..982c3b3 100644 --- a/lisp/org-capture.el +++ b/lisp/org-capture.el @@ -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) "")) |