summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNicolas Goaziou <mail@nicolasgoaziou.fr>2016-04-13 23:47:36 +0200
committerNicolas Goaziou <mail@nicolasgoaziou.fr>2016-04-13 23:47:36 +0200
commit297315c46aa9d49ea3fb1aa36134267e0cb25002 (patch)
tree00b7ca44e409072708de1dda843b21acc98ab404
parent9b5f2a03ea4b9c8547ad21d889c200d6a2081356 (diff)
downloadorg-mode-297315c46aa9d49ea3fb1aa36134267e0cb25002.tar.gz
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 <mail@christianmoe.com> <http://permalink.gmane.org/gmane.emacs.orgmode/106356>
-rw-r--r--lisp/org-capture.el1
1 files changed, 1 insertions, 0 deletions
diff --git a/lisp/org-capture.el b/lisp/org-capture.el
index 5052ad8..fa723f1 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))