]> git.eshelyaron.com Git - emacs.git/commitdiff
Improve add-log-current-defun-header-regexp
authorMichael Albinus <michael.albinus@gmx.de>
Wed, 28 Apr 2021 08:05:53 +0000 (10:05 +0200)
committerMichael Albinus <michael.albinus@gmx.de>
Wed, 28 Apr 2021 08:05:53 +0000 (10:05 +0200)
* 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

index 6b38806651594f6c90bb2cc5d335197532b2c97a..2e20284951feb6e23d7593ab6512bb94142f505b 100644 (file)
@@ -1194,7 +1194,7 @@ file were isearch was started."
     (forward-paragraph n)))
 \f
 (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."