Document the function `org-outline-level'

This commit is contained in:
Carsten Dominik 2009-10-13 09:48:35 +02:00
parent 851caa74f9
commit 680e17848e
2 changed files with 11 additions and 0 deletions

View File

@ -1,3 +1,7 @@
2009-10-13 Carsten Dominik <carsten.dominik@gmail.com>
* org.el (org-outline-level): Add doc string.
2009-10-12 Carsten Dominik <carsten.dominik@gmail.com>
* org-inlinetask.el (org-inlinetask-export): Re-introduce

View File

@ -4659,6 +4659,13 @@ between words."
t)))
(defun org-outline-level ()
"Compute the outline level of the heading at point.
This function assumes that the cursor is at the beginning of a line matched
by outline-regexp. Otherwise it returns garbage.
If this is called at a normal headline, the level is the number of stars.
Use `org-reduced-level' to remove the effect of `org-odd-levels'.
For plain list items, if they are matched by `outline-regexp', this returns
1000 plus the line indentation."
(save-excursion
(looking-at outline-regexp)
(if (match-beginning 1)