Avoid getting inline tasks when using imenu

* lisp/org.el (org-imenu-get-tree): browse only true headlines.
This commit is contained in:
Nicolas Goaziou 2011-07-21 01:43:29 +02:00
parent 0b4b66b302
commit d8bd43ed5f
1 changed files with 1 additions and 1 deletions

View File

@ -20248,7 +20248,7 @@ Show the heading too, if it is currently invisible."
(mapc (lambda (x) (move-marker x nil)) org-imenu-markers)
(setq org-imenu-markers nil)
(let* ((n org-imenu-depth)
(re (concat "^" outline-regexp))
(re (org-get-limited-outline-regexp))
(subs (make-vector (1+ n) nil))
(last-level 0)
m level head)