Subject: bug#48037: 28.0.50; add-change-log-entry does not detect name with digit

From: Lars Ingebrigtsen <[email-masked]>
Date: Tue, 27 Apr 2021 06:09:50 +0200

Michael Albinus <[email-masked]> writes:

>  (defcustom add-log-current-defun-header-regexp
> -  "^\\([[:upper:]][[:upper:]_ ]*[[:upper:]_]\\|[-_[:alpha:]]+\\)[ \t]*[:=]"
> +  "^\\([[:upper:]][[:upper:]_ ]*[[:upper:]_]\\|[-_[:alnum:]]+\\)[ \t]*[:=]"
>    "Heuristic regexp used by `add-log-current-defun' for unknown major modes.

This would also catch stuff like

2:
  stage: slow

which looks like a false positive?  So I think there should be some
alpha in there.  Probably.

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no