mirror of
git://git.sv.gnu.org/emacs.git
synced 2025-12-06 06:20:55 -08:00
Use 'outline-heading-end-regexp' consistently.
* lisp/outline.el (outline-font-lock-keywords): For non-nil 'outline-search-function' also search for 'outline-heading-end-regexp' afterwards like there is 'outline-heading-end-regexp' at the end of the regexp counterpart. (outline-minor-mode-highlight-buffer): Use 'outline-heading-end-regexp' like in 'outline-font-lock-keywords' instead of "$". For non-nil 'outline-search-function' also use 'outline-heading-end-regexp' the same way. * lisp/help.el (describe-bindings): Remove unnecessary buffer-local 'outline-heading-end-regexp'.
This commit is contained in:
parent
f9b311464d
commit
c9cb89edd5
2 changed files with 18 additions and 9 deletions
|
|
@ -793,7 +793,6 @@ or a buffer name."
|
|||
|
||||
(when describe-bindings-outline
|
||||
(setq-local outline-regexp ".*:$")
|
||||
(setq-local outline-heading-end-regexp ":\n")
|
||||
(setq-local outline-level (lambda () 1))
|
||||
(setq-local outline-minor-mode-cycle t
|
||||
outline-minor-mode-highlight t
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue