Fix bug with hline references on LHS of table formulas
* lisp/org-table.el (org-table-expand-lhs-ranges): Allow hline references to be expanded correctly in LHS of formulas. Based on Tobias' fix in http://thread.gmane.org/gmane.emacs.orgmode/55690
This commit is contained in:
parent
3621634861
commit
b25a931eef
|
@ -1,3 +1,5 @@
|
|||
(string-match "^@-?[-+I0-9]+\\$-?[0-9]+$" lhs)
|
||||
|
||||
;;; org-table.el --- The table editor for Org-mode
|
||||
|
||||
;; Copyright (C) 2004-2012 Free Software Foundation, Inc.
|
||||
|
@ -3000,7 +3002,7 @@ them to individual field equations for each field."
|
|||
(while (setq e (pop equations))
|
||||
(setq lhs (car e) rhs (cdr e))
|
||||
(cond
|
||||
((string-match "^@-?[-+I0-9]+\\$-?[0-9]+$" lhs)
|
||||
((string-match "^@-?[-+0-9]+\\$-?[0-9]+$" lhs)
|
||||
;; This just refers to one fixed field
|
||||
(push e res))
|
||||
((string-match "^[a-zA-Z][_a-zA-Z0-9]*$" lhs)
|
||||
|
|
Loading…
Reference in New Issue