From: Juri Linkov Date: Wed, 24 Nov 2021 18:46:53 +0000 (+0200) Subject: * lisp/outline.el (outline-font-lock-keywords): Replace ‘.+’ with ‘.*’. X-Git-Tag: emacs-29.0.90~2852^2~56 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=388b4a12f58855f24eca8f00cd20659a9d2b81d6;p=emacs.git * lisp/outline.el (outline-font-lock-keywords): Replace ‘.+’ with ‘.*’. Make the regexp less restrictive and don't require the outline heading to have more text after outline-regexp until the end of the heading line (bug#51016). --- diff --git a/lisp/outline.el b/lisp/outline.el index a4d2a3b7d74..2ede4e23eac 100644 --- a/lisp/outline.el +++ b/lisp/outline.el @@ -221,7 +221,7 @@ in the file it applies to.") (defvar outline-font-lock-keywords '( ;; Highlight headings according to the level. - (eval . (list (concat "^\\(?:" outline-regexp "\\).+") + (eval . (list (concat "^\\(?:" outline-regexp "\\).*") 0 '(if outline-minor-mode (if outline-minor-mode-cycle (if outline-minor-mode-highlight