Mercurial > emacs
comparison lisp/textmodes/outline.el @ 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 | abf444fe5166 |
children | fc133c103640 |
comparison
equal
deleted
inserted
replaced
39237:6f790c6b0045 | 39238:7370effcd55c |
---|---|
226 (set (make-local-variable 'paragraph-separate) | 226 (set (make-local-variable 'paragraph-separate) |
227 (concat paragraph-separate "\\|\\(" outline-regexp "\\)")) | 227 (concat paragraph-separate "\\|\\(" outline-regexp "\\)")) |
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@" |
235 "*Prefix key to use for Outline commands in Outline minor mode. | 235 "*Prefix key to use for Outline commands in Outline minor mode. |
236 The value of this variable is checked as part of loading Outline mode. | 236 The value of this variable is checked as part of loading Outline mode. |