Sfoglia il codice sorgente

Avoid getting inline tasks when using imenu

* lisp/org.el (org-imenu-get-tree): browse only true headlines.
Nicolas Goaziou 13 anni fa
parent
commit
d8bd43ed5f
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  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)