all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Lars Ingebrigtsen <larsi@gnus.org>
To: Michael Albinus <michael.albinus@gmx.de>
Cc: 48037@debbugs.gnu.org
Subject: bug#48037: 28.0.50; add-change-log-entry does not detect name with digit
Date: Tue, 27 Apr 2021 09:34:17 +0200	[thread overview]
Message-ID: <874kfs18qu.fsf@gnus.org> (raw)
In-Reply-To: <874kfskwvo.fsf@gmx.de> (Michael Albinus's message of "Tue, 27 Apr 2021 09:30:19 +0200")

Michael Albinus <michael.albinus@gmx.de> 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.

[...]

> Yes. However, the existing regexp hits also entries like
>
> -:
>   stage: slow
>
> Looks also strange. So my proposal won't get worse. Remember,
> add-log-current-defun-header-regexp is just a heuristic.

Sure, but why not improve the regexp at the same time?  That is,
require at least one [:alpha:] for an identifier -- I think that's
pretty reasonable as heuristics go.

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





  reply	other threads:[~2021-04-27  7:34 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-04-26 15:49 bug#48037: 28.0.50; add-change-log-entry does not detect name with digit Michael Albinus
2021-04-27  4:09 ` Lars Ingebrigtsen
2021-04-27  7:30   ` Michael Albinus
2021-04-27  7:34     ` Lars Ingebrigtsen [this message]
2021-04-27  7:55       ` Michael Albinus
2021-04-27 10:31         ` Michael Albinus
2021-04-27 23:17         ` Lars Ingebrigtsen
2021-04-28  8:07           ` Michael Albinus

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=874kfs18qu.fsf@gnus.org \
    --to=larsi@gnus.org \
    --cc=48037@debbugs.gnu.org \
    --cc=michael.albinus@gmx.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.