فهرست منبع

org-table.el (org-table-recalculate): Generate user error if an hline relative reference is use on the LHS of a formula

* org-table.el (org-table-recalculate): Generate user error if
an hline relative reference is use on the LHS of a formula.

TINYCHANGE
Rick Frankel 11 سال پیش
والد
کامیت
a2c71a6e35
1فایلهای تغییر یافته به همراه2 افزوده شده و 0 حذف شده
  1. 2 0
      lisp/org-table.el

+ 2 - 0
lisp/org-table.el

@@ -3016,6 +3016,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 "^@-?I+" (car x))
+			  (user-error "Can't assign to hline relative reference"))
 		      (when (string-match "\\`$[<>]" (car x))
 			(setq lhs1 (car x))
 			(setq x (cons (substring