changeset 39238:7370effcd55c

(outline-mode): Use `^' and a shy group when constructing imenu-generic-expression from outline-regexp.
author Gerd Moellmann <gerd@gnu.org>
date Tue, 11 Sep 2001 08:30:54 +0000
parents 6f790c6b0045
children 246f0728f1d7
files lisp/textmodes/outline.el
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/lisp/textmodes/outline.el	Tue Sep 11 08:22:05 2001 +0000
+++ b/lisp/textmodes/outline.el	Tue Sep 11 08:30:54 2001 +0000
@@ -228,7 +228,7 @@
   (set (make-local-variable 'font-lock-defaults)
        '(outline-font-lock-keywords t nil nil backward-paragraph))
   (setq imenu-generic-expression
-	(list (list nil (concat outline-regexp ".*$") 0)))
+	(list (list nil (concat "^\\(?:" outline-regexp "\\).*$") 0)))
   (add-hook 'change-major-mode-hook 'show-all nil t))
 
 (defcustom outline-minor-mode-prefix "\C-c@"