浏览代码

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 年之前
父节点
当前提交
297315c46a
共有 1 个文件被更改,包括 1 次插入0 次删除
  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))