From mboxrd@z Thu Jan 1 00:00:00 1970 From: Ilya Shlyakhter Subject: bug report: org-imenu-get-tree Date: Mon, 27 Feb 2012 18:07:15 -0500 Message-ID: Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=20cf3071ca7adbd56204b9fa2b28 Return-path: Received: from eggs.gnu.org ([208.118.235.92]:59506) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1S29fE-0007qB-UJ for emacs-orgmode@gnu.org; Mon, 27 Feb 2012 18:07:30 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1S29f3-0007Dg-UH for emacs-orgmode@gnu.org; Mon, 27 Feb 2012 18:07:28 -0500 Received: from mail-vw0-f41.google.com ([209.85.212.41]:33321) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1S29f3-0007DW-N3 for emacs-orgmode@gnu.org; Mon, 27 Feb 2012 18:07:17 -0500 Received: by vbbey12 with SMTP id ey12so1265982vbb.0 for ; Mon, 27 Feb 2012 15:07:15 -0800 (PST) List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs-orgmode --20cf3071ca7adbd56204b9fa2b28 Content-Type: text/plain; charset=ISO-8859-1 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. --20cf3071ca7adbd56204b9fa2b28 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: base64 SW4gb3JnLWltZW51LWdldC10cmVlLCA8YnI+oKCgoKCgoKCgICh3aGVuICgmbHQ7PSBsZXZlbCBu KTxicj6goKCgoKCgoKCgoCAobG9va2luZy1hdCBvcmctY29tcGxleC1oZWFkaW5nLXJlZ2V4cCk8 YnI+oKCgoKCgoKCgoKAgKHNldHEgaGVhZCAob3JnLWxpbmstZGlzcGxheS1mb3JtYXQ8YnI+oKAg oKCgoKCgoKCgoKCgoKCgoKCgoKCgIChvcmctbWF0Y2gtc3RyaW5nLW5vLXByb3BlcnRpZXMgNCkp PGJyPgqgIKAgoKCgoKCgoKCgoKCgoKAgbSAob3JnLWltZW51LW5ldy1tYXJrZXIpKTxicj48YnI+ PGJyPnNob3VsZCBwcm9iYWJseSBiZTxicj6goCCgoKCgoKCgICh3aGVuIChhbmQgKCZsdDs9IGxl dmVsIG4pPGJyPqCgoKCgoKCgoKCgoKCgoKAgoCCgoCAobG9va2luZy1hdCBvcmctY29tcGxleC1o ZWFkaW5nLXJlZ2V4cCkpPGJyPqCgoKCgoKCgoKCgIChzZXRxIGhlYWQgKG9yZy1saW5rLWRpc3Bs YXktZm9ybWF0PGJyPgoKoKAgoKCgoKCgoKCgoKCgoKCgoKCgoKCgIChvcmctbWF0Y2gtc3RyaW5n LW5vLXByb3BlcnRpZXMgNCkpPGJyPgqgIKAgoKCgoKCgoKCgoKCgoKAgbSAob3JnLWltZW51LW5l dy1tYXJrZXIpKTxicj6goKCgoKCgoKCgoCAuLi48YnI+PGJyPmkgaGFkIGFuIGhlYWRsaW5nIHdo aWNoIChhY2NpZGVudGFsbHkpIGNvbnNpc3RlZCBvZiBqdXN0IGEgdG9kbyBrZXl3b3JkLCBtYWtp bmcgKG9yZy1tYXRjaC1zdHJpbmctbm8tcHJvcGVydGllcyA0KSBuaWwuPGJyPjxicj4K --20cf3071ca7adbd56204b9fa2b28--