diff options
| author | Gerd Moellmann | 2001-09-11 08:30:54 +0000 |
|---|---|---|
| committer | Gerd Moellmann | 2001-09-11 08:30:54 +0000 |
| commit | ac7b494762408c32905076611b2d0bca7b098d7f (patch) | |
| tree | 7c616919cdfc79d8d1013af7c3036d9fd012c49b | |
| parent | 1e1e5dafd7f35cff0f26db086fdbd4097e0a8cb1 (diff) | |
| download | emacs-ac7b494762408c32905076611b2d0bca7b098d7f.tar.gz 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 | |||
| 228 | (set (make-local-variable 'font-lock-defaults) | 228 | (set (make-local-variable 'font-lock-defaults) |
| 229 | '(outline-font-lock-keywords t nil nil backward-paragraph)) | 229 | '(outline-font-lock-keywords t nil nil backward-paragraph)) |
| 230 | (setq imenu-generic-expression | 230 | (setq imenu-generic-expression |
| 231 | (list (list nil (concat outline-regexp ".*$") 0))) | 231 | (list (list nil (concat "^\\(?:" outline-regexp "\\).*$") 0))) |
| 232 | (add-hook 'change-major-mode-hook 'show-all nil t)) | 232 | (add-hook 'change-major-mode-hook 'show-all nil t)) |
| 233 | 233 | ||
| 234 | (defcustom outline-minor-mode-prefix "\C-c@" | 234 | (defcustom outline-minor-mode-prefix "\C-c@" |