Browse Source

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.
Nicholas Vollmer 4 years ago
parent
commit
99b8f36ab8
1 changed files with 1 additions and 1 deletions
  1. 1 1
      lisp/org-capture.el

+ 1 - 1
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
     (setq org-overriding-default-time
 	  (org-get-cursor-date (equal goto 1))))
 	  (org-get-cursor-date (equal goto 1))))
   (cond
   (cond
-   ((equal goto '(4)) (org-capture-goto-target))
+   ((equal goto '(4))  (org-capture-goto-target keys))
    ((equal goto '(16)) (org-capture-goto-last-stored))
    ((equal goto '(16)) (org-capture-goto-last-stored))
    (t
    (t
     (let* ((orig-buf (current-buffer))
     (let* ((orig-buf (current-buffer))