Browse Source

Capture: fix the function target

Carsten Dominik 14 years ago
parent
commit
9e9bc16476
1 changed files with 5 additions and 0 deletions
  1. 5 0
      lisp/org-capture.el

+ 5 - 0
lisp/org-capture.el

@@ -593,6 +593,11 @@ already gone."
 	(org-capture-put :exact-position (point))
 	(setq target-entry-p (and (org-mode-p) (org-at-heading-p))))
 
+       ((eq (car target) 'function)
+	(funcall (nth 1 target))
+	(org-capture-put :exact-position (point))
+	(setq target-entry-p (and (org-mode-p) (org-at-heading-p))))
+
        ((eq (car target) 'clock)
 	(if (and (markerp org-clock-hd-marker)
 		 (marker-buffer org-clock-hd-marker))