From 99b8f36ab897f82140d846812afe1874ec1e8d7d Mon Sep 17 00:00:00 2001 From: Nicholas Vollmer Date: Wed, 1 Jul 2020 13:43:29 -0400 Subject: [PATCH] capture: org-capture pass KEYS with GOTO arg * lisp/org-capture.el (org-capture): Pass `keys' arg to `org-capture-goto-target'. Allows programmatically visiting a specific template. --- lisp/org-capture.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lisp/org-capture.el b/lisp/org-capture.el index 3992212d5..75b26864a 100644 --- a/lisp/org-capture.el +++ b/lisp/org-capture.el @@ -625,7 +625,7 @@ of the day at point (if any) or the current HH:MM time." (setq org-overriding-default-time (org-get-cursor-date (equal goto 1)))) (cond - ((equal goto '(4)) (org-capture-goto-target)) + ((equal goto '(4)) (org-capture-goto-target keys)) ((equal goto '(16)) (org-capture-goto-last-stored)) (t (let* ((orig-buf (current-buffer))