Browse Source

org-capture: Fix last commit

* lisp/org-capture.el (org-capture-fill-template): %K link
  specifically targets a headline.  Also provide a description.
Nicolas Goaziou 7 years ago
parent
commit
8d9854ca8a
1 changed files with 3 additions and 2 deletions
  1. 3 2
      lisp/org-capture.el

+ 3 - 2
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) ""))