diff options
author | Gerd Moellmann <gerd@gnu.org> | 2001-09-11 08:30:54 +0000 |
---|---|---|
committer | Gerd Moellmann <gerd@gnu.org> | 2001-09-11 08:30:54 +0000 |
commit | ac7b494762408c32905076611b2d0bca7b098d7f (patch) | |
tree | 7c616919cdfc79d8d1013af7c3036d9fd012c49b | |
parent | 1e1e5dafd7f35cff0f26db086fdbd4097e0a8cb1 (diff) | |
download | emacs-ac7b494762408c32905076611b2d0bca7b098d7f.tar.gz emacs-ac7b494762408c32905076611b2d0bca7b098d7f.tar.bz2 emacs-ac7b494762408c32905076611b2d0bca7b098d7f.zip |
(outline-mode): Use `^' and a shy group
when constructing imenu-generic-expression from outline-regexp.
-rw-r--r-- | lisp/textmodes/outline.el | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lisp/textmodes/outline.el b/lisp/textmodes/outline.el index 98eb043080b..823f92e4065 100644 --- a/lisp/textmodes/outline.el +++ b/lisp/textmodes/outline.el @@ -228,7 +228,7 @@ Turning on outline mode calls the value of `text-mode-hook' and then of (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@" |