From 297315c46aa9d49ea3fb1aa36134267e0cb25002 Mon Sep 17 00:00:00 2001 From: Nicolas Goaziou Date: Wed, 13 Apr 2016 23:47:36 +0200 Subject: [PATCH] org-capture: Fix invalid table line specification * lisp/org-capture.el (org-capture-place-table-line): Move point in front of the table before trying to analyze it. Reported-by: Christian Moe --- lisp/org-capture.el | 1 + 1 file changed, 1 insertion(+) diff --git a/lisp/org-capture.el b/lisp/org-capture.el index 5052ad811..fa723f111 100644 --- a/lisp/org-capture.el +++ b/lisp/org-capture.el @@ -1167,6 +1167,7 @@ may have been stored before." (cond ((and table-line-pos (string-match "\\(I+\\)\\([-+][0-9]\\)" table-line-pos)) + (goto-char (point-min)) ;; we have a complex line specification (let ((ll (ignore-errors (save-match-data (org-table-analyze))