contrib/lisp/org-export: Fix headline numbering
commit9ee429ca1d9ff163449f01ce543fa8ac8fafc992
authorNicolas Goaziou <n.goaziou@gmail.com>
Thu, 1 Dec 2011 13:01:32 +0000 (1 14:01 +0100)
committerNicolas Goaziou <n.goaziou@gmail.com>
Thu, 1 Dec 2011 13:35:43 +0000 (1 14:35 +0100)
tree17578811bd7cd81ed4b402d6fe25e4e9299b297c
parent02c2648a016106f86d3163ac4e31ee02b1e6eab2
contrib/lisp/org-export: Fix headline numbering

* contrib/lisp/org-export.el (org-export-persistent-properties-list):
  Remove unused persistent properties.
(org-export-initialize-persistent-properties): Delegate headline
  numbering alist to `org-export-collect-headline-numbering'.
(org-export-collect-headline-numbering): New function.
(org-export-update-info): Remove part relative to headline numbering.
(org-export-get-headline-number): Use new `:headline-numbering' to get
  current headline number.

Headline numbering is not done on demand anymore, but built once and
for all at the beginning of the export process, and stored in an
alist, accessible through the `:headline-numbering' property in the
communication channel.
contrib/lisp/org-export.el