emacs-diffs
[Top][All Lists]
Advanced

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

master 2444992: Improve add-log-current-defun-header-regexp


From: Michael Albinus
Subject: master 2444992: Improve add-log-current-defun-header-regexp
Date: Wed, 28 Apr 2021 04:06:00 -0400 (EDT)

branch: master
commit 244499292e0c5e0f210435f3949963e54f4dc4db
Author: Michael Albinus <michael.albinus@gmx.de>
Commit: Michael Albinus <michael.albinus@gmx.de>

    Improve add-log-current-defun-header-regexp
    
    * lisp/vc/add-log.el (add-log-current-defun-header-regexp):
    Allow digits.  Require at least one letter.  (Bug#48037)
---
 lisp/vc/add-log.el | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lisp/vc/add-log.el b/lisp/vc/add-log.el
index 6b38806..2e20284 100644
--- a/lisp/vc/add-log.el
+++ b/lisp/vc/add-log.el
@@ -1194,7 +1194,7 @@ file were isearch was started."
     (forward-paragraph n)))
 
 (defcustom add-log-current-defun-header-regexp
-  "^\\([[:upper:]][[:upper:]_ ]*[[:upper:]_]\\|[-_[:alpha:]]+\\)[ \t]*[:=]"
+  "^\\([[:upper:]][[:upper:]_ 
]*[[:upper:]_]\\|[-_[:alnum:]]*[[:alpha:]][-_[:alnum:]]*\\)[ \t]*[:=]"
   "Heuristic regexp used by `add-log-current-defun' for unknown major modes.
 The regexp's first submatch is placed in the ChangeLog entry, in
 parentheses."



reply via email to

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