emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Nick Dokos <nicholas.dokos@hp.com>
To: Michael Brand <michael.ch.brand@gmail.com>
Cc: "András Major" <andras.g.major@gmail.com>,
	Bastien <bzg@altern.org>,
	nicholas.dokos@hp.com, emacs-orgmode <emacs-orgmode@gnu.org>,
	"Carsten Dominik" <carsten.dominik@gmail.com>
Subject: Re: Bug: named columns in tables not working if name contains "_"
Date: Wed, 24 Aug 2011 16:39:32 -0400	[thread overview]
Message-ID: <5392.1314218372@alphaville.americas.hpqcorp.net> (raw)
In-Reply-To: Message from Michael Brand <michael.ch.brand@gmail.com> of "Wed, 24 Aug 2011 22:15:51 +0200." <CALn3zoj5a8auLtvhmbt5ZsuWBT+uymDuZcydH8+rhQA3Dv6bNA@mail.gmail.com>

Michael Brand <michael.ch.brand@gmail.com> wrote:

> On Tue, Aug 23, 2011 at 20:29, Carsten Dominik
> <carsten.dominik@gmail.com> wrote:
> > I have checked, underscore is aceptable, calc allows it in variables names.
> > However, I would not recommend adding any more characters to this regexp.
> 
> Just to mention: Although "_" is the subscript operator that takes the
> nth vector element in Calc, I don't mind the change since the formula
> below that uses "$vector_1" did also not work before the change
> probably because some other regexp to parse the field name already
> included "_". And the alternative formula with "subscr($vector, 1)"
> seems to be syntactically more robust/flexible/clear/etc. anyway.
> 
> |   | [x y]  | x | x | #ERROR | x |
> | ^ | vector |   |   |        |   |
> #+TBLFM: @<$3 = $2_1 :: @<$4 = subscr($2, 1) :: @<$5 = $vector_1 ::
> @<$6 = subscr($vector, 1)
> 

That's worth recording somewhere in Worg, methinks.

Nick

  reply	other threads:[~2011-08-24 20:39 UTC|newest]

Thread overview: 17+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-08-23 13:20 Bug: named columns in tables not working if name contains "_" András Major
2011-08-23 13:53 ` Nick Dokos
2011-08-23 13:58   ` Bug: named columns in tables not working if name contains András Major
2011-08-23 14:34     ` Bastien
2011-08-23 14:08   ` Bug: named columns in tables not working if name contains "_" Carsten Dominik
2011-08-23 14:32     ` Nick Dokos
2011-08-23 14:49       ` Carsten Dominik
2011-08-23 16:20     ` Bastien
2011-08-23 16:47       ` Carsten Dominik
2011-08-23 18:29       ` Carsten Dominik
2011-08-23 18:54         ` Bastien
2011-08-24 20:15         ` Michael Brand
2011-08-24 20:39           ` Nick Dokos [this message]
2011-08-23 14:35   ` Bastien
2011-08-23 16:24   ` Achim Gratz
2011-08-24 20:32     ` Michael Brand
2011-08-24 20:46       ` Nick Dokos

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=5392.1314218372@alphaville.americas.hpqcorp.net \
    --to=nicholas.dokos@hp.com \
    --cc=andras.g.major@gmail.com \
    --cc=bzg@altern.org \
    --cc=carsten.dominik@gmail.com \
    --cc=emacs-orgmode@gnu.org \
    --cc=michael.ch.brand@gmail.com \
    /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).