GNU bug report logs - #79080
31.0.50; report-emacs-bug-check-org errors with args-out-range

Previous Next

Package: emacs;

Reported by: Daniel Mendler <mail <at> daniel-mendler.de>

Date: Wed, 23 Jul 2025 10:01:01 UTC

Severity: normal

Merged with 79138

Found in version 31.0.50

Done: Eli Zaretskii <eliz <at> gnu.org>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: Antero Mejr <mail <at> antr.me>
To: Eli Zaretskii <eliz <at> gnu.org>
Cc: Daniel Mendler <mail <at> daniel-mendler.de>, 79080 <at> debbugs.gnu.org
Subject: bug#79080: 31.0.50; report-emacs-bug-check-org errors with args-out-range
Date: Sat, 26 Jul 2025 15:23:16 +0000
[Message part 1 (text/plain, inline)]
Eli Zaretskii <eliz <at> gnu.org> writes:

>> Date: Wed, 23 Jul 2025 11:59:48 +0200
>> From:  Daniel Mendler via "Bug reports for GNU Emacs,
>>  the Swiss army knife of text editors" <bug-gnu-emacs <at> gnu.org>
>> 
>> While sending my last bug report I observed the following issue, where
>> `report-emacs-bug-check-org' throws an `args-out-of-range' error. I've
>> got the following stack trace:
>> 
> Antero, I think the bug here is in the assumption that the user edits
> the original text inserted by report-emacs-bug only to _add_ text.
> But that might not be true: users could remove some of the original
> text as well.  So something like the below is in order.  But I also
> wonder why we should look for the regular expression only in part of
> the message to be sent.  Can you explain why you did that?

The Features: section of the original text contains the string " org ",
which will match the regex and always flag a false positive.

The snippet you posted works but I think it will match that " org "
feature if the user removes any of the original text.

I attached a patch that compares the number of matches in the original
text to the edited text. This should avoid false positives unless the
user deletes the " org " strings from the original text. And it will fix
the error.

[0001-Fix-index-error-when-checking-edited-bug-reports.patch (text/x-diff, attachment)]

This bug report was last modified 19 days ago.

Previous Next


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