Re: [O] Add ability to force-enable TOC

2017-09-22 Thread Matt Lundin
Kaushal Modi writes: > On Wed, Sep 20, 2017, 6:25 AM Nicolas Goaziou > wrote: > > I didn't say it was an unusual case. I said it didn't cover all > the use-cases. Maybe you are really needing a subset of the > initial feature. > > Understood. > > IOW, do mixed numbered/unnumbere

Re: [O] Add ability to force-enable TOC

2017-09-20 Thread Kaushal Modi
On Wed, Sep 20, 2017, 4:14 AM Carsten Dominik wrote: > > I will go back and take a look at this thread. Can someone tell me what > the subject line of that thread was? > http://lists.gnu.org/archive/html/emacs-orgmode/2017-09/msg00157.html -- Kaushal Modi

Re: [O] Add ability to force-enable TOC

2017-09-20 Thread Rasmus
Rasmus writes: > IMO, this behavior should be reverted in maint as it would be nice to > include 9.1 in the next version of Emacs. I misunderstood the initial report. Ignore the above. I don’t understand why, in ox-latex, "num" sets both "\setcounter{secnumdepth}{.}" and switches to "section*

Re: [O] Add ability to force-enable TOC

2017-09-20 Thread Kaushal Modi
On Wed, Sep 20, 2017, 6:25 AM Nicolas Goaziou wrote: > I didn't say it was an unusual case. I said it didn't cover all the > use-cases. Maybe you are really needing a subset of the initial feature. > Understood. IOW, do mixed numbered/unnumbered headings make sense in TOC? > Correct. That does

Re: [O] Add ability to force-enable TOC

2017-09-20 Thread Rasmus
Carsten Dominik writes: > That may be so, but I find that unfortunate. I am really using this > feature often. > > I will go back and take a look at this thread. Can someone tell me what > the subject line of that thread was? I think it’s this one. Subject: setting local variables Dat

Re: [O] Add ability to force-enable TOC

2017-09-20 Thread Rasmus
Kaushal Modi writes: > On Tue, Sep 19, 2017 at 3:27 PM Nicolas Goaziou > wrote: > >> The change was intended. The idea was discussed on the ML. You may want >> to check the thread. >> >> This is on par with, e.g., what LaTeX does. >> > > What would be a good way, though, to bring back that funct

Re: [O] Add ability to force-enable TOC

2017-09-20 Thread Nicolas Goaziou
Hello, Kaushal Modi writes: > On Tue, Sep 19, 2017 at 3:57 PM Nicolas Goaziou > wrote: > >> What is exactly the feature you are missing? Your example is a special >> case where _no_ heading is numbered. > > > I would not consider this as a special case. It is very common for HTML > exports to n

Re: [O] Add ability to force-enable TOC

2017-09-20 Thread Carsten Dominik
On Tue, Sep 19, 2017 at 9:27 PM, Nicolas Goaziou wrote: > Hello, > > Carsten Dominik writes: > > > On Tue, Sep 19, 2017 at 4:49 PM, Kaushal Modi > > wrote: > > > >> Hello, > >> > >> I have use-cases where I don't like to see the headings numbered but > still > >> want the TOC to be generated. >

Re: [O] Add ability to force-enable TOC

2017-09-19 Thread Kaushal Modi
On Tue, Sep 19, 2017 at 3:57 PM Nicolas Goaziou wrote: > What is exactly the feature you are missing? Your example is a special > case where _no_ heading is numbered. I would not consider this as a special case. It is very common for HTML exports to not always number the headings. Blog posts a

Re: [O] Add ability to force-enable TOC

2017-09-19 Thread Nicolas Goaziou
Kaushal Modi writes: > On Tue, Sep 19, 2017 at 3:27 PM Nicolas Goaziou > wrote: > >> The change was intended. The idea was discussed on the ML. You may want >> to check the thread. >> >> This is on par with, e.g., what LaTeX does. >> > > What would be a good way, though, to bring back that funct

Re: [O] Add ability to force-enable TOC

2017-09-19 Thread Kaushal Modi
On Tue, Sep 19, 2017 at 3:27 PM Nicolas Goaziou wrote: > The change was intended. The idea was discussed on the ML. You may want > to check the thread. > > This is on par with, e.g., what LaTeX does. > What would be a good way, though, to bring back that functionality? I don't mind if I need to

Re: [O] Add ability to force-enable TOC

2017-09-19 Thread Nicolas Goaziou
Hello, Carsten Dominik writes: > On Tue, Sep 19, 2017 at 4:49 PM, Kaushal Modi > wrote: > >> Hello, >> >> I have use-cases where I don't like to see the headings numbered but still >> want the TOC to be generated. >> >> I have this in many of my Org files: >> >> #+OPTIONS: num:nil H:4 >> >> But

Re: [O] Add ability to force-enable TOC

2017-09-19 Thread Carsten Dominik
On Tue, Sep 19, 2017 at 4:49 PM, Kaushal Modi wrote: > Hello, > > I have use-cases where I don't like to see the headings numbered but still > want the TOC to be generated. > > I have this in many of my Org files: > > #+OPTIONS: num:nil H:4 > > But after commit bd23781[1], that has stopped workin

Re: [O] Add ability to force-enable TOC

2017-09-19 Thread Kaushal Modi
On Tue, Sep 19, 2017 at 10:49 AM Kaushal Modi wrote: > Can we enforce the TOC generation using the "toc:" option. Below does not > work at the moment, but would like that to work. > > #+OPTIONS: num:nil H:4 toc:4 > Above works after the below patch: diff --git a/lisp/ox.el b/lisp/ox.el index 2b

[O] Add ability to force-enable TOC

2017-09-19 Thread Kaushal Modi
Hello, I have use-cases where I don't like to see the headings numbered but still want the TOC to be generated. I have this in many of my Org files: #+OPTIONS: num:nil H:4 But after commit bd23781[1], that has stopped working i.e. no TOC is created because of num:nil. Can we enforce the TOC ge