From: Rick Frankel <rick@rickster.com>
To: Carsten Dominik <carsten.dominik@gmail.com>
Cc: Org-Mode <emacs-orgmode@gnu.org>
Subject: [PATCH] Add check for assignment to hline relative references in table formulas.
Date: Wed, 25 Sep 2013 13:57:49 -0400 [thread overview]
Message-ID: <2a44af29883017d4a922e25399f34200@mail.rickster.com> (raw)
In-Reply-To: <B289E5D0-5E33-419F-95F0-A3F182BE9A9F@gmail.com>
* 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 "^@-?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
--
1.8.0
next prev parent reply other threads:[~2013-09-25 17:58 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-05-01 17:27 [BUG] hline references on left side of table formula Rick Frankel
2013-09-02 8:10 ` Carsten Dominik
2013-09-25 17:57 ` Rick Frankel [this message]
2013-11-05 11:08 ` [PATCH] Add check for assignment to hline relative references in table formulas Bastien
2013-11-05 20:19 ` Achim Gratz
2013-11-05 20:55 ` Bastien
2013-11-07 19:37 ` Achim Gratz
2013-11-07 21:09 ` Bastien
2013-11-08 11:09 ` Michael Brand
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.orgmode.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=2a44af29883017d4a922e25399f34200@mail.rickster.com \
--to=rick@rickster.com \
--cc=carsten.dominik@gmail.com \
--cc=emacs-orgmode@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).