Re: [O] Weight of headers

2012-02-26 Thread Nicolas Goaziou
Hello, pin...@iro.umontreal.ca (François Pinard) writes: Here is a need I have once in a while, but for which I do not even have realistic suggestions to offer (at least, so I feel). Maybe someone would offer more precise ideas. :-) When I have a big Org file which I want to re-organize,

Re: [O] Weight of headers

2012-02-26 Thread François Pinard
Nicolas Goaziou n.goaz...@gmail.com writes: pin...@iro.umontreal.ca (François Pinard) writes: My need here is to get an estimate of the weight of displayed headers. The following function will give you the number of sub-headings and paragraphs (or equivalent, i.e. tables verse-blocks).

Re: [O] Weight of headers

2012-02-26 Thread François Pinard
pin...@iro.umontreal.ca (François Pinard) writes: Roughly copying code from here and there (and not even understanding it, some dead code might remain), I turned your function into the following: Hmph! There seemingly is a problem however. I tried it on a few files, and it usually does it

Re: [O] Weight of headers

2012-02-26 Thread Samuel Wales
Great way of doing it. Another option is to create a new buffer and sort the headers by the weight. Ideally each header in the new buffer would be a link. Yet another is to use the agenda. I think it might have a new format string option for the weight. Then use the agenda to sort. And

Re: [O] Weight of headers

2012-02-26 Thread Nick Dokos
François Pinard pin...@iro.umontreal.ca wrote: pin...@iro.umontreal.ca (François Pinard) writes: Roughly copying code from here and there (and not even understanding it, some dead code might remain), I turned your function into the following: Hmph! There seemingly is a problem

[O] Weight of headers

2012-02-25 Thread François Pinard
Hello, all Org friends. Here is a need I have once in a while, but for which I do not even have realistic suggestions to offer (at least, so I feel). Maybe someone would offer more precise ideas. :-) When I have a big Org file which I want to re-organize, one of the criteria I use is to manage