emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Carsten Dominik <dominik@science.uva.nl>
To: chgreg692000@yahoo.com
Cc: emacs-orgmode@gnu.org
Subject: Re: Re: org-mode + xemacs + patch
Date: Thu, 11 May 2006 11:44:18 +0200	[thread overview]
Message-ID: <90785fd311b9fde1939238e19f34ae9d@science.uva.nl> (raw)
In-Reply-To: <7u7j4utjj8.fsf@horizonsemi.com>


On May 10, 2006, at 9:40, chgreg692000@yahoo.com wrote:

> Look at the following example:
>
> |---+-------------------+---------+----------|
> |   | scan              | scan_in | scan_out |
> |   |                   |   witdh |    width |
> |---+-------------------+---------+----------|
> | ! |                   |       0 |        0 |
> | # | "SCAN_IN0[12:0]"  |      13 |        0 |
> | # | "SCAN_IN1[3:0]"   |      17 |        0 |
> | # | "SCAN_OUT0[15:0]" |      17 |       16 |
> | # | "SCAN_IN2[22:0]"  |      40 |       16 |
> | # | "SCAN_OUT1[44:0]" |      40 |       61 |
> | # | "SCAN_IN3[5:0]"   |      46 |       61 |
> |---+-------------------+---------+----------|
> #+TBLFM: $3='(number-to-string (if (string-match 
> "SCAN_IN.*\\[\\([0-9]+\\):\\([0-9]+\\)\\]" $2) (+ (string-to-number 
> (match-string 1 $2)) 1 &1) &1))::$4='(number-to-string (if 
> (string-match "SCAN_OUT.*\\[\\([0-9]+\\):\\([0-9]+\\)\\]" $2) (+ 
> (string-to-number (match-string 1 $2)) 1 &1) &1))
>

OK, I have also taken this part, this is a great new feature for the 
tables.  A few remarks:

- Note that you don't have to use "SCAN_IN3[5:0]" with quotes in the 
table field - you can leave off the quotes here and put them into the 
lisp form, like "$2".
- I am also allowing a lisp form to return a number - number-to-string 
will then be automatically applied.
- Finally, I am also allowing a format after a semicolon, just like in 
calc formulas.  So you can write  '(+ $1 15.3);%10.3f

Thanks again.

- Carsten

  reply	other threads:[~2006-05-11  9:44 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-05-09 14:23 org-mode + xemacs + patch chgreg692000
2006-05-09 14:58 ` Carsten Dominik
2006-05-10  7:40   ` chgreg692000
2006-05-11  9:44     ` Carsten Dominik [this message]
2006-05-10 10:49 ` Carsten Dominik
     [not found]   ` <7u3bfit8ov.fsf@horizonsemi.com>
2006-05-10 11:50     ` Carsten Dominik
2006-05-11  3:58 ` Carsten Dominik
2006-05-11  8:18   ` chgreg692000
2006-05-11  9:01     ` 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=90785fd311b9fde1939238e19f34ae9d@science.uva.nl \
    --to=dominik@science.uva.nl \
    --cc=chgreg692000@yahoo.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).