emacs-orgmode
[
Top
][
All Lists
]
Advanced
[
Date Prev
][
Date Next
][
Thread Prev
][
Thread Next
][
Date Index
][
Thread Index
]
[O] [PATCH] imenu: Added a check that looking-at succeeds before using t
From
:
Ilya Shlyakhter
Subject
:
[O] [PATCH] imenu: Added a check that looking-at succeeds before using the match results.
Date
:
Thu, 8 Mar 2012 14:34:13 -0500
* lisp/org.el (org-imenu-get-tree): Check that looking-at succeeds before using match results.
TINYCHANGE
---
lisp/org.el | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/lisp/org.el b/lisp/org.el
index ad63213..e4fb497 100644
--- a/lisp/org.el
+++ b/lisp/org.el
@@ -21250,8 +21250,8 @@ Show the heading too, if it is currently invisible."
(goto-char (point-max))
(while (re-search-backward re nil t)
(setq level (org-reduced-level (funcall outline-level)))
- (when (<= level n)
- (looking-at org-complex-heading-regexp)
+ (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))
--
1.7.9.3
reply via email to
[Prev in Thread]
Current Thread
[
Next in Thread
]
[O] [PATCH] imenu: Added a check that looking-at succeeds before using the match results.
,
Ilya Shlyakhter
<=
Re: [O] [PATCH] imenu: Added a check that looking-at succeeds before using the match results.
,
Achim Gratz
,
2012/03/08
Re: [O] [PATCH] imenu: Added a check that looking-at succeeds before using the match results.
,
Ilya Shlyakhter
,
2012/03/08
Re: [O] [PATCH] imenu: Added a check that looking-at succeeds before using the match results.
,
Bastien
,
2012/03/20
Prev by Date:
Re: [O] worg latex example "11 Styling the Frontmatter"
Next by Date:
[O] [Babel] : Bug in org-tangle with :comments, patch included
Previous by thread:
[O] How to reduce width of section separators in agenda view?
Next by thread:
Re: [O] [PATCH] imenu: Added a check that looking-at succeeds before using the match results.
Index(es):
Date
Thread