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.
This commit is contained in:
Nicholas Vollmer 2020-07-01 13:43:29 -04:00 committed by Kyle Meyer
parent 3ed035ce3b
commit 99b8f36ab8
1 changed files with 1 additions and 1 deletions

View File

@ -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))