[no subject]

2023-12-11 Thread Kenny Ballou
Forgive for the noise, I just double checked the patch and noticed the `current-prefix-arg' was still being used. Fixed.

[PATCH] lisp/org-capture.el: use `org-store-link' for %K values

2023-12-11 Thread Kenny Ballou
* org-capture.el (org-capture-fill-template): fill %K values using link value from `org-store-link', which respects `org-id-link-to-use-id'. * doc/ORG-NEWS: (Template variable expansion %K) Document new behavior. Reported-by: Nathaniel W Griswold Signed-off-by: Kenny Ballou Li

[PATCH] lisp/org-capture.el: use `org-store-link' for %K values

2023-12-11 Thread Kenny Ballou
* org-capture.el (org-capture-fill-template): fill %K values using link value from `org-store-link', which respects `org-id-link-to-use-id'. * doc/ORG-NEWS: (Template variable expansion %K) Document new behavior. Reported-by: Nathaniel W Griswold Signed-off-by: Kenny Ballou Li

Re: [PATCH] lisp/org-capture.el: use link ID's for %K

2023-12-11 Thread Kenny Ballou
On 2023-12-11 19:16 GMT, Ihor Radchenko wrote: > >> +*** Capture template expansion now supports ID links >> + >> +The capture template expansion element `%K' creates links using >> +`org-store-link', which respects the values of >> +`org-id-link-to-use-id'. > > Here, we simply use Org markup. So

[PATCH] lisp/org-capture.el: use link ID's for %K

2023-12-11 Thread Kenny Ballou
* org-capture.el (org-capture-fill-template): fill %K values using link value from `org-store-link', which respects `org-id-link-to-use-id'. * doc/ORG-NEWS: (Template variable expansion %K) Document new behavior. Reported-by: Nathaniel W Griswold Signed-off-by: Kenny Ballou Li

Re: [PATCH] lisp/org-capture.el: use link ID's for %K

2023-12-11 Thread Kenny Ballou
On 2023-12-10 12:19 GMT, Ihor Radchenko wrote: > Kenny Ballou writes: > >> >> I ended up using `org-store-link-plist'. For some reason that I don't >> understand, the `save-excursion' -> `org-store-link' was not updating >> `org-stored-

[PATCH] lisp/org-capture.el: use link ID's for %K

2023-12-10 Thread Kenny Ballou
* org-capture.el (org-capture-fill-template): fill %K values using org ID's if `org-id-link-to-org-use-id' is non-nil. * doc/ORG-NEWS: (Template variable expansion %K) Document new behavior. Reported-by: Nathaniel W Griswold Signed-off-by: Kenny Ballou Link: https://list.orgmode.or

Re: [PATCH] lisp/org-capture.el: use link ID's for %K

2023-12-10 Thread Kenny Ballou
On 2023-12-08 19:01 GMT, Ihor Radchenko wrote: > Kenny Ballou writes: > >> I'm currently struggling through modifying it to work with >> `org-store-link'. Something, save-excursion -> org-clock-goto -> >> org-store-link -> org-insert-link is what

Re: [PATCH] lisp/org-capture.el: use link ID's for %K

2023-12-10 Thread Kenny Ballou
On 2023-12-08 13:56 GMT, Ihor Radchenko wrote: > Kenny Ballou writes: >> + (if org-id-link-to-org-use-id >> + (org-link-make-string >> + (format "id:%s" (org-id-get org-clock-marker)) >> +