ox: Allow a less strict UNNUMBERED inheritance
commit7455f4bf83635e472104597e67f80c43f70ad051
authorNicolas Goaziou <mail@nicolasgoaziou.fr>
Mon, 20 Nov 2017 13:07:03 +0000 (20 14:07 +0100)
committerNicolas Goaziou <mail@nicolasgoaziou.fr>
Mon, 20 Nov 2017 13:07:03 +0000 (20 14:07 +0100)
tree5227e1af59000ade78669715f01b6d7002c8439d
parentd788d1b00eaeccba28cce361577c54e13466b94a
ox: Allow a less strict UNNUMBERED inheritance

* lisp/ox.el (org-export-collect-headlines):
(org-export-excluded-from-toc-p): Allow to number headlines in the
middle of an otherwise unnumbered tree.

* testing/lisp/test-ox.el (test-org-export/collect-headlines):
(test-org-export/excluded-from-toc-p):
(test-org-export/toc-entry-backend): Update tests.  Add more tests.

Reported-by: Akater <nuclearspace@gmail.com>
<http://lists.gnu.org/archive/html/emacs-orgmode/2017-11/msg00219.html>
lisp/ox.el
testing/lisp/test-ox.el