From 2b26cb4e4ec9b857c2b67ae865d1bc2967b8f3f2 Mon Sep 17 00:00:00 2001 From: Carsten Dominik Date: Fri, 25 Jun 2010 20:53:15 +0200 Subject: [PATCH] Fix bug with regexp target definition Patch by Juan Pechiar --- 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 879dd25ea..03387c0ae 100644 --- a/lisp/org-capture.el +++ b/lisp/org-capture.el @@ -556,7 +556,7 @@ already gone." ((eq (car target) 'file+regexp) (set-buffer (org-capture-target-buffer (nth 1 target))) (goto-char (point-min)) - (if (re-search-forward (nth 1 target) nil t) + (if (re-search-forward (nth 2 target) nil t) (progn (goto-char (match-beginning 0)) (setq target-entry-p (and (org-mode-p) (org-at-heading-p))))