emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* bug report: org-imenu-get-tree
@ 2012-02-27 23:07 Ilya Shlyakhter
  0 siblings, 0 replies; only message in thread
From: Ilya Shlyakhter @ 2012-02-27 23:07 UTC (permalink / raw)
  To: emacs-orgmode

[-- Attachment #1: Type: text/plain, Size: 668 bytes --]

In org-imenu-get-tree,
          (when (<= level n)
            (looking-at org-complex-heading-regexp)
            (setq head (org-link-display-format
                         (org-match-string-no-properties 4))
                   m (org-imenu-new-marker))

should probably be
           (when (and (<= level n)
                      (looking-at org-complex-heading-regexp))
            (setq head (org-link-display-format
                         (org-match-string-no-properties 4))
                   m (org-imenu-new-marker))

i had an headling which (accidentally) consisted of just a todo keyword,
making (org-match-string-no-properties 4) nil.

[-- Attachment #2: Type: text/html, Size: 735 bytes --]

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2012-02-27 23:07 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-02-27 23:07 bug report: org-imenu-get-tree Ilya Shlyakhter

Code repositories for project(s) associated with this public inbox


This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).