Browse Source

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>
Nicolas Goaziou 9 years ago
parent
commit
297315c46a
1 changed files with 1 additions and 0 deletions
  1. 1 0
      lisp/org-capture.el

+ 1 - 0
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))