From: Bastien <bzg@altern.org>
To: poppyer <poppyer@gmail.com>
Cc: help-gnu-emacs@gnu.org
Subject: Re: auto incremental columns in table of org-mode?
Date: Tue, 18 Mar 2008 22:24:09 +0000 [thread overview]
Message-ID: <87y78fy8l2.fsf@bzg.ath.cx> (raw)
In-Reply-To: <b4hcf3oimi.fsf@clpc78.comlab> (poppyer@gmail.com's message of "Tue, 18 Mar 2008 20:57:25 +0000")
poppyer <poppyer@gmail.com> writes:
>> This basically says: for the each cell in the first column, compute the
>> value of the cell by adding 1 to the value of the cell above.
>
> I am using similar $1=@-1+1;N
^^
(The ;N is not required here, this is for Calc formulas only.)
> The problem is, it works at the first time. But every time you use C-u
> C-c C-c to update the whole table. The whole $1 column increase by 1.
> i.e. "1 2 3 ... " ===> "2 3 4 ..."
Yes, that's a problem. This is because when looking for a relative
reference, if Org encounters a non-number row, it falls back on the next
row in the same column... I'll send a bug report to Carsten for this.
> Any idea to exclude the first "1" without being updated?
If you don't really need to compute the first column you can always
use a dummy macro like this one:
C-a f3 | C-xC-kC-i | | C-j f4
Then use it with C-x e e e e as many times as you want rows...
HTH,
--
Bastien
next prev parent reply other threads:[~2008-03-18 22:24 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-03-17 19:11 auto incremental columns in table of org-mode? poppyer
2008-03-17 21:04 ` Stefan Reichör
2008-03-18 15:36 ` Bastien
[not found] ` <mailman.9096.1205854612.18990.help-gnu-emacs@gnu.org>
2008-03-18 20:57 ` poppyer
2008-03-18 22:24 ` Bastien [this message]
[not found] ` <mailman.9111.1205879059.18990.help-gnu-emacs@gnu.org>
2008-03-19 2:44 ` poppyer
2008-03-19 3:44 ` Bastien
[not found] ` <mailman.9151.1205898289.18990.help-gnu-emacs@gnu.org>
2008-03-19 7:24 ` poppyer
2008-03-19 9:55 ` drostekirsten
2008-03-19 14:00 ` poppyer
2008-03-19 9:52 ` drostekirsten
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.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87y78fy8l2.fsf@bzg.ath.cx \
--to=bzg@altern.org \
--cc=help-gnu-emacs@gnu.org \
--cc=poppyer@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.
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).