From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#61395: 28.2; bug-reference warning seems incorrect Date: Fri, 10 Feb 2023 10:25:49 +0200 Message-ID: <838rh6kjua.fsf@gnu.org> References: <87pmailkqw.fsf@tromey.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="15975"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 61395@debbugs.gnu.org To: Tom Tromey Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Fri Feb 10 09:27:15 2023 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1pQOkU-0003tl-Ri for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 10 Feb 2023 09:27:15 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pQOkK-00050D-KR; Fri, 10 Feb 2023 03:27:04 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pQOkI-0004zY-D8 for bug-gnu-emacs@gnu.org; Fri, 10 Feb 2023 03:27:02 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1pQOkI-0003MY-4g for bug-gnu-emacs@gnu.org; Fri, 10 Feb 2023 03:27:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1pQOkH-0001Pc-O2 for bug-gnu-emacs@gnu.org; Fri, 10 Feb 2023 03:27:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 10 Feb 2023 08:27:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 61395 X-GNU-PR-Package: emacs Original-Received: via spool by 61395-submit@debbugs.gnu.org id=B61395.16760176045399 (code B ref 61395); Fri, 10 Feb 2023 08:27:01 +0000 Original-Received: (at 61395) by debbugs.gnu.org; 10 Feb 2023 08:26:44 +0000 Original-Received: from localhost ([127.0.0.1]:34284 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pQOjz-0001P1-T3 for submit@debbugs.gnu.org; Fri, 10 Feb 2023 03:26:44 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:46486) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pQOjx-0001Ol-CF for 61395@debbugs.gnu.org; Fri, 10 Feb 2023 03:26:41 -0500 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pQOjr-0003Em-86; Fri, 10 Feb 2023 03:26:35 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-version:References:Subject:In-Reply-To:To:From: Date; bh=i8L2YP9TU1/aDipd7xEIW+mbiYT6G/jDOLbY5AIFmtI=; b=mG40KULsrrzzScmYazZZ +48CbOZa+A2qSy/dWQtT9LpBTwpf7ed+qHuxJ6sJB1SoxZx3oeXpxDV40d7r04fDJvf2yxeqDZmNy xEaRjDPVARPBtacF/XfuKb7mSBME4YMdOlspPkC+Xt3R4TMlD+I7/F3b+hqglbJ9/erobxlwqZzyr 1ywbkpdzLM/CC3Mlu6hBdKFnTH0zy5uuLgS8f06CqWap9a2VCweRp328rixpQSjSczKL9pAW3KIQU 7RStrfNOs7Ew655rShrhDVpXad8chot5KkZrrzhtKd/+EWLKS0YI1HY1AOhr3dNuvqlogAHFL+DtY HA/hK5ZRyIB+mA==; Original-Received: from [87.69.77.57] (helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pQOje-0003Yz-La; Fri, 10 Feb 2023 03:26:28 -0500 In-Reply-To: <87pmailkqw.fsf@tromey.com> (message from Tom Tromey on Thu, 09 Feb 2023 12:08:39 -0700) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:255283 Archived-At: > From: Tom Tromey > Date: Thu, 09 Feb 2023 12:08:39 -0700 > > > I got this warning while using bug-reference-prog-mode on a certain file > in gdb: > > Warning (bug-reference): The value of ‘bug-reference-bug-regexp’ > > "\\(\\b\\(?:[Bb]ug ?#?\\|[Pp]atch ?#\\|RFE ?#\\|PR [a-z+-]+/\\)\\([0-9]+\\(?:#[0-9]+\\)?\\)\\)" > > in buffer "finish.exp" doesn’t conform to the contract specified by its > docstring. The subexpression 1 should define the region of the > bug-reference overlay and cover all other subexpressions up to > subexpression 10. Disable showing Disable logging > > > However, this warning seems wrong to me. If you examine the above > regexp, you'll see it does cover all the other subexpressions. > > Perhaps it is mis-worded somehow and the actual problem is something > else? It's worth noting here that this is the default value for this > regexp: > > (defcustom bug-reference-bug-regexp > "\\(\\b\\(?:[Bb]ug ?#?\\|[Pp]atch ?#\\|RFE ?#\\|PR [a-z+-]+/\\)\\([0-9]+\\(?:#[0-9]+\\)?\\)\\)" > > In gdb we use this setting for bug-reference-url-format, in case this > matters somehow: > > (bug-reference-url-format . "http://sourceware.org/bugzilla/show_bug.cgi?id=%s") Thanks, but could you perhaps post a recipe for reproducing the warning? Based on your description, I couldn't understand how to reproduce it: which variables to change (with the single exception of bug-reference-url-format), and what should be the buffer text to trigger the warning. Could you help me reproducing the problem, so I could investigate it and see how to fix it?