emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Ilya Shlyakhter <ilya_shl@alum.mit.edu>
To: emacs-orgmode <emacs-orgmode@gnu.org>
Subject: bug report: org-imenu-get-tree
Date: Mon, 27 Feb 2012 18:07:15 -0500	[thread overview]
Message-ID: <CACfYvRbktBBkjN6xnAzaXp+iGj6WAjyUP5qDBSMFWw_y+Oyfxg@mail.gmail.com> (raw)

[-- 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 --]

                 reply	other threads:[~2012-02-27 23:07 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=CACfYvRbktBBkjN6xnAzaXp+iGj6WAjyUP5qDBSMFWw_y+Oyfxg@mail.gmail.com \
    --to=ilya_shl@alum.mit.edu \
    --cc=emacs-orgmode@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

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