From: chgreg692000@yahoo.com
To: emacs-orgmode@gnu.org
Subject: Re: org-mode + xemacs + patch
Date: Wed, 10 May 2006 10:40:11 +0300 [thread overview]
Message-ID: <7u7j4utjj8.fsf@horizonsemi.com> (raw)
In-Reply-To: <30cf789d7cbc5c3caf7b6eea1a1e08f8@science.uva.nl> (Carsten Dominik's message of "Tue, 9 May 2006 16:58:30 +0200")
On Tue, 9 May 2006, dominik@science.uva.nl wrote:
> Hi Greg,
>
> thank you very much, I will take a look at your patch.
>
> Can you give us a few examples on how you use the lisp expression in
> actual tables? What kind of applications do you have in mind?
>
Lisp expression in tables can be used for string manipulations,
regexp, control structures. Maybe there is a way to do it with
'calc-eval' but i didn't found it.
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))
In this table inputs are names of scan_in and scan_out buses, outputs
are total width of scan_in bus and total width of scan_out bus.
> - Carsten
Regards,
Greg
next prev parent reply other threads:[~2006-05-10 7:40 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 [this message]
2006-05-11 9:44 ` Carsten Dominik
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=7u7j4utjj8.fsf@horizonsemi.com \
--to=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).