From: Kaushal Modi <kaushal.modi@gmail.com>
To: emacs-org list <emacs-orgmode@gnu.org>
Subject: org table with auto-incrementing numbers in a column
Date: Mon, 15 Feb 2016 23:36:41 -0500 [thread overview]
Message-ID: <CAFyQvY3qE8TauR3fW=z7_y7ijFwR1ZOWM4nayKezrthYy9bHSw@mail.gmail.com> (raw)
[-- Attachment #1: Type: text/plain, Size: 1058 bytes --]
Hi,
I am trying to get auto-incrementing numbers in the first column in an org
table. The goal is to recalculate the numbers after adding/removing rows.
I checked out the org FAQ:
http://orgmode.org/worg/org-faq.html#fill-table-column-with-incremental-numbers
But I am still not getting it to work as I need to.
Below is the minimum working example. Paste the below in an org buffer.
| N | |
|---+---|
| | |
| | |
| | |
| | |
#+TBLFM: $1=@-1+1::@2$1=1
Now with the point anywhere in the table, when I hit "C-c *" or M-x
org-table-recalculate, I expect the first column to be auto-populated with
numbers 1,2,3,4 (or that's how I understood from the tutorial in the FAQ
link above).
But it does not work that way. Instead I need to go to each row and hit C-c
*.
So I am definitely missing out on something that's preventing the whole
table to be recalculated in one go. Any help?
Thanks!
Org-mode version 8.3.3 (release_8.3.3-597-gcaf66e @
/home/kmodi/usr_local/apps/6/emacs/emacs-25/share/emacs/site-lisp/org/)
--
Kaushal Modi
[-- Attachment #2: Type: text/html, Size: 1961 bytes --]
next reply other threads:[~2016-02-16 4:37 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-02-16 4:36 Kaushal Modi [this message]
2016-02-16 6:22 ` org table with auto-incrementing numbers in a column Derek Feichtinger
2016-02-16 7:24 ` H. Dieter Wilhelm
2016-02-16 9:16 ` Derek Feichtinger
2016-02-16 16:51 ` Nicolas Goaziou
2016-02-16 9:58 ` Eric S Fraga
2016-02-16 16:28 ` Kaushal Modi
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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='CAFyQvY3qE8TauR3fW=z7_y7ijFwR1ZOWM4nayKezrthYy9bHSw@mail.gmail.com' \
--to=kaushal.modi@gmail.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 external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.