From 388b4a12f58855f24eca8f00cd20659a9d2b81d6 Mon Sep 17 00:00:00 2001 From: Juri Linkov Date: Wed, 24 Nov 2021 20:46:53 +0200 Subject: [PATCH] =?utf8?q?*=20lisp/outline.el=20(outline-font-lock-keyword?= =?utf8?q?s):=20Replace=20=E2=80=98.+=E2=80=99=20with=20=E2=80=98.*?= =?utf8?q?=E2=80=99.?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit 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). --- lisp/outline.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- 2.39.5