unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: drostekirsten@gmail.com
To: help-gnu-emacs@gnu.org
Subject: Re: auto incremental columns in table of org-mode?
Date: Wed, 19 Mar 2008 02:55:53 -0700 (PDT)	[thread overview]
Message-ID: <19f435d3-b7dc-400b-a6f9-8d5a58565cf5@13g2000hsb.googlegroups.com> (raw)
In-Reply-To: mailman.9111.1205879059.18990.help-gnu-emacs@gnu.org

On Mar 18, 11:24 pm, Bastien <b...@altern.org> wrote:
> poppyer <popp...@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...

Even easier is this:

Put a 1 into the first field, and press S-RET to fill the column with
increasing numbers.
As Bastien says, this will not recompute when you add or remove lines.

- Carsten


  parent reply	other threads:[~2008-03-19  9:55 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
2008-03-19  9:52     ` drostekirsten
     [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 [this message]
2008-03-19 14:00         ` poppyer

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=19f435d3-b7dc-400b-a6f9-8d5a58565cf5@13g2000hsb.googlegroups.com \
    --to=drostekirsten@gmail.com \
    --cc=help-gnu-emacs@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.
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).