From mboxrd@z Thu Jan 1 00:00:00 1970 From: Kaushal Modi Subject: org table with auto-incrementing numbers in a column Date: Mon, 15 Feb 2016 23:36:41 -0500 Message-ID: Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=001a11494d0e648f77052bdbb022 Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:59694) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aVXO7-0003JJ-7J for emacs-orgmode@gnu.org; Mon, 15 Feb 2016 23:37:24 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aVXO6-00033T-0d for emacs-orgmode@gnu.org; Mon, 15 Feb 2016 23:37:23 -0500 Received: from mail-ob0-x22f.google.com ([2607:f8b0:4003:c01::22f]:34443) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aVXO5-00033P-RH for emacs-orgmode@gnu.org; Mon, 15 Feb 2016 23:37:21 -0500 Received: by mail-ob0-x22f.google.com with SMTP id wb13so242094840obb.1 for ; Mon, 15 Feb 2016 20:37:21 -0800 (PST) List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs-org list --001a11494d0e648f77052bdbb022 Content-Type: text/plain; charset=UTF-8 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 --001a11494d0e648f77052bdbb022 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
Hi,

I am trying to get auto-incrementin= g numbers in the first column in an org table. The goal is to recalculate t= he numbers after adding/removing rows.


But= I am still not getting it to work as I need to.

B= elow is the minimum working example. Paste the below in an org buffer.


<= div>
| N | =C2=A0 |
|---+---|
| =C2=A0 | =C2=A0 |
| =C2=A0 | =C2=A0 |
| =C2=A0 | =C2=A0 |
| =C2=A0 | =C2=A0 |
#+TBLFM: $1=3D@-1+1::@2$1=3D1

Now with the point anywhere in the table, when = I hit "C-c *" or M-x org-table-recalculate, I expect the first co= lumn to be auto-populated with numbers 1,2,3,4 (or that's how I underst= ood 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 *.<= /div>

So I am definitely missing out on something that&#= 39;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
--001a11494d0e648f77052bdbb022--