emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Michael Brand <michael.ch.brand@gmail.com>
To: Org Mode <emacs-orgmode@gnu.org>
Subject: [PATCH] Fix table formula debugger error display
Date: Sat, 7 Sep 2013 10:57:43 +0200	[thread overview]
Message-ID: <CALn3zohpR4hE3N3Hv6-tTyYW+1HX6FDYeumZ=nBge-YBS-i-gg@mail.gmail.com> (raw)

[-- Attachment #1: Type: text/plain, Size: 173 bytes --]

Hi all

Attached is a patch to fix the offset of the arrow pointing to the
error in a Calc formula, see this example:

| #ERROR |
#+TBLFM: $1 = . want a Calc error

Michael

[-- Attachment #2: 0001-Fix-table-formula-debugger-error-display.patch --]
[-- Type: application/octet-stream, Size: 922 bytes --]

From bd6bf6d7f3745bf56a2494dca41b1eed7dfb86d0 Mon Sep 17 00:00:00 2001
From: Michael Brand <michael.ch.brand@gmail.com>
Date: Sat, 7 Sep 2013 10:55:14 +0200
Subject: [PATCH] Fix table formula debugger error display

* lisp/org-table.el (org-table-eval-formula): Align the arrow pointing
to the error in a Calc formula to the other fomula debugger logs.
---
 lisp/org-table.el | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lisp/org-table.el b/lisp/org-table.el
index c00fbc5..246cf8d 100644
--- a/lisp/org-table.el
+++ b/lisp/org-table.el
@@ -2736,7 +2736,7 @@ $xyz->  %s
 @r$c->  %s
 $1->    %s\n" orig formula form0 form))
 	    (if (listp ev)
-		(princ (format "       %s^\nError:  %s"
+		(princ (format "        %s^\nError:  %s"
 			       (make-string (car ev) ?\-) (nth 1 ev)))
 	      (princ (format "Result: %s\nFormat: %s\nFinal:  %s"
 			     ev (or fmt "NONE")
-- 
1.7.12.4 (Apple Git-37)


             reply	other threads:[~2013-09-07  8:57 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-09-07  8:57 Michael Brand [this message]
2013-09-07 14:22 ` [PATCH] Fix table formula debugger error display Carsten Dominik

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='CALn3zohpR4hE3N3Hv6-tTyYW+1HX6FDYeumZ=nBge-YBS-i-gg@mail.gmail.com' \
    --to=michael.ch.brand@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).