浏览代码

Fix table parsing bug.

Carsten Dominik 16 年之前
父节点
当前提交
491702483a
共有 2 个文件被更改,包括 5 次插入1 次删除
  1. 3 0
      lisp/ChangeLog
  2. 2 1
      lisp/org-table.el

+ 3 - 0
lisp/ChangeLog

@@ -1,5 +1,8 @@
 2008-10-15  Carsten Dominik  <dominik@science.uva.nl>
 
+	* org-table.el (org-table-eval-formula): Avoid parsing Calc's HMS
+	forms as ranges.
+
 	* org-export-latex.el (org-export-latex-lists): Ignore lists-like
 	things in protexted regions.
 

+ 2 - 1
lisp/org-table.el

@@ -2116,7 +2116,8 @@ not overwrite the stored one."
 	;; Check for old vertical references
 	(setq form (org-rewrite-old-row-references form))
 	;; Insert complex ranges
-	(while (string-match org-table-range-regexp form)
+	(while (and (string-match org-table-range-regexp form)
+		    (> (length (match-string 0 form)) 1))
 	  (setq form
 		(replace-match
 		 (save-match-data