forked from mirrors/org-mode
Document the function `org-outline-level'
This commit is contained in:
parent
851caa74f9
commit
680e17848e
|
@ -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>
|
2009-10-12 Carsten Dominik <carsten.dominik@gmail.com>
|
||||||
|
|
||||||
* org-inlinetask.el (org-inlinetask-export): Re-introduce
|
* org-inlinetask.el (org-inlinetask-export): Re-introduce
|
||||||
|
|
|
@ -4659,6 +4659,13 @@ between words."
|
||||||
t)))
|
t)))
|
||||||
|
|
||||||
(defun org-outline-level ()
|
(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
|
(save-excursion
|
||||||
(looking-at outline-regexp)
|
(looking-at outline-regexp)
|
||||||
(if (match-beginning 1)
|
(if (match-beginning 1)
|
||||||
|
|
Loading…
Reference in a new issue