From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Tom Tromey Newsgroups: gmane.emacs.bugs Subject: bug#61395: 28.2; bug-reference warning seems incorrect Date: Fri, 10 Feb 2023 11:25:09 -0700 Message-ID: <87r0uxgyyi.fsf@tromey.com> References: <87pmailkqw.fsf@tromey.com> <838rh6kjua.fsf@gnu.org> <877cwplg1s.fsf@tcd.ie> <871qmx7bvv.fsf@gnu.org> <87h6vtjxjp.fsf@tromey.com> <87357dxvax.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="33956"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.2 (gnu/linux) Cc: Basil Contovounesios , Eli Zaretskii , Tom Tromey , 61395@debbugs.gnu.org To: Tassilo Horn Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Fri Feb 10 19:26:17 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 1pQY6B-0008dS-Vp for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 10 Feb 2023 19:26:16 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pQY60-00061I-5f; Fri, 10 Feb 2023 13:26: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 1pQY5z-000619-2H for bug-gnu-emacs@gnu.org; Fri, 10 Feb 2023 13:26:03 -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 1pQY5y-0004kR-Mf for bug-gnu-emacs@gnu.org; Fri, 10 Feb 2023 13:26:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1pQY5y-0003w0-67 for bug-gnu-emacs@gnu.org; Fri, 10 Feb 2023 13:26:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Tom Tromey Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 10 Feb 2023 18:26:02 +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.167605352815078 (code B ref 61395); Fri, 10 Feb 2023 18:26:02 +0000 Original-Received: (at 61395) by debbugs.gnu.org; 10 Feb 2023 18:25:28 +0000 Original-Received: from localhost ([127.0.0.1]:38111 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pQY5P-0003v7-Kf for submit@debbugs.gnu.org; Fri, 10 Feb 2023 13:25:28 -0500 Original-Received: from gproxy5-pub.mail.unifiedlayer.com ([67.222.38.55]:41764 helo=progateway7-pub.mail.pro1.eigbox.com) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pQY5K-0003uj-L8 for 61395@debbugs.gnu.org; Fri, 10 Feb 2023 13:25:26 -0500 Original-Received: from cmgw13.mail.unifiedlayer.com (unknown [10.0.90.128]) by progateway7.mail.pro1.eigbox.com (Postfix) with ESMTP id 81B9410047C30 for <61395@debbugs.gnu.org>; Fri, 10 Feb 2023 18:25:13 +0000 (UTC) Original-Received: from box5379.bluehost.com ([162.241.216.53]) by cmsmtp with ESMTP id QY5BpUkdWNX2aQY5BpFftF; Fri, 10 Feb 2023 18:25:13 +0000 X-Authority-Reason: nr=8 X-Authority-Analysis: v=2.4 cv=NMAQR22g c=1 sm=1 tr=0 ts=63e68c09 a=ApxJNpeYhEAb1aAlGBBbmA==:117 a=ApxJNpeYhEAb1aAlGBBbmA==:17 a=dLZJa+xiwSxG16/P+YVxDGlgEgI=:19 a=m04uMKEZRckA:10:nop_rcvd_month_year a=Qbun_eYptAEA:10:endurance_base64_authed_username_1 a=CCpqsmhAAAAA:8 a=mDV3o1hIAAAA:8 a=3ayllhvOhPMF48NGlr4A:9 a=r-HJ9bD__24A:10:nop_bhvr_url2_has_invalid_perc a=BB4e4wfnyky9u2drSAfk:22 a=ul9cdbp4aOFLsgKbc677:22 a=_FVE-zBwftR9WsbkzFJk:22 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=tromey.com; s=default; h=Content-Type:MIME-Version:Message-ID:In-Reply-To:Date:References :Subject:Cc:To:From:Sender:Reply-To:Content-Transfer-Encoding:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Id:List-Help:List-Unsubscribe:List-Subscribe: List-Post:List-Owner:List-Archive; bh=BAQlerDhe8hV+rnQhHfTZVqLADCmyh5rzLxVPmB8WWc=; b=wvIcRGNlF9y5qmRvWLAMXNXgTd s2BJ338By1xbWdU0rVYjvTNUc+P69Up/Oo91oEbTHU21erBYA3QL4VIC1b9KwJrnZfMecVYTzTvm4 7MhoIBQBl/3/t6fQueaugh97V; Original-Received: from 75-166-130-93.hlrn.qwest.net ([75.166.130.93]:46442 helo=prentzel) by box5379.bluehost.com with esmtpsa (TLS1.2) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.95) (envelope-from ) id 1pQY5B-001tMq-4q; Fri, 10 Feb 2023 11:25:13 -0700 X-Attribution: Tom In-Reply-To: <87357dxvax.fsf@gnu.org> (Tassilo Horn's message of "Fri, 10 Feb 2023 18:21:09 +0100") X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - box5379.bluehost.com X-AntiAbuse: Original Domain - debbugs.gnu.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - tromey.com X-BWhitelist: no X-Source-IP: 75.166.130.93 X-Source-L: No X-Exim-ID: 1pQY5B-001tMq-4q X-Source-Sender: 75-166-130-93.hlrn.qwest.net (prentzel) [75.166.130.93]:46442 X-Source-Auth: tom+tromey.com X-Email-Count: 12 X-Source-Cap: ZWx5bnJvYmk7ZWx5bnJvYmk7Ym94NTM3OS5ibHVlaG9zdC5jb20= X-Local-Domain: yes 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:255299 Archived-At: Tassilo> If you can reproduce the issue, try changing Tassilo> `bug-reference--overlay-bounds' so that the check Tassilo> (member bug-reference-bug-regexp Tassilo> bug-reference--nonconforming-regexps) Ok, I can reproduce it now. I removed this bit from bug-reference--overlay-bounds: (setq bug-reference--nonconforming-regexps (cons bug-reference-bug-regexp bug-reference--nonconforming-regexps)) Then I set bug-reference--nonconforming-regexps to nil. This combination means I can see the warning any time. The gdb .dir-locals.el has this setting: (bug-reference-url-format . "http://sourceware.org/bugzilla/show_bug.cgi?id=%s") I can send the whole file if you want, but I think this is the only relevant part. I've appended a file from gdb. This is a .exp (dejagnu script) file, which should use tcl-mode. I have this code to enable bug reference mode: (defun tromey-maybe-enable-bug-url-mode () (and (boundp 'bug-reference-url-format) (stringp bug-reference-url-format) (if (or (derived-mode-p 'prog-mode) (eq major-mode 'tcl-mode) ;emacs 23 bug (eq major-mode 'makefile-mode)) ;emacs 23 bug (bug-reference-prog-mode t) (bug-reference-mode t)))) (add-hook 'find-file-hook #'tromey-maybe-enable-bug-url-mode) LOL workarounds for emacs 23. Anyway, I switched back to the .exp buffer and re-opened the file (C-x C-v RET). I saw the warning again. thanks, Tom # Copyright (C) 2019-2023 Free Software Foundation, Inc. # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 3 of the License, or # (at your option) any later version. # # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. # # You should have received a copy of the GNU General Public License # along with this program. If not, see . standard_testfile realname-expand.c realname-expand-real.c # Compiling on a remote host does not support a filename with # directory. require {!is_remote host} set srcdirabs [file join [pwd] $srcdir] set srcfilelink [standard_output_file realname-expand-link.c] remote_exec build "ln -sf ${srcdirabs}/${subdir}/${srcfile2} $srcfilelink" if { [file type $srcfilelink] != "link" } { unsupported "target directory cannot have symbolic links" return -1 } if { [gdb_compile "${srcdir}/${subdir}/${srcfile} ${srcfilelink}" "${binfile}" \ executable {debug}] != "" } { untested "failed to compile" return -1 } clean_restart ${testfile} if {![runto_main]} { return -1 } gdb_breakpoint func message gdb_test_no_output "set annotate 1" # The patch to cause this output was reverted. # See PR breakpoints/24915. setup_xfail *-*-* 24915 gdb_test "continue" \ "Breakpoint .* func .*realname-expand-link.c:$decimal\r\n\032\032.*realname-expand-link.c:.*"