Browse Source

Avoid getting inline tasks when using imenu

* lisp/org.el (org-imenu-get-tree): browse only true headlines.
Nicolas Goaziou 13 năm trước cách đây
mục cha
commit
d8bd43ed5f
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      lisp/org.el

+ 1 - 1
lisp/org.el

@@ -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)