GNU bug report logs - #73524
29.4; bug-reference-mode matches regexp case-insensitively

Previous Next

Package: emacs;

Reported by: Ulrich Mueller <ulm <at> gentoo.org>

Date: Sat, 28 Sep 2024 06:56:01 UTC

Severity: wishlist

Found in version 29.4

Full log


Message #8 received at 73524 <at> debbugs.gnu.org (full text, mbox):

From: Eli Zaretskii <eliz <at> gnu.org>
To: Ulrich Mueller <ulm <at> gentoo.org>, Tassilo Horn <tsdh <at> gnu.org>
Cc: 73524 <at> debbugs.gnu.org
Subject: Re: bug#73524: 29.4;
 bug-reference-mode matches regexp case-insensitively
Date: Sat, 28 Sep 2024 11:39:26 +0300
> From: Ulrich Mueller <ulm <at> gentoo.org>
> Date: Sat, 28 Sep 2024 08:24:26 +0200
> 
> bug-reference-bug-regexp is matched case-insensitively, while both its
> default value and the example regexp "\\([Bb]ug[#-]\\([0-9]+\\)\\)"
> from the "Bug Reference" section of the manual indicate otherwise.
> 
> To reproduce, save attached file as bugref.txt, then:
> $ emacs -Q bugref.txt
> 
> It will correctly highlight "bug-1234" and "Bug-5678" but also
> "bUg-9012" which shouldn't be matched by the regexp.

I'm not sure I see the harm in that (e.g., what if someone made a
mistake while typing the commit log message? these are immutable with
Git once pushed), but I've added Tassilo to this discussion in case he
has an opinion.




This bug report was last modified 223 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.