emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

master 388b4a1: * lisp/outline.el (outline-font-lock-keywords): Replace


From: Juri Linkov
Subject: master 388b4a1: * lisp/outline.el (outline-font-lock-keywords): Replace ‘.+’ with ‘.*’.
Date: Wed, 24 Nov 2021 13:48:21 -0500 (EST)

branch: master
commit 388b4a12f58855f24eca8f00cd20659a9d2b81d6
Author: Juri Linkov <juri@linkov.net>
Commit: Juri Linkov <juri@linkov.net>

    * 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).
---
 lisp/outline.el | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lisp/outline.el b/lisp/outline.el
index a4d2a3b..2ede4e2 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



reply via email to

[Prev in Thread] Current Thread [Next in Thread]