Re: [O] Weight of headers

2012-02-26 Thread Nick Dokos
François Pinard 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 however. > > I trie

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 anothe

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 François Pinard
Nicolas Goaziou 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). Wow, thanks!

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-organiz

[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 t