emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Andrea Rossetti <andrea.rossetti@gmail.com>
To: ciaran_mulloy <cmulloy@druidsoftware.com>
Cc: emacs-orgmode@gnu.org
Subject: Re: Worg Tutorial error: using Emacs lisp as formulas
Date: Wed, 27 Aug 2014 19:17:43 +0200	[thread overview]
Message-ID: <84lhq9ua14.fsf@gmail.com> (raw)
In-Reply-To: <53FDA2E2.7030502@druidsoftware.com> (ciaran mulloy's message of "Wed, 27 Aug 2014 10:20:34 +0100")

Hello Ciaran,

  given your example:

> | Col1 | Col2 | Col3 | Col4 | Col5 |
> |------+------+------+------+------|
> | a    | a    | :='(mapconcat 'identity (delete-dups (list @2$1..@>$1 @2$2..@>$2)) " ") | b    |      |
> | b    | a    |      |      |      |
> | c    | d    |      |      |      |
> #+TBLFM: @2$3='(mapconcat 'identity (delete-dups (list @2$1..@>$1 @2$2..@>$2)) " ")

  I confirm I see your same hitting C-c C-c in the cell containing the
  formula. My setup is:

  - Org 8.2.7c
  - GNU Emacs 24.3.1 (i386-mingw-nt6.1.7600) of 2013-03-17 on MARVIN
  - Win 7

  Further observations I collected are:

  1) if I use "II-1" instead of ">" in the formula
     (though it's not exactly the same) it works properly.

  2) I tried to reduce the test case to a simpler formula:
     for example :='(length (list @2$1..@>$1)) gave me
     another, maybe more helpful error message:

     user-error: Spreadsheet error: invalid reference
     "'(length (list @2$1..@>$1))"

toggle-debug-on-error did not work for case 2) because
it's a "catched" error condition. Some random debugging 
made me think the problem lies in (or around) function
`org-table-get-range'. 

  Kindest regards,

  Andrea
     
  

  reply	other threads:[~2014-08-27 17:18 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-08-26 19:18 Worg Tutorial error: using Emacs lisp as formulas Ciaran Mulloy
2014-08-27  2:52 ` Nick Dokos
2014-08-27  7:21   ` Ciaran Mulloy
2014-08-27  9:20     ` ciaran_mulloy
2014-08-27 17:17       ` Andrea Rossetti [this message]
2014-08-27 11:52     ` Nick Dokos
2014-08-27 23:29       ` Ciaran Mulloy
2014-08-28  0:05         ` Andrea Rossetti

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=84lhq9ua14.fsf@gmail.com \
    --to=andrea.rossetti@gmail.com \
    --cc=cmulloy@druidsoftware.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).