emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[O] [PATCH] Add check for assignment to hline relative references in tab


From: Rick Frankel
Subject: [O] [PATCH] Add check for assignment to hline relative references in table formulas.
Date: Wed, 25 Sep 2013 13:57:49 -0400
User-agent: Roundcube Webmail/0.9.0

* org-table.el (org-table-recalculate): Generate user error if
an hline relative reference is use on the LHS of a formula.
---
lisp/org-table.el | 2 ++
1 file changed, 2 insertions(+)

diff --git a/lisp/org-table.el b/lisp/org-table.el
index 246cf8d..a3197d3 100644
--- a/lisp/org-table.el
+++ b/lisp/org-table.el
@@ -3001,6 +3001,8 @@ known that the table will be realigned a little later anyway."
;; Insert constants in all formulas
(setq eqlist
            (mapcar (lambda (x)
+                     (if (string-match "address@hidden" (car x))
+                         (user-error "Can't assign to hline relative 
reference"))
                      (when (string-match "\\`$[<>]" (car x))
                        (setq lhs1 (car x))
                        (setq x (cons (substring
--
1.8.0





reply via email to

[Prev in Thread] Current Thread [Next in Thread]