Browse Source

Capture: Fix bug in file+function target specification

* lisp/org-capture.el (org-capture-set-target-location): Fix
file+function interpretation.
Carsten Dominik 14 years ago
parent
commit
14f05b4461
1 changed files with 1 additions and 1 deletions
  1. 1 1
      lisp/org-capture.el

+ 1 - 1
lisp/org-capture.el

@@ -586,7 +586,7 @@ already gone."
 
        ((eq (car target) 'file+function)
 	(set-buffer (org-capture-target-buffer (nth 1 target)))
-	(funcall (nth 1 target))
+	(funcall (nth 2 target))
 	(setq target-entry-p (and (org-mode-p) (org-at-heading-p))))
 
        ((eq (car target) 'clock)