[Orgmode] Re: `C-u 2 S-Tab' with `#+STARTUP: odd'

2009-10-14 Thread Michael Brand
I have troube understanding what you mean. An outline heading looks like this *** heading If the cursor is at the first character of that line, org-outline-level will return 3. I want `3' _independently_ of on which column the cursor is on that line and therefore use (save-excursion (beginn

[Orgmode] Re: `C-u 2 S-Tab' with `#+STARTUP: odd'

2009-10-14 Thread Carsten Dominik
On Oct 14, 2009, at 8:19 AM, Michael Brand wrote: There is something more with org-outline-level in org-version 6.31a which I still don't understand because I am not aware of some functions used in its implementation. I drilled down the quite special situation to the following file content

[Orgmode] Re: `C-u 2 S-Tab' with `#+STARTUP: odd'

2009-10-14 Thread Michael Brand
Here I am lost and would like some help. I was not able to find out how to determine if the cursor is on a line with an outline heading or not. I think you can use the function org-on-heading-p to determine if you are on a heading or not. Thank you, exactly what I have missed. __

[Orgmode] Re: `C-u 2 S-Tab' with `#+STARTUP: odd'

2009-10-14 Thread Bernt Hansen
Michael Brand writes: > Here I am lost and would like some help. I was not able to find out > how to determine if the cursor is on a line with an outline heading or > not. I think you can use the function org-on-heading-p to determine if you are on a heading or not. HTH -Bernt ___

[Orgmode] Re: `C-u 2 S-Tab' with `#+STARTUP: odd'

2009-10-13 Thread Michael Brand
There is something more with org-outline-level in org-version 6.31a which I still don't understand because I am not aware of some functions used in its implementation. I drilled down the quite special situation to the following file content. I hope that the indentation of x by three spaces does

[Orgmode] Re: `C-u 2 S-Tab' with `#+STARTUP: odd'

2009-10-13 Thread Carsten Dominik
On Oct 12, 2009, at 10:00 PM, Michael Brand wrote: I wonder how the function org-outline-level is intended to work. Should it show the outline level or count the stars like in org- version 6.31a and one has to take into account `odd' himself to get the outline level when implementing own st

[Orgmode] Re: `C-u 2 S-Tab' with `#+STARTUP: odd'

2009-10-12 Thread Michael Brand
I wonder how the function org-outline-level is intended to work. Should it show the outline level or count the stars like in org-version 6.31a and one has to take into account `odd' himself to get the outline level when implementing own stuff which use e. g. the function org-shifttab? org-out

[Orgmode] Re: `C-u 2 S-Tab' with `#+STARTUP: odd'

2009-10-12 Thread Carsten Dominik
On Oct 12, 2009, at 9:24 AM, Michael Brand wrote: Thank you for the fix of the function org-shifttab in org-version 6.31a. I wonder how the function org-outline-level is intended to work. Should it show the outline level or count the stars like in org- version 6.31a and one has to take in

[Orgmode] Re: `C-u 2 S-Tab' with `#+STARTUP: odd'

2009-10-12 Thread Michael Brand
Thank you for the fix of the function org-shifttab in org-version 6.31a. I wonder how the function org-outline-level is intended to work. Should it show the outline level or count the stars like in org-version 6.31a and one has to take into account `odd' himself to get the outline level when im