From unknown Sun Jun 22 08:08:53 2025 X-Loop: help-debbugs@gnu.org Subject: bug#61395: 28.2; bug-reference warning seems incorrect Resent-From: Tom Tromey Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 09 Feb 2023 19:10:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 61395 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: 61395@debbugs.gnu.org X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.167596974818762 (code B ref -1); Thu, 09 Feb 2023 19:10:02 +0000 Received: (at submit) by debbugs.gnu.org; 9 Feb 2023 19:09:08 +0000 Received: from localhost ([127.0.0.1]:33752 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pQCI7-0004sX-U9 for submit@debbugs.gnu.org; Thu, 09 Feb 2023 14:09:08 -0500 Received: from lists.gnu.org ([209.51.188.17]:54592) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pQCI5-0004sO-Rl for submit@debbugs.gnu.org; Thu, 09 Feb 2023 14:09:06 -0500 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 1pQCI5-0000Kb-M4 for bug-gnu-emacs@gnu.org; Thu, 09 Feb 2023 14:09:05 -0500 Received: from gproxy3-pub.mail.unifiedlayer.com ([69.89.30.42]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pQCI1-00025F-Th for bug-gnu-emacs@gnu.org; Thu, 09 Feb 2023 14:09:05 -0500 Received: from cmgw14.mail.unifiedlayer.com (unknown [10.0.90.129]) by progateway5.mail.pro1.eigbox.com (Postfix) with ESMTP id 22C1D1007383A for ; Thu, 9 Feb 2023 19:08:43 +0000 (UTC) Received: from box5379.bluehost.com ([162.241.216.53]) by cmsmtp with ESMTP id QCHipJc9oGAj8QCHipg4AY; Thu, 09 Feb 2023 19:08:43 +0000 X-Authority-Reason: nr=8 X-Authority-Analysis: v=2.4 cv=UdyU9IeN c=1 sm=1 tr=0 ts=63e544bb a=ApxJNpeYhEAb1aAlGBBbmA==:117 a=ApxJNpeYhEAb1aAlGBBbmA==:17 a=dLZJa+xiwSxG16/P+YVxDGlgEgI=:19 a=IkcTkHD0fZMA:10:nop_charset_1 a=m04uMKEZRckA:10:nop_rcvd_month_year a=Qbun_eYptAEA:10:endurance_base64_authed_username_1 a=CCpqsmhAAAAA:8 a=vTr9H3xdAAAA:8 a=aR16PxjQAAAA:8 a=sxt07eeNDrDxN6pDSu4A:9 a=r-HJ9bD__24A:10:nop_bhvr_url2_has_invalid_perc a=QEXdDO2ut3YA:10:nop_charset_2 a=BB4e4wfnyky9u2drSAfk:22 a=ul9cdbp4aOFLsgKbc677:22 a=7PCjnrUJ-F5voXmZD6jJ:22 a=zbFvvTOBjyH4ze5LlUjX:22 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=tromey.com; s=default; h=Content-Transfer-Encoding:Content-Type:MIME-Version:Message-ID: Date:Subject:To:From:Sender:Reply-To:Cc:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: In-Reply-To:References:List-Id:List-Help:List-Unsubscribe:List-Subscribe: List-Post:List-Owner:List-Archive; bh=vAb+re1zxIz218YfwjasVsMpRKTts9PWwICYs8L3b8A=; b=DcBItT4QAkdGlL6yQFt+xpxnjf u7q2rkqERsZMBMKEtwqoHjdB5Jej3sVW/guxugAQJBa1EF/e6gIAi6rp3VcfUm4cpKFZtcPkE4BOo lRwHYhdocHQo1ng3HPq7oLrE7; Received: from 75-166-130-93.hlrn.qwest.net ([75.166.130.93]:54208 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 1pQCHi-003iXc-1G; Thu, 09 Feb 2023 12:08:42 -0700 From: Tom Tromey X-Attribution: Tom Date: Thu, 09 Feb 2023 12:08:39 -0700 Message-ID: <87pmailkqw.fsf@tromey.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable 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 - 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: 1pQCHi-003iXc-1G X-Source: X-Source-Args: X-Source-Dir: X-Source-Sender: 75-166-130-93.hlrn.qwest.net (prentzel) [75.166.130.93]:54208 X-Source-Auth: tom+tromey.com X-Email-Count: 1 X-Source-Cap: ZWx5bnJvYmk7ZWx5bnJvYmk7Ym94NTM3OS5ibHVlaG9zdC5jb20= X-Local-Domain: yes Received-SPF: pass client-ip=69.89.30.42; envelope-from=tom@tromey.com; helo=gproxy3-pub.mail.unifiedlayer.com X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Score: -1.6 (-) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -2.6 (--) I got this warning while using bug-reference-prog-mode on a certain file in gdb: Warning (bug-reference): The value of =E2=80=98bug-reference-bug-regexp=E2= =80=99 "\\(\\b\\(?:[Bb]ug ?#?\\|[Pp]atch ?#\\|RFE ?#\\|PR [a-z+-]+/\\)\\([0-9]+\= \(?:#[0-9]+\\)?\\)\\)" in buffer "finish.exp" doesn=E2=80=99t 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= =3D%s") In GNU Emacs 28.2 (build 1, x86_64-redhat-linux-gnu, GTK+ Version 3.24.35, = cairo version 1.17.6) of 2022-12-31 built on buildvm-x86-18.iad2.fedoraproject.org Windowing system distributor 'The X.Org Foundation', version 11.0.12201007 System Description: Fedora Linux 36 (Workstation Edition) Configured using: 'configure --build=3Dx86_64-redhat-linux-gnu --host=3Dx86_64-redhat-linux-gnu --program-prefix=3D --disable-dependency-tracking --prefix=3D/usr --exec-prefix=3D/usr --bindir=3D/usr/bin --sbindir=3D/usr/sbin --sysconfdir=3D/etc --datadir=3D/usr/share --includedir=3D/usr/include --libdir=3D/usr/lib64 --libexecdir=3D/usr/libexec --localstatedir=3D/var --sharedstatedir=3D/var/lib --mandir=3D/usr/share/man --infodir=3D/usr/share/info --with-dbus --with-gif --with-jpeg --with-png --with-rsvg --with-tiff --with-xpm --with-x-toolkit=3Dgtk3 --with-gpm=3Dno --with-xwidgets --with-modules --with-harfbuzz --with-cairo --with-json --with-native-compilation build_alias=3Dx86_64-redhat-linux-gnu host_alias=3Dx86_64-redhat-linux-gnu CC=3Dgcc 'CFLAGS=3D-DMAIL_USE_LOCKF -= O2 -flto=3Dauto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=3Dformat-security -Wp,-D_FORTIFY_SOURCE=3D2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=3D/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=3D/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=3Dgeneric -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection' LDFLAGS=3D-Wl,-z,relro PKG_CONFIG_PATH=3D:/usr/lib64/pkgconfig:/usr/share/pkgconfig' Configured features: ACL CAIRO DBUS FREETYPE GIF GLIB GMP GNUTLS GSETTINGS HARFBUZZ JPEG JSON LIBOTF LIBSELINUX LIBSYSTEMD LIBXML2 M17N_FLT MODULES NATIVE_COMP NOTIFY INOTIFY PDUMPER PNG RSVG SECCOMP SOUND THREADS TIFF TOOLKIT_SCROLL_BARS X11 XDBE XIM XPM XWIDGETS GTK3 ZLIB Important settings: value of $LANG: en_US.UTF-8 value of $XMODIFIERS: @im=3Dibus locale-coding-system: utf-8-unix Major mode: Tcl Minor modes in effect: ggtags-mode: t bug-reference-prog-mode: t flyspell-mode: t shell-dirtrack-mode: t which-function-mode: t erc-services-mode: t erc-networks-mode: t savehist-mode: t tooltip-mode: t global-eldoc-mode: t show-paren-mode: t electric-indent-mode: t mouse-wheel-mode: t file-name-shadow-mode: t global-font-lock-mode: t font-lock-mode: t auto-composition-mode: t auto-encryption-mode: t auto-compression-mode: t column-number-mode: t line-number-mode: t auto-fill-function: do-auto-fill indent-tabs-mode: t transient-mark-mode: t Load-path shadows: /home/tromey/.emacs.d/elpa/bubbles-0.5/bubbles hides /usr/share/emacs/28.2/= lisp/play/bubbles /home/tromey/.emacs.d/elpa/dictionary-1.10/dictionary hides /usr/share/emac= s/28.2/lisp/net/dictionary Features: (shadow emacsbug rust-mode tabify man sh-script executable compare-w vc-annotate forth-interaction-mode forth-mode forth-spec forth-smie smie forth-syntax ert debug backtrace autoload tar-mode lisp-mnt url-http url-gw url-auth gud gnus-icalendar org-capture org-refile icalendar cus-edit cus-start cl-print shortdoc asm-mode apropos reposition conf-mode autoconf autoconf-mode texinfo texinfo-loaddefs m4-mode make-mode mule-util dired-aux arc-mode archive-mode flow-fill gnus-html help-fns radix-tree url-cache tcl macros org-bullets org-element avl-tree ol-eww eww xdg url-queue mm-url ol-rmail ol-mhe ol-irc ol-info ol-gnus nnselect gnus-search eieio-opt speedbar ezimage dframe ol-docview doc-view jka-compr image-mode exif ol-bibtex ol-bbdb ol-w3m ol-doi org-link-doi org ob ob-tangle ob-ref ob-lob ob-table ob-exp org-macro org-footnote org-src ob-comint org-pcomplete org-list org-faces org-entities noutline outline org-version ob-emacs-lisp ob-core ob-eval org-table oc-basic bibtex ol org-keys oc org-compat org-macs org-loaddefs find-func mailalias supercite regi mail-hist sort gnus-cite smiley shr-color mm-archive mail-extr gnus-bcklg gnus-async qp gnus-ml disp-table gnus-topic nndraft nnmh nnfolder utf-7 gnutls network-stream nsm gnus-agent gnus-srvr gnus-score score-mode nnvirtual gnus-msg gnus-art mm-uu mml2015 mm-view mml-smime smime dig nntp gnus-cache gnus-sum shr kinsoku svg dom gnus-group gnus-undo smtpmail sendmail gnus-start gnus-dbus dbus gnus-cloud nnimap nnmail mail-source utf7 netrc nnoo gnus-spec gnus-int gnus-range gnus-win gnus nnheader term/xterm xterm python tramp-sh find-file find-dired ffap dabbrev pulse log-view goto-addr log-edit message rmc puny dired dired-loaddefs rfc822 mml mml-sec epa epg rfc6068 epg-config gnus-util rmail rmail-loaddefs mm-decode mm-bodies mm-encode mail-parse rfc2231 rfc2047 rfc2045 mm-util ietf-drums mail-prsvr mailabbrev mail-utils gmm-utils mailheader pcvs-util smerge-mode diff copyright misearch multi-isearch ggtags hippie-exp derived etags fileloop generator xref project bug-reference cc-mode cc-fonts cc-guess cc-menus cc-cmds vc-mtn vc-hg vc-git diff-mode vc-bzr vc-src vc-sccs vc-svn vc-cvs vc-rcs add-log flyspell ispell diminish projectile ibuf-macs pcase edmacro kmacro grep compile text-property-search ibuf-ext ibuffer ibuffer-loaddefs dash appt diary-lib diary-loaddefs cal-menu calendar cal-loaddefs tramp tramp-loaddefs trampver tramp-integration files-x tramp-compat shell pcomplete parse-time ls-lisp which-func imenu minimap autorevert filenotify cus-load erc-track erc-match erc-services erc-networks erc-hl-nicks easy-mmode color erc-button erc-fill erc-stamp wid-edit erc-goodies erc erc-backend iso8601 time-date thingatpt pp format-spec erc-loaddefs comp comp-cstr rx cl-extra help-mode warnings advice vc-dir ewoc vc vc-dispatcher cc-styles cc-align cc-engine cc-vars cc-defs ange-ftp comint ansi-color ring server savehist clang-rename clang-include-fixer let-alist clang-format xml finder-inf gdb-shell-autoloads lisppaste-autoloads pydoc-info-autoloads info-look info cl weblogger-autoloads package browse-url url url-proxy url-privacy url-expand url-methods url-history url-cookie url-domsuf url-util mailcap url-handlers url-parse auth-source cl-seq eieio eieio-core cl-macs eieio-loaddefs password-cache json subr-x map url-vars seq byte-opt gv bytecomp byte-compile cconv cl-loaddefs cl-lib iso-transl tooltip eldoc paren electric uniquify ediff-hook vc-hooks lisp-float-type elisp-mode mwheel term/x-win x-win term/common-win x-dnd tool-bar dnd fontset image regexp-opt fringe tabulated-list replace newcomment text-mode lisp-mode prog-mode register page tab-bar menu-bar rfn-eshadow isearch easymenu timer select scroll-bar mouse jit-lock font-lock syntax font-core term/tty-colors frame minibuffer cl-generic cham georgian utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao korean japanese eucjp-ms cp51932 hebrew greek romanian slovak czech european ethiopic indian cyrillic chinese composite emoji-zwj charscript charprop case-table epa-hook jka-cmpr-hook help simple abbrev obarray cl-preloaded nadvice button loaddefs faces cus-face macroexp files window text-properties overlay sha1 md5 base64 format env code-pages mule custom widget hashtable-print-readable backquote threads xwidget-internal dbusbind inotify dynamic-setting system-font-setting font-render-setting cairo move-toolbar gtk x-toolkit x multi-tty make-network-process native-compile emacs) Memory information: ((conses 16 2993058 272550) (symbols 48 88842 38) (strings 32 206336 32085) (string-bytes 1 11250062) (vectors 16 120474) (vector-slots 8 3571778 468305) (floats 8 573 733) (intervals 56 431859 1461) (buffers 992 1145)) From unknown Sun Jun 22 08:08:53 2025 X-Loop: help-debbugs@gnu.org Subject: bug#61395: 28.2; bug-reference warning seems incorrect 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 X-GNU-PR-Keywords: To: Tom Tromey Cc: 61395@debbugs.gnu.org Received: via spool by 61395-submit@debbugs.gnu.org id=B61395.16760176045399 (code B ref 61395); Fri, 10 Feb 2023 08:27:01 +0000 Received: (at 61395) by debbugs.gnu.org; 10 Feb 2023 08:26:44 +0000 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 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 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==; 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 Date: Fri, 10 Feb 2023 10:25:49 +0200 Message-Id: <838rh6kjua.fsf@gnu.org> From: Eli Zaretskii In-Reply-To: <87pmailkqw.fsf@tromey.com> (message from Tom Tromey on Thu, 09 Feb 2023 12:08:39 -0700) References: <87pmailkqw.fsf@tromey.com> MIME-version: 1.0 Content-type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Spam-Score: -2.3 (--) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) > 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? From unknown Sun Jun 22 08:08:53 2025 X-Loop: help-debbugs@gnu.org Subject: bug#61395: 28.2; bug-reference warning seems incorrect Resent-From: Basil Contovounesios Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 10 Feb 2023 15:03:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 61395 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Eli Zaretskii Cc: 61395@debbugs.gnu.org, Tom Tromey , Tassilo Horn Received: via spool by 61395-submit@debbugs.gnu.org id=B61395.167604135526761 (code B ref 61395); Fri, 10 Feb 2023 15:03:01 +0000 Received: (at 61395) by debbugs.gnu.org; 10 Feb 2023 15:02:35 +0000 Received: from localhost ([127.0.0.1]:37885 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pQUv4-0006xY-Hx for submit@debbugs.gnu.org; Fri, 10 Feb 2023 10:02:34 -0500 Received: from mail-wm1-f52.google.com ([209.85.128.52]:51998) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pQUv1-0006xK-2Z for 61395@debbugs.gnu.org; Fri, 10 Feb 2023 10:02:33 -0500 Received: by mail-wm1-f52.google.com with SMTP id o36so4041832wms.1 for <61395@debbugs.gnu.org>; Fri, 10 Feb 2023 07:02:31 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=tcd.ie; s=google21; h=content-transfer-encoding:mime-version:user-agent:message-id:date :references:in-reply-to:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=eMGsU3AkcFBA0TTF3JYv+Ckhud8EYYA5QbDvERSVSkA=; b=eoHrV7Bfky1R8fd9h7KjndlpZKJ7kwI62Qi4r0CP8IjIEzPf2qjOBuVjSx/GdJtXKB ZugR2nTj+ez4fb4BVF/+CHlhs/AWAmuvtWqPIM0U7dqUX4CKSg2sJCNlTRaPu7ewcixV 164WJAROw4uU8oEPFMn/lAZlLUUsUlJdvmVWAiIIMc06hQdvyfaHAX2Nh0c705CSwDlI zixBAc8SyyW3orFnB+03Jb9jdeN1uElXc4cMGQvw2LO0e79baMt9HFEmLeWiDH9ANs4b DaHJoBcnUYn6vEWm9w+9OZL6lVlFJ6V2GsCMvO9SUm1ESaYnEo8j21f6ekTjVmWqXd8x /SDA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:user-agent:message-id:date :references:in-reply-to:subject:cc:to:from:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to; bh=eMGsU3AkcFBA0TTF3JYv+Ckhud8EYYA5QbDvERSVSkA=; b=gcgEl4kSu8h7hZ2vQuj86sIIjIp7s+oSw0Le9n5GL4YHDDBZW35kbk5cPjInH02xl8 aez7Yck7q3WSZlagDZphfEXqhFaNpX1P1McLsjMTAk+gFnty4oGNQrKcAzBNYC3vfatv 3vCf9WkRb1Orclu9wRK7UJQ6w/1GdALuvh968N+6wqJm5Psc4O1sgCSDB7Bqiy3vAWZl B/z2aRl6crfLiHav3CW768TkBZpbs2Sp7RKulZN+K9wNN5F2W2VGTzPH/t1910znEtFn guQoLhvbYzSh4uAoLpfIHI/dNAxXgIJGsskI4gBuW2ECNgNoISwqt16nHhdh7e2EByvd tRdg== X-Gm-Message-State: AO0yUKXpD0ARXAKuerYBuBwWhqnl4LU598DnqmcPcn+2tQugtKA8mYRn 10PkUCdpbNHrV1o40A1PUNkV5g== X-Google-Smtp-Source: AK7set8E5fPeTZkk3qLOOLVO12z3xQRoMAZ/UJDwf+88DL4ZNgVknSW2CvCWwaYcoTKW3MDwbETnUA== X-Received: by 2002:a05:600c:4da5:b0:3df:de28:f819 with SMTP id v37-20020a05600c4da500b003dfde28f819mr13170802wmp.15.1676041345079; Fri, 10 Feb 2023 07:02:25 -0800 (PST) Received: from localhost ([217.173.96.166]) by smtp.gmail.com with ESMTPSA id n13-20020a05600c3b8d00b003dc434900e1sm5843573wms.34.2023.02.10.07.02.24 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 10 Feb 2023 07:02:24 -0800 (PST) From: Basil Contovounesios In-Reply-To: <838rh6kjua.fsf@gnu.org> (Eli Zaretskii's message of "Fri, 10 Feb 2023 10:25:49 +0200") References: <87pmailkqw.fsf@tromey.com> <838rh6kjua.fsf@gnu.org> Date: Fri, 10 Feb 2023 15:02:23 +0000 Message-ID: <877cwplg1s.fsf@tcd.ie> User-Agent: Gnus/5.13 (Gnus v5.13) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: -0.0 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) Eli Zaretskii [2023-02-10 10:25 +0200] wrote: >> From: Tom Tromey >> Date: Thu, 09 Feb 2023 12:08:39 -0700 >>=20 >> I got this warning while using bug-reference-prog-mode on a certain file >> in gdb: >>=20 >> Warning (bug-reference): The value of =E2=80=98bug-reference-bug-regexp= =E2=80=99 >>=20 >> "\\(\\b\\(?:[Bb]ug ?#?\\|[Pp]atch ?#\\|RFE ?#\\|PR [a-z+-]+/\\)\\([0-9= ]+\\(?:#[0-9]+\\)?\\)\\)" >>=20 >> in buffer "finish.exp" doesn=E2=80=99t 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 >>=20 >>=20 >> However, this warning seems wrong to me. If you examine the above >> regexp, you'll see it does cover all the other subexpressions. >>=20 >> 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: >>=20 >> (defcustom bug-reference-bug-regexp >> "\\(\\b\\(?:[Bb]ug ?#?\\|[Pp]atch ?#\\|RFE ?#\\|PR [a-z+-]+/\\)\\([0-9= ]+\\(?:#[0-9]+\\)?\\)\\)" >>=20 >> In gdb we use this setting for bug-reference-url-format, in case this >> matters somehow: >>=20 >> (bug-reference-url-format . "http://sourceware.org/bugzilla/show_bug.cgi= ?id=3D%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? Copying in Tassilo who worked on this stuff ahead of Emacs 28. Thanks, --=20 Basil From unknown Sun Jun 22 08:08:53 2025 X-Loop: help-debbugs@gnu.org Subject: bug#61395: 28.2; bug-reference warning seems incorrect Resent-From: Tassilo Horn Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 10 Feb 2023 15:57:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 61395 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Basil Contovounesios Cc: Eli Zaretskii , Tom Tromey , 61395@debbugs.gnu.org Received: via spool by 61395-submit@debbugs.gnu.org id=B61395.167604458331929 (code B ref 61395); Fri, 10 Feb 2023 15:57:02 +0000 Received: (at 61395) by debbugs.gnu.org; 10 Feb 2023 15:56:23 +0000 Received: from localhost ([127.0.0.1]:37924 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pQVl9-0008Iv-CN for submit@debbugs.gnu.org; Fri, 10 Feb 2023 10:56:23 -0500 Received: from eggs.gnu.org ([209.51.188.92]:47812) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pQVl4-0008If-4c for 61395@debbugs.gnu.org; Fri, 10 Feb 2023 10:56:21 -0500 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 1pQVkx-0000Ur-KB; Fri, 10 Feb 2023 10:56:11 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-Version:In-reply-to:Date:Subject:To:From: References; bh=h1Qp/Je8EsX0VnvvbSnMqfiV/XuFsIYSY2wWRLLOw4Q=; b=rRQgUriZ4wdvEN bmEIYtTqsg1ReCLE6A7qR0DnAWUFYrBVFeIcszwnDnmsResCuQMeop22B98GYDNXFQGKQKD2uJvEm AXhKmhpy/lzpW0qwivcKSOrTUmKSVbIBxQd7iiMjxcXqCq+ufSxmL7j6EL27Xg9Nnnd5P8VCevA64 AGXYbbZFqFcTlN1vaeio5ehmG4xnfLXfNGyP4T2R8imgLk0U8o0P9BkcB6zXSve8DsXAifBJg46YO ylWHArm7VThas+MetwA1wBcYOun5BbF76nWata0U0hNTEsHHZw5C6tK6e6TYweYFQWYnOBqxMFwyf YHD42M6aGY9DAyxGAXnA==; Received: from auth1-smtp.messagingengine.com ([66.111.4.227]) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1pQVkv-0005zo-CJ; Fri, 10 Feb 2023 10:56:10 -0500 Received: from compute3.internal (compute3.nyi.internal [10.202.2.43]) by mailauth.nyi.internal (Postfix) with ESMTP id 1C4E227C0054; Fri, 10 Feb 2023 10:56:07 -0500 (EST) Received: from mailfrontend1 ([10.202.2.162]) by compute3.internal (MEProxy); Fri, 10 Feb 2023 10:56:07 -0500 X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvhedrudehhedgkeduucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhepfhgfhffvvefuffgjkfggtgesthdtredttdertdenucfhrhhomhepvfgrshhs ihhlohcujfhorhhnuceothhsughhsehgnhhurdhorhhgqeenucggtffrrghtthgvrhhnpe dujedtheduvdelffejkeetgedvheelhedvueefhfeukeekkeehvdfggeegffevgfenucev lhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpehthhhorhhnod hmvghsmhhtphgruhhthhhpvghrshhonhgrlhhithihqdekieejfeekjeekgedqieefhedv leekqdhtshguhheppehgnhhurdhorhhgsehfrghsthhmrghilhdrfhhm X-ME-Proxy: Feedback-ID: ib2b94485:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Fri, 10 Feb 2023 10:56:05 -0500 (EST) References: <87pmailkqw.fsf@tromey.com> <838rh6kjua.fsf@gnu.org> <877cwplg1s.fsf@tcd.ie> User-agent: mu4e 1.9.19; emacs 30.0.50 From: Tassilo Horn Date: Fri, 10 Feb 2023 16:54:42 +0100 In-reply-to: <877cwplg1s.fsf@tcd.ie> Message-ID: <871qmx7bvv.fsf@gnu.org> MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -2.3 (--) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) Basil Contovounesios writes: > Copying in Tassilo who worked on this stuff ahead of Emacs 28. I'll have a look later today! Bye, Tassilo From unknown Sun Jun 22 08:08:53 2025 X-Loop: help-debbugs@gnu.org Subject: bug#61395: 28.2; bug-reference warning seems incorrect Resent-From: Tom Tromey Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 10 Feb 2023 16:28:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 61395 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Tassilo Horn Cc: Basil Contovounesios , Eli Zaretskii , Tom Tromey , 61395@debbugs.gnu.org Received: via spool by 61395-submit@debbugs.gnu.org id=B61395.16760464572422 (code B ref 61395); Fri, 10 Feb 2023 16:28:02 +0000 Received: (at 61395) by debbugs.gnu.org; 10 Feb 2023 16:27:37 +0000 Received: from localhost ([127.0.0.1]:37958 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pQWFN-0000cz-4b for submit@debbugs.gnu.org; Fri, 10 Feb 2023 11:27:37 -0500 Received: from outbound-ss-820.bluehost.com ([69.89.24.241]:44721) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pQWFJ-0000cg-45 for 61395@debbugs.gnu.org; Fri, 10 Feb 2023 11:27:35 -0500 Received: from cmgw15.mail.unifiedlayer.com (unknown [10.0.90.130]) by progateway2.mail.pro1.eigbox.com (Postfix) with ESMTP id E47781004036A for <61395@debbugs.gnu.org>; Fri, 10 Feb 2023 16:27:26 +0000 (UTC) Received: from box5379.bluehost.com ([162.241.216.53]) by cmsmtp with ESMTP id QWFCpMDq1NEzMQWFCptnA1; Fri, 10 Feb 2023 16:27:26 +0000 X-Authority-Reason: nr=8 X-Authority-Analysis: v=2.4 cv=LsVXdlRc c=1 sm=1 tr=0 ts=63e6706e a=ApxJNpeYhEAb1aAlGBBbmA==:117 a=ApxJNpeYhEAb1aAlGBBbmA==:17 a=dLZJa+xiwSxG16/P+YVxDGlgEgI=:19 a=IkcTkHD0fZMA:10:nop_charset_1 a=m04uMKEZRckA:10:nop_rcvd_month_year a=Qbun_eYptAEA:10:endurance_base64_authed_username_1 a=jPJnX9uteBAR7fwTjhMA:9 a=QEXdDO2ut3YA:10:nop_charset_2 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=tromey.com; s=default; h=Content-Transfer-Encoding:Content-Type:MIME-Version:Message-ID: In-Reply-To:Date:References:Subject:Cc:To:From:Sender:Reply-To: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=g3qG6/yX7ubosbyZwWIUh5mar/zSoC1U4w142uH5Bs0=; b=XLsCk2nMka5GtHGz/YJZWWU5xp +FjPsskNNp/kaZK7s6+aXCN0F/zxW3/lkP8+xr755T9sPL19R9furGDVcai0ZdyK4RevdlFNYHRtI SPT8ioP5h1Pic5BSKOwiSiv43; Received: from 75-166-130-93.hlrn.qwest.net ([75.166.130.93]:35018 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 1pQWFC-0009MX-Fg; Fri, 10 Feb 2023 09:27:26 -0700 From: Tom Tromey References: <87pmailkqw.fsf@tromey.com> <838rh6kjua.fsf@gnu.org> <877cwplg1s.fsf@tcd.ie> <871qmx7bvv.fsf@gnu.org> X-Attribution: Tom Date: Fri, 10 Feb 2023 09:27:22 -0700 In-Reply-To: <871qmx7bvv.fsf@gnu.org> (Tassilo Horn's message of "Fri, 10 Feb 2023 16:54:42 +0100") Message-ID: <87h6vtjxjp.fsf@tromey.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.2 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable 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: 1pQWFC-0009MX-Fg X-Source: X-Source-Args: X-Source-Dir: X-Source-Sender: 75-166-130-93.hlrn.qwest.net (prentzel) [75.166.130.93]:35018 X-Source-Auth: tom+tromey.com X-Email-Count: 4 X-Source-Cap: ZWx5bnJvYmk7ZWx5bnJvYmk7Ym94NTM3OS5ibHVlaG9zdC5jb20= X-Local-Domain: yes X-Spam-Score: -0.0 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) > I'll have a look later today! It seems difficult to reproduce. I can't do it reliably. My co-worker K=C3=A9vin suggested that perhaps the problem is here, in bug-reference-fontify: (while (and (< (point) end-line) (re-search-forward bug-reference-bug-regexp end-line 'mov= e)) (when (or (not bug-reference-prog-mode) ;; This tests for both comment and string syntax. (nth 8 (syntax-ppss))) ... with the question being whether the call to syntax-ppss needs to be wrapped in save-match-data. Tom From unknown Sun Jun 22 08:08:53 2025 X-Loop: help-debbugs@gnu.org Subject: bug#61395: 28.2; bug-reference warning seems incorrect Resent-From: Tom Tromey Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 10 Feb 2023 16:42:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 61395 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Eli Zaretskii Cc: Tom Tromey , 61395@debbugs.gnu.org Received: via spool by 61395-submit@debbugs.gnu.org id=B61395.16760472943835 (code B ref 61395); Fri, 10 Feb 2023 16:42:01 +0000 Received: (at 61395) by debbugs.gnu.org; 10 Feb 2023 16:41:34 +0000 Received: from localhost ([127.0.0.1]:37974 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pQWSs-0000zl-BH for submit@debbugs.gnu.org; Fri, 10 Feb 2023 11:41:34 -0500 Received: from gproxy3-pub.mail.unifiedlayer.com ([69.89.30.42]:44008) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pQWSo-0000zW-FC for 61395@debbugs.gnu.org; Fri, 10 Feb 2023 11:41:33 -0500 Received: from cmgw15.mail.unifiedlayer.com (unknown [10.0.90.130]) by progateway5.mail.pro1.eigbox.com (Postfix) with ESMTP id ED58010041C86 for <61395@debbugs.gnu.org>; Fri, 10 Feb 2023 16:41:23 +0000 (UTC) Received: from box5379.bluehost.com ([162.241.216.53]) by cmsmtp with ESMTP id QWShpMMrONEzMQWShptw8q; Fri, 10 Feb 2023 16:41:23 +0000 X-Authority-Reason: nr=8 X-Authority-Analysis: v=2.4 cv=LsVXdlRc c=1 sm=1 tr=0 ts=63e673b3 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=Z69AZ_f99fNrRFwruCAA:9 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=oX8dj8wKNmggMAfmpTKSok+7+Dnd4gA7YSNlp+mrEjk=; b=MGjCwrJFOolokTYib3VqMmyw0a BgFa7P9w0Ca9wXMm84DshgRhvY5Myg5n2ayvmVYJXJVBi3KUW58Qb5o6yq0tqQyCQHKi+IJ1w0Ddr oeSVLd6ts9sEhv/nWNjRrX0SF; Received: from 75-166-130-93.hlrn.qwest.net ([75.166.130.93]:54906 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 1pQWSh-000M0h-KX; Fri, 10 Feb 2023 09:41:23 -0700 From: Tom Tromey References: <87pmailkqw.fsf@tromey.com> <838rh6kjua.fsf@gnu.org> X-Attribution: Tom Date: Fri, 10 Feb 2023 09:41:19 -0700 In-Reply-To: <838rh6kjua.fsf@gnu.org> (Eli Zaretskii's message of "Fri, 10 Feb 2023 10:25:49 +0200") Message-ID: <87sffdiic0.fsf@tromey.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.2 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain 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: 1pQWSh-000M0h-KX X-Source: X-Source-Args: X-Source-Dir: X-Source-Sender: 75-166-130-93.hlrn.qwest.net (prentzel) [75.166.130.93]:54906 X-Source-Auth: tom+tromey.com X-Email-Count: 14 X-Source-Cap: ZWx5bnJvYmk7ZWx5bnJvYmk7Ym94NTM3OS5ibHVlaG9zdC5jb20= X-Local-Domain: yes X-Spam-Score: -0.0 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) Eli> Thanks, but could you perhaps post a recipe for reproducing the Eli> warning? Based on your description, I couldn't understand how to Eli> reproduce it: which variables to change (with the single exception of Eli> bug-reference-url-format), and what should be the buffer text to Eli> trigger the warning. Could you help me reproducing the problem, so I Eli> could investigate it and see how to fix it? I tried reproducing it by visiting various .exp files in gdb, but I can't see the warning again. Is a given warning only issued once per emacs session? Anyway, nothing too special was required. Check out gdb and search for "PR" underneath gdb/testsuite/. gdb has a .dir-locals.el that sets the appropriate variable. Make sure bug-reference-prog-mode is enabled. See my other note for a theory of the bug. This theory would also explain why it's "intermittent" -- it depends on how much of the buffer has already been scanned. Tom From unknown Sun Jun 22 08:08:53 2025 X-Loop: help-debbugs@gnu.org Subject: bug#61395: 28.2; bug-reference warning seems incorrect Resent-From: Tassilo Horn Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 10 Feb 2023 17:53:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 61395 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Tom Tromey Cc: Basil Contovounesios , Eli Zaretskii , 61395@debbugs.gnu.org Received: via spool by 61395-submit@debbugs.gnu.org id=B61395.167605154211388 (code B ref 61395); Fri, 10 Feb 2023 17:53:01 +0000 Received: (at 61395) by debbugs.gnu.org; 10 Feb 2023 17:52:22 +0000 Received: from localhost ([127.0.0.1]:38042 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pQXZN-0002xb-Sx for submit@debbugs.gnu.org; Fri, 10 Feb 2023 12:52:22 -0500 Received: from eggs.gnu.org ([209.51.188.92]:55516) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pQXZJ-0002xJ-1u for 61395@debbugs.gnu.org; Fri, 10 Feb 2023 12:52:20 -0500 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 1pQXZC-0006ny-IF; Fri, 10 Feb 2023 12:52:10 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-Version:In-reply-to:Date:Subject:To:From: References; bh=11psKIPjquqMFYfi2TIddy2xOQjdCAwVenlXawqDrhA=; b=iLAT732QyOgcPg efs24w4UKGEG3OPazWeU6tNdBJ4GVCme2LB9OhM6V8s3VY/D+O6baRbiXNnKasjdxOfp2ED6n5/uD 30CV5/CrK1chrTXuNAkhVkob20PRvXxbEkv0QepGThAdgzhcM2C9KqZ43pGDxcRfN1Ghb9KbXJJJq w/Ouct0ZQM5F3wfMGiudREPwvZGew84EC7n2NpVn8Av0wa4I0sRLYg++98A1CMyrj3RDnMhIBhqh1 pciS5zOl+7Od0lUNXxajqQ5kTeQ+IP4Fm6Zvh3xMscnWqbLhm5UppcdUysZ9u4vqA+G9A4nwGoY3w /fLiHQENkHHmjJiHjRpg==; Received: from auth1-smtp.messagingengine.com ([66.111.4.227]) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1pQXZC-0007dA-4r; Fri, 10 Feb 2023 12:52:10 -0500 Received: from compute5.internal (compute5.nyi.internal [10.202.2.45]) by mailauth.nyi.internal (Postfix) with ESMTP id C135C27C005A; Fri, 10 Feb 2023 12:52:09 -0500 (EST) Received: from mailfrontend1 ([10.202.2.162]) by compute5.internal (MEProxy); Fri, 10 Feb 2023 12:52:09 -0500 X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvhedrudehhedguddtfecutefuodetggdotefrod ftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfgh necuuegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmd enucfjughrpehffgfhvfevufffjgfkgggtgfesthhqredttderjeenucfhrhhomhepvfgr shhsihhlohcujfhorhhnuceothhsughhsehgnhhurdhorhhgqeenucggtffrrghtthgvrh hnpefgtedtudeivdfhfffhfefhvefhuedvheejjeefleffheekffeutdfhgfejiefhgeen ucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpehthhhorh hnodhmvghsmhhtphgruhhthhhpvghrshhonhgrlhhithihqdekieejfeekjeekgedqieef hedvleekqdhtshguhheppehgnhhurdhorhhgsehfrghsthhmrghilhdrfhhm X-ME-Proxy: Feedback-ID: ib2b94485:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Fri, 10 Feb 2023 12:52:08 -0500 (EST) References: <87pmailkqw.fsf@tromey.com> <838rh6kjua.fsf@gnu.org> <877cwplg1s.fsf@tcd.ie> <871qmx7bvv.fsf@gnu.org> <87h6vtjxjp.fsf@tromey.com> User-agent: mu4e 1.9.19; emacs 30.0.50 From: Tassilo Horn Date: Fri, 10 Feb 2023 18:21:09 +0100 In-reply-to: <87h6vtjxjp.fsf@tromey.com> Message-ID: <87357dxvax.fsf@gnu.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: -2.3 (--) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) Tom Tromey writes: >> I'll have a look later today! > > It seems difficult to reproduce. I can't do it reliably. > > My co-worker K=C3=A9vin suggested that perhaps the problem is here, in > bug-reference-fontify: > > (while (and (< (point) end-line) > (re-search-forward bug-reference-bug-regexp end-line 'm= ove)) > (when (or (not bug-reference-prog-mode) > ;; This tests for both comment and string syntax. > (nth 8 (syntax-ppss))) > > ... with the question being whether the call to syntax-ppss needs to > be wrapped in save-match-data. Hm, I've tried somthing like (while (re-search-forward "\\(NILP\\)\\(.*\\)$" nil t) (syntax-ppss-flush-cache (point-min)) (let ((md (match-data))) (syntax-ppss) (unless (equal md (match-data)) (error "Match-data clobbered: %S %S" md (match-data))))) many times in buffer.c but `syntax-ppss' doesn't seem to clobber match-data. If you can reproduce the issue, try changing `bug-reference--overlay-bounds' so that the check (member bug-reference-bug-regexp bug-reference--nonconforming-regexps) isn't performed inhibiting the warning for this regexp and add some more info to the warning message like (match-string N) for N in 0..9. If the match-data isn't about matches of `bug-reference-bug-regexp', we are on the right track, i.e., someone clobbers our match data. Bye, Tassilo From unknown Sun Jun 22 08:08:53 2025 X-Loop: help-debbugs@gnu.org Subject: bug#61395: 28.2; bug-reference warning seems incorrect Resent-From: Tom Tromey Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 10 Feb 2023 18:11:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 61395 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Tassilo Horn Cc: Basil Contovounesios , Eli Zaretskii , Tom Tromey , 61395@debbugs.gnu.org Received: via spool by 61395-submit@debbugs.gnu.org id=B61395.167605262913508 (code B ref 61395); Fri, 10 Feb 2023 18:11:02 +0000 Received: (at 61395) by debbugs.gnu.org; 10 Feb 2023 18:10:29 +0000 Received: from localhost ([127.0.0.1]:38098 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pQXqv-0003Vo-D8 for submit@debbugs.gnu.org; Fri, 10 Feb 2023 13:10:29 -0500 Received: from outbound-ss-761.bluehost.com ([74.220.211.250]:49956) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pQXqs-0003VY-L6 for 61395@debbugs.gnu.org; Fri, 10 Feb 2023 13:10:27 -0500 Received: from cmgw13.mail.unifiedlayer.com (unknown [10.0.90.128]) by progateway8.mail.pro1.eigbox.com (Postfix) with ESMTP id 5432810047D64 for <61395@debbugs.gnu.org>; Fri, 10 Feb 2023 18:10:14 +0000 (UTC) Received: from box5379.bluehost.com ([162.241.216.53]) by cmsmtp with ESMTP id QXqgpUYenNX2aQXqgpFTz7; Fri, 10 Feb 2023 18:10:14 +0000 X-Authority-Reason: nr=8 X-Authority-Analysis: v=2.4 cv=NMAQR22g c=1 sm=1 tr=0 ts=63e68886 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=lAgGIGX2csxC8y38ioIA:9 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=CTqAhgdcUCPoSiUkCF3EB7BsKmCFr/3SzEVYwkqt9O0=; b=MzubDtSlYqChpFwkBhNgXG2tmr GqRMZ8OLrGOD+Mw8mShLJ3TdCJEhZCFhVvk5saQdjy0P28DsUbjXk+hcL/UI0kcjFm6cyp1qKOAMa poxxX+aODigmmZQG/qDGsDtAx; Received: from 75-166-130-93.hlrn.qwest.net ([75.166.130.93]:52758 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 1pQXqf-001dPv-Up; Fri, 10 Feb 2023 11:10:13 -0700 From: Tom Tromey 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> X-Attribution: Tom Date: Fri, 10 Feb 2023 11:10:12 -0700 In-Reply-To: <87357dxvax.fsf@gnu.org> (Tassilo Horn's message of "Fri, 10 Feb 2023 18:21:09 +0100") Message-ID: <87v8k9gznf.fsf@tromey.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.2 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain 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: 1pQXqf-001dPv-Up X-Source: X-Source-Args: X-Source-Dir: X-Source-Sender: 75-166-130-93.hlrn.qwest.net (prentzel) [75.166.130.93]:52758 X-Source-Auth: tom+tromey.com X-Email-Count: 8 X-Source-Cap: ZWx5bnJvYmk7ZWx5bnJvYmk7Ym94NTM3OS5ibHVlaG9zdC5jb20= X-Local-Domain: yes X-Spam-Score: -0.0 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) Tassilo> many times in buffer.c but `syntax-ppss' doesn't seem to clobber Tassilo> match-data. Seems like it would depend on whether the major mode uses regexps here? My case is using tcl-mode FWIW. However a superficial look at the syntax-ppss code shows it's calling save-match-data in some spots, so perhaps this isn't the bug. Just a theory after all... thanks, Tom From unknown Sun Jun 22 08:08:53 2025 X-Loop: help-debbugs@gnu.org Subject: bug#61395: 28.2; bug-reference warning seems incorrect 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 X-GNU-PR-Keywords: To: Tassilo Horn Cc: Basil Contovounesios , Eli Zaretskii , Tom Tromey , 61395@debbugs.gnu.org Received: via spool by 61395-submit@debbugs.gnu.org id=B61395.167605352815078 (code B ref 61395); Fri, 10 Feb 2023 18:26:02 +0000 Received: (at 61395) by debbugs.gnu.org; 10 Feb 2023 18:25:28 +0000 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 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 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) 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; 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 From: Tom Tromey 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> X-Attribution: Tom Date: Fri, 10 Feb 2023 11:25:09 -0700 In-Reply-To: <87357dxvax.fsf@gnu.org> (Tassilo Horn's message of "Fri, 10 Feb 2023 18:21:09 +0100") Message-ID: <87r0uxgyyi.fsf@tromey.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.2 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain 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: X-Source-Args: X-Source-Dir: 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-Spam-Score: -0.0 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) 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:.*" From unknown Sun Jun 22 08:08:53 2025 MIME-Version: 1.0 X-Mailer: MIME-tools 5.505 (Entity 5.505) X-Loop: help-debbugs@gnu.org From: help-debbugs@gnu.org (GNU bug Tracking System) To: Tom Tromey Subject: bug#61395: closed (Re: bug#61395: 28.2; bug-reference warning seems incorrect) Message-ID: References: <87y1p5wf43.fsf@gnu.org> <87pmailkqw.fsf@tromey.com> X-Gnu-PR-Message: they-closed 61395 X-Gnu-PR-Package: emacs Reply-To: 61395@debbugs.gnu.org Date: Fri, 10 Feb 2023 18:28:02 +0000 Content-Type: multipart/mixed; boundary="----------=_1676053682-15322-1" This is a multi-part message in MIME format... ------------=_1676053682-15322-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Your bug report #61395: 28.2; bug-reference warning seems incorrect which was filed against the emacs package, has been closed. The explanation is attached below, along with your original report. If you require more details, please reply to 61395@debbugs.gnu.org. --=20 61395: https://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D61395 GNU Bug Tracking System Contact help-debbugs@gnu.org with problems ------------=_1676053682-15322-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at 61395-done) by debbugs.gnu.org; 10 Feb 2023 18:27:24 +0000 Received: from localhost ([127.0.0.1]:38117 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pQY7I-0003yE-9Q for submit@debbugs.gnu.org; Fri, 10 Feb 2023 13:27:24 -0500 Received: from eggs.gnu.org ([209.51.188.92]:52820) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pQY7G-0003xz-1w for 61395-done@debbugs.gnu.org; Fri, 10 Feb 2023 13:27:23 -0500 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 1pQY79-00055S-Jb; Fri, 10 Feb 2023 13:27:15 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-Version:In-reply-to:Date:Subject:To:From: References; bh=dNm7mtnYBQer8H381rrD/PAURF2PekvBB5u5QUHakPs=; b=j99RNiyEKEIofr h+VkVXCq8/GMczBq0eHaOfZUCZDKAQuVKFvhdtbXLfDiJSfqiJg2jDio5JwXM8EtOXBMKrhyX6tpm TDwATqpS/AVs27t9urXVGgEyOpu3OUFnaMwPhYjmP1LtKHoQSgQn7a2N94yWzwSvqN/q0cmpvY47p OCmT1RE0Lw6CErjTrpk2bxoloajFlvS8IfqS4o69mVEZa+5xzH0agJDSd8ZlIWnmvptMFr/ZvJhVL RcMB9eJAZ40aCmrBSH+myRGJyZnwUC8eApP+rpQQVA8DmvY2QrL2azY6OFkxo47ZmRHt9De24TdSm DcD/hJvE0I4TJ3+55i4A==; Received: from auth2-smtp.messagingengine.com ([66.111.4.228]) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1pQY76-0007y8-CO; Fri, 10 Feb 2023 13:27:14 -0500 Received: from compute6.internal (compute6.nyi.internal [10.202.2.47]) by mailauth.nyi.internal (Postfix) with ESMTP id BC23227C0054; Fri, 10 Feb 2023 13:27:10 -0500 (EST) Received: from mailfrontend1 ([10.202.2.162]) by compute6.internal (MEProxy); Fri, 10 Feb 2023 13:27:10 -0500 X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvhedrudehhedgudduudcutefuodetggdotefrod ftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfgh necuuegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmd enucfjughrpehffgfhvfevufffjgfkgggtgfesthhqredttderjeenucfhrhhomhepvfgr shhsihhlohcujfhorhhnuceothhsughhsehgnhhurdhorhhgqeenucggtffrrghtthgvrh hnpefgtedtudeivdfhfffhfefhvefhuedvheejjeefleffheekffeutdfhgfejiefhgeen ucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpehthhhorh hnodhmvghsmhhtphgruhhthhhpvghrshhonhgrlhhithihqdekieejfeekjeekgedqieef hedvleekqdhtshguhheppehgnhhurdhorhhgsehfrghsthhmrghilhdrfhhm X-ME-Proxy: Feedback-ID: ib2b94485:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Fri, 10 Feb 2023 13:27:09 -0500 (EST) 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> <87v8k9gznf.fsf@tromey.com> User-agent: mu4e 1.9.19; emacs 30.0.50 From: Tassilo Horn To: Tom Tromey Subject: Re: bug#61395: 28.2; bug-reference warning seems incorrect Date: Fri, 10 Feb 2023 19:15:42 +0100 In-reply-to: <87v8k9gznf.fsf@tromey.com> Message-ID: <87y1p5wf43.fsf@gnu.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 61395-done Cc: Basil Contovounesios , 61395-done@debbugs.gnu.org, Eli Zaretskii X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) Tom Tromey writes: > Tassilo> many times in buffer.c but `syntax-ppss' doesn't seem to > Tassilo> clobber match-data. > > Seems like it would depend on whether the major mode uses regexps > here? My case is using tcl-mode FWIW. Hah, indeed! It was easy to reproduce with a tcl file. > However a superficial look at the syntax-ppss code shows it's calling > save-match-data in some spots, so perhaps this isn't the bug. It is. I've fixed it on the emacs-29 branch. Thanks a lot and 100 bonus points to K=C3=A9vin who has been right with his analysis. Bye, Tassilo ------------=_1676053682-15322-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at submit) by debbugs.gnu.org; 9 Feb 2023 19:09:08 +0000 Received: from localhost ([127.0.0.1]:33752 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pQCI7-0004sX-U9 for submit@debbugs.gnu.org; Thu, 09 Feb 2023 14:09:08 -0500 Received: from lists.gnu.org ([209.51.188.17]:54592) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pQCI5-0004sO-Rl for submit@debbugs.gnu.org; Thu, 09 Feb 2023 14:09:06 -0500 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 1pQCI5-0000Kb-M4 for bug-gnu-emacs@gnu.org; Thu, 09 Feb 2023 14:09:05 -0500 Received: from gproxy3-pub.mail.unifiedlayer.com ([69.89.30.42]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pQCI1-00025F-Th for bug-gnu-emacs@gnu.org; Thu, 09 Feb 2023 14:09:05 -0500 Received: from cmgw14.mail.unifiedlayer.com (unknown [10.0.90.129]) by progateway5.mail.pro1.eigbox.com (Postfix) with ESMTP id 22C1D1007383A for ; Thu, 9 Feb 2023 19:08:43 +0000 (UTC) Received: from box5379.bluehost.com ([162.241.216.53]) by cmsmtp with ESMTP id QCHipJc9oGAj8QCHipg4AY; Thu, 09 Feb 2023 19:08:43 +0000 X-Authority-Reason: nr=8 X-Authority-Analysis: v=2.4 cv=UdyU9IeN c=1 sm=1 tr=0 ts=63e544bb a=ApxJNpeYhEAb1aAlGBBbmA==:117 a=ApxJNpeYhEAb1aAlGBBbmA==:17 a=dLZJa+xiwSxG16/P+YVxDGlgEgI=:19 a=IkcTkHD0fZMA:10:nop_charset_1 a=m04uMKEZRckA:10:nop_rcvd_month_year a=Qbun_eYptAEA:10:endurance_base64_authed_username_1 a=CCpqsmhAAAAA:8 a=vTr9H3xdAAAA:8 a=aR16PxjQAAAA:8 a=sxt07eeNDrDxN6pDSu4A:9 a=r-HJ9bD__24A:10:nop_bhvr_url2_has_invalid_perc a=QEXdDO2ut3YA:10:nop_charset_2 a=BB4e4wfnyky9u2drSAfk:22 a=ul9cdbp4aOFLsgKbc677:22 a=7PCjnrUJ-F5voXmZD6jJ:22 a=zbFvvTOBjyH4ze5LlUjX:22 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=tromey.com; s=default; h=Content-Transfer-Encoding:Content-Type:MIME-Version:Message-ID: Date:Subject:To:From:Sender:Reply-To:Cc:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: In-Reply-To:References:List-Id:List-Help:List-Unsubscribe:List-Subscribe: List-Post:List-Owner:List-Archive; bh=vAb+re1zxIz218YfwjasVsMpRKTts9PWwICYs8L3b8A=; b=DcBItT4QAkdGlL6yQFt+xpxnjf u7q2rkqERsZMBMKEtwqoHjdB5Jej3sVW/guxugAQJBa1EF/e6gIAi6rp3VcfUm4cpKFZtcPkE4BOo lRwHYhdocHQo1ng3HPq7oLrE7; Received: from 75-166-130-93.hlrn.qwest.net ([75.166.130.93]:54208 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 1pQCHi-003iXc-1G; Thu, 09 Feb 2023 12:08:42 -0700 From: Tom Tromey To: bug-gnu-emacs@gnu.org Subject: 28.2; bug-reference warning seems incorrect X-Attribution: Tom Date: Thu, 09 Feb 2023 12:08:39 -0700 Message-ID: <87pmailkqw.fsf@tromey.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable 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 - 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: 1pQCHi-003iXc-1G X-Source: X-Source-Args: X-Source-Dir: X-Source-Sender: 75-166-130-93.hlrn.qwest.net (prentzel) [75.166.130.93]:54208 X-Source-Auth: tom+tromey.com X-Email-Count: 1 X-Source-Cap: ZWx5bnJvYmk7ZWx5bnJvYmk7Ym94NTM3OS5ibHVlaG9zdC5jb20= X-Local-Domain: yes Received-SPF: pass client-ip=69.89.30.42; envelope-from=tom@tromey.com; helo=gproxy3-pub.mail.unifiedlayer.com X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Score: -1.6 (-) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -2.6 (--) I got this warning while using bug-reference-prog-mode on a certain file in gdb: Warning (bug-reference): The value of =E2=80=98bug-reference-bug-regexp=E2= =80=99 "\\(\\b\\(?:[Bb]ug ?#?\\|[Pp]atch ?#\\|RFE ?#\\|PR [a-z+-]+/\\)\\([0-9]+\= \(?:#[0-9]+\\)?\\)\\)" in buffer "finish.exp" doesn=E2=80=99t 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= =3D%s") In GNU Emacs 28.2 (build 1, x86_64-redhat-linux-gnu, GTK+ Version 3.24.35, = cairo version 1.17.6) of 2022-12-31 built on buildvm-x86-18.iad2.fedoraproject.org Windowing system distributor 'The X.Org Foundation', version 11.0.12201007 System Description: Fedora Linux 36 (Workstation Edition) Configured using: 'configure --build=3Dx86_64-redhat-linux-gnu --host=3Dx86_64-redhat-linux-gnu --program-prefix=3D --disable-dependency-tracking --prefix=3D/usr --exec-prefix=3D/usr --bindir=3D/usr/bin --sbindir=3D/usr/sbin --sysconfdir=3D/etc --datadir=3D/usr/share --includedir=3D/usr/include --libdir=3D/usr/lib64 --libexecdir=3D/usr/libexec --localstatedir=3D/var --sharedstatedir=3D/var/lib --mandir=3D/usr/share/man --infodir=3D/usr/share/info --with-dbus --with-gif --with-jpeg --with-png --with-rsvg --with-tiff --with-xpm --with-x-toolkit=3Dgtk3 --with-gpm=3Dno --with-xwidgets --with-modules --with-harfbuzz --with-cairo --with-json --with-native-compilation build_alias=3Dx86_64-redhat-linux-gnu host_alias=3Dx86_64-redhat-linux-gnu CC=3Dgcc 'CFLAGS=3D-DMAIL_USE_LOCKF -= O2 -flto=3Dauto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=3Dformat-security -Wp,-D_FORTIFY_SOURCE=3D2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=3D/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=3D/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=3Dgeneric -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection' LDFLAGS=3D-Wl,-z,relro PKG_CONFIG_PATH=3D:/usr/lib64/pkgconfig:/usr/share/pkgconfig' Configured features: ACL CAIRO DBUS FREETYPE GIF GLIB GMP GNUTLS GSETTINGS HARFBUZZ JPEG JSON LIBOTF LIBSELINUX LIBSYSTEMD LIBXML2 M17N_FLT MODULES NATIVE_COMP NOTIFY INOTIFY PDUMPER PNG RSVG SECCOMP SOUND THREADS TIFF TOOLKIT_SCROLL_BARS X11 XDBE XIM XPM XWIDGETS GTK3 ZLIB Important settings: value of $LANG: en_US.UTF-8 value of $XMODIFIERS: @im=3Dibus locale-coding-system: utf-8-unix Major mode: Tcl Minor modes in effect: ggtags-mode: t bug-reference-prog-mode: t flyspell-mode: t shell-dirtrack-mode: t which-function-mode: t erc-services-mode: t erc-networks-mode: t savehist-mode: t tooltip-mode: t global-eldoc-mode: t show-paren-mode: t electric-indent-mode: t mouse-wheel-mode: t file-name-shadow-mode: t global-font-lock-mode: t font-lock-mode: t auto-composition-mode: t auto-encryption-mode: t auto-compression-mode: t column-number-mode: t line-number-mode: t auto-fill-function: do-auto-fill indent-tabs-mode: t transient-mark-mode: t Load-path shadows: /home/tromey/.emacs.d/elpa/bubbles-0.5/bubbles hides /usr/share/emacs/28.2/= lisp/play/bubbles /home/tromey/.emacs.d/elpa/dictionary-1.10/dictionary hides /usr/share/emac= s/28.2/lisp/net/dictionary Features: (shadow emacsbug rust-mode tabify man sh-script executable compare-w vc-annotate forth-interaction-mode forth-mode forth-spec forth-smie smie forth-syntax ert debug backtrace autoload tar-mode lisp-mnt url-http url-gw url-auth gud gnus-icalendar org-capture org-refile icalendar cus-edit cus-start cl-print shortdoc asm-mode apropos reposition conf-mode autoconf autoconf-mode texinfo texinfo-loaddefs m4-mode make-mode mule-util dired-aux arc-mode archive-mode flow-fill gnus-html help-fns radix-tree url-cache tcl macros org-bullets org-element avl-tree ol-eww eww xdg url-queue mm-url ol-rmail ol-mhe ol-irc ol-info ol-gnus nnselect gnus-search eieio-opt speedbar ezimage dframe ol-docview doc-view jka-compr image-mode exif ol-bibtex ol-bbdb ol-w3m ol-doi org-link-doi org ob ob-tangle ob-ref ob-lob ob-table ob-exp org-macro org-footnote org-src ob-comint org-pcomplete org-list org-faces org-entities noutline outline org-version ob-emacs-lisp ob-core ob-eval org-table oc-basic bibtex ol org-keys oc org-compat org-macs org-loaddefs find-func mailalias supercite regi mail-hist sort gnus-cite smiley shr-color mm-archive mail-extr gnus-bcklg gnus-async qp gnus-ml disp-table gnus-topic nndraft nnmh nnfolder utf-7 gnutls network-stream nsm gnus-agent gnus-srvr gnus-score score-mode nnvirtual gnus-msg gnus-art mm-uu mml2015 mm-view mml-smime smime dig nntp gnus-cache gnus-sum shr kinsoku svg dom gnus-group gnus-undo smtpmail sendmail gnus-start gnus-dbus dbus gnus-cloud nnimap nnmail mail-source utf7 netrc nnoo gnus-spec gnus-int gnus-range gnus-win gnus nnheader term/xterm xterm python tramp-sh find-file find-dired ffap dabbrev pulse log-view goto-addr log-edit message rmc puny dired dired-loaddefs rfc822 mml mml-sec epa epg rfc6068 epg-config gnus-util rmail rmail-loaddefs mm-decode mm-bodies mm-encode mail-parse rfc2231 rfc2047 rfc2045 mm-util ietf-drums mail-prsvr mailabbrev mail-utils gmm-utils mailheader pcvs-util smerge-mode diff copyright misearch multi-isearch ggtags hippie-exp derived etags fileloop generator xref project bug-reference cc-mode cc-fonts cc-guess cc-menus cc-cmds vc-mtn vc-hg vc-git diff-mode vc-bzr vc-src vc-sccs vc-svn vc-cvs vc-rcs add-log flyspell ispell diminish projectile ibuf-macs pcase edmacro kmacro grep compile text-property-search ibuf-ext ibuffer ibuffer-loaddefs dash appt diary-lib diary-loaddefs cal-menu calendar cal-loaddefs tramp tramp-loaddefs trampver tramp-integration files-x tramp-compat shell pcomplete parse-time ls-lisp which-func imenu minimap autorevert filenotify cus-load erc-track erc-match erc-services erc-networks erc-hl-nicks easy-mmode color erc-button erc-fill erc-stamp wid-edit erc-goodies erc erc-backend iso8601 time-date thingatpt pp format-spec erc-loaddefs comp comp-cstr rx cl-extra help-mode warnings advice vc-dir ewoc vc vc-dispatcher cc-styles cc-align cc-engine cc-vars cc-defs ange-ftp comint ansi-color ring server savehist clang-rename clang-include-fixer let-alist clang-format xml finder-inf gdb-shell-autoloads lisppaste-autoloads pydoc-info-autoloads info-look info cl weblogger-autoloads package browse-url url url-proxy url-privacy url-expand url-methods url-history url-cookie url-domsuf url-util mailcap url-handlers url-parse auth-source cl-seq eieio eieio-core cl-macs eieio-loaddefs password-cache json subr-x map url-vars seq byte-opt gv bytecomp byte-compile cconv cl-loaddefs cl-lib iso-transl tooltip eldoc paren electric uniquify ediff-hook vc-hooks lisp-float-type elisp-mode mwheel term/x-win x-win term/common-win x-dnd tool-bar dnd fontset image regexp-opt fringe tabulated-list replace newcomment text-mode lisp-mode prog-mode register page tab-bar menu-bar rfn-eshadow isearch easymenu timer select scroll-bar mouse jit-lock font-lock syntax font-core term/tty-colors frame minibuffer cl-generic cham georgian utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao korean japanese eucjp-ms cp51932 hebrew greek romanian slovak czech european ethiopic indian cyrillic chinese composite emoji-zwj charscript charprop case-table epa-hook jka-cmpr-hook help simple abbrev obarray cl-preloaded nadvice button loaddefs faces cus-face macroexp files window text-properties overlay sha1 md5 base64 format env code-pages mule custom widget hashtable-print-readable backquote threads xwidget-internal dbusbind inotify dynamic-setting system-font-setting font-render-setting cairo move-toolbar gtk x-toolkit x multi-tty make-network-process native-compile emacs) Memory information: ((conses 16 2993058 272550) (symbols 48 88842 38) (strings 32 206336 32085) (string-bytes 1 11250062) (vectors 16 120474) (vector-slots 8 3571778 468305) (floats 8 573 733) (intervals 56 431859 1461) (buffers 992 1145)) ------------=_1676053682-15322-1-- From unknown Sun Jun 22 08:08:53 2025 X-Loop: help-debbugs@gnu.org Subject: bug#61395: 28.2; bug-reference warning seems incorrect Resent-From: Tom Tromey Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 10 Feb 2023 18:33:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 61395 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Tassilo Horn Cc: Basil Contovounesios , 61395-done@debbugs.gnu.org, Eli Zaretskii , Tom Tromey Received: via spool by 61395-done@debbugs.gnu.org id=D61395.167605395515851 (code D ref 61395); Fri, 10 Feb 2023 18:33:01 +0000 Received: (at 61395-done) by debbugs.gnu.org; 10 Feb 2023 18:32:35 +0000 Received: from localhost ([127.0.0.1]:38123 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pQYCJ-00047a-0O for submit@debbugs.gnu.org; Fri, 10 Feb 2023 13:32:35 -0500 Received: from gproxy4-pub.mail.unifiedlayer.com ([69.89.23.142]:39941) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pQYCH-00047N-Aj for 61395-done@debbugs.gnu.org; Fri, 10 Feb 2023 13:32:34 -0500 Received: from cmgw15.mail.unifiedlayer.com (unknown [10.0.90.130]) by progateway6.mail.pro1.eigbox.com (Postfix) with ESMTP id 3F36A10049553 for <61395-done@debbugs.gnu.org>; Fri, 10 Feb 2023 18:32:26 +0000 (UTC) Received: from box5379.bluehost.com ([162.241.216.53]) by cmsmtp with ESMTP id QYC9pNmPvNEzMQYC9pvLfl; Fri, 10 Feb 2023 18:32:26 +0000 X-Authority-Reason: nr=8 X-Authority-Analysis: v=2.4 cv=LsVXdlRc c=1 sm=1 tr=0 ts=63e68dba 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=1t-KuDbxzj4ZraEyFj0A:9 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=P4OyKH3+Pg80yJCpGNSJEZEjIGzkQfQKAIuxtlipwX4=; b=Ee8qcXllze7rbhL8cIFfYknWCr qKlffeh08B3jkReJ1PAxYyIS3qKmqpNJutNQfRmhBc86sLCOhrbXu/DcsBy7BgjuvnAhGQ5EPv7rB gchurQJpLBIbkM44F/y0A0oKn; Received: from 75-166-130-93.hlrn.qwest.net ([75.166.130.93]:58892 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 1pQYC9-0020U8-B6; Fri, 10 Feb 2023 11:32:25 -0700 From: Tom Tromey 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> <87v8k9gznf.fsf@tromey.com> <87y1p5wf43.fsf@gnu.org> X-Attribution: Tom Date: Fri, 10 Feb 2023 11:32:22 -0700 In-Reply-To: <87y1p5wf43.fsf@gnu.org> (Tassilo Horn's message of "Fri, 10 Feb 2023 19:15:42 +0100") Message-ID: <87mt5lgymh.fsf@tromey.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.2 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain 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: 1pQYC9-0020U8-B6 X-Source: X-Source-Args: X-Source-Dir: X-Source-Sender: 75-166-130-93.hlrn.qwest.net (prentzel) [75.166.130.93]:58892 X-Source-Auth: tom+tromey.com X-Email-Count: 16 X-Source-Cap: ZWx5bnJvYmk7ZWx5bnJvYmk7Ym94NTM3OS5ibHVlaG9zdC5jb20= X-Local-Domain: yes X-Spam-Score: -0.0 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) Tassilo> It is. I've fixed it on the emacs-29 branch. Thank you very much. Tom From unknown Sun Jun 22 08:08:53 2025 X-Loop: help-debbugs@gnu.org Subject: bug#61395: 28.2; bug-reference warning seems incorrect Resent-From: =?UTF-8?Q?K=C3=A9vin?= Le Gouguec Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 11 Feb 2023 09:34:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 61395 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: 61395@debbugs.gnu.org Cc: tom@tromey.com, tsdh@gnu.org Received: via spool by 61395-submit@debbugs.gnu.org id=B61395.167610802011842 (code B ref 61395); Sat, 11 Feb 2023 09:34:02 +0000 Received: (at 61395) by debbugs.gnu.org; 11 Feb 2023 09:33:40 +0000 Received: from localhost ([127.0.0.1]:38713 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pQmGK-00034w-1A for submit@debbugs.gnu.org; Sat, 11 Feb 2023 04:33:40 -0500 Received: from mail-wr1-f51.google.com ([209.85.221.51]:46970) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pQmGH-00034h-81 for 61395@debbugs.gnu.org; Sat, 11 Feb 2023 04:33:38 -0500 Received: by mail-wr1-f51.google.com with SMTP id m14so7441009wrg.13 for <61395@debbugs.gnu.org>; Sat, 11 Feb 2023 01:33:37 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=content-transfer-encoding:mime-version:user-agent:message-id:date :references:in-reply-to:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=D81BEfmjOCO4QYRb8uyjY3mRCwMpisHqnX7FV5gXhWM=; b=o+Pf5JvPMjoQIW31ESNKG8ErBk0W535sAlAU+AhJY3flzB8Mf33l5VTtx4oRN30C9e tjQ4t+AVFfj3gkDq+5zR8cS95xrwpmQGcJqkgdILfhs9eaQLtJHt+1uOnKjEBy/JZ+bm tzXmBx3qXVKy4d2q85TlVzvtijdsgG72BOcp9Aal8CH2OIGdIBSkT33a/ftgR+x6qZlO mr1vzZivlNk8WjqRL30xQq1XHxEXmF5IQcj1vYffz/SfKske7+qNnWSpB/13hx0eezkD 5MuMrKSxTEjoTo4xD7qfdASiR45YQlv9MTkXh62WQM4jvOBRQuAuxJtVOHZC4iTGdZ1z WMJQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:user-agent:message-id:date :references:in-reply-to:subject:cc:to:from:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to; bh=D81BEfmjOCO4QYRb8uyjY3mRCwMpisHqnX7FV5gXhWM=; b=ubF2crwAzCnioKVnjVFl0XtwbqS7dW/2WE/2DFHQ2Xmy0eKEYMCRLs/gmigkCe222p fRvcp0YTRfYjUK86CR3rGn0zRDiMfEZ8QIB984gs9VTK9gHGZ4h6szn6cev8x7K0fbHr WtMB570I6sXA4XkMt//cTNNOuX+R88yqZrERUOa1G7yPeFh0z18KHVvSiRbY87yPI5ll AyM1qhumIBGt76BWoo3txVspvHJIw7dXagp2gpk968t3NiYKqmlzZPiPXVU3EZe6PU8L 9zj9cM3v5aqJ4xhdcH7HEARdkDEqAw0G/MuOfcDKB0e+TaZP+WFkyiTMTEnlGxt7r1Sv aakg== X-Gm-Message-State: AO0yUKWdu50radwlKhxHIK4AwQ2mKfWnG+NImbK8fmPlfsl8EOO9Awl+ tEhKEncliFyvCinfuRl+4qQ= X-Google-Smtp-Source: AK7set9lZA0cb8fuXJ4c5+SmlDPL9+YmAE72xMXFqNiBGjRr4ZQUGAaqKIbE0AjOVW59mQxuTaCzKA== X-Received: by 2002:adf:f20f:0:b0:2c5:4f48:cbb2 with SMTP id p15-20020adff20f000000b002c54f48cbb2mr964321wro.51.1676108011177; Sat, 11 Feb 2023 01:33:31 -0800 (PST) Received: from amdahl30 ([2a01:e0a:253:fe0:2ef0:5dff:fed2:7b49]) by smtp.gmail.com with ESMTPSA id c2-20020a5d4142000000b002c3e6b39512sm5769040wrq.53.2023.02.11.01.33.29 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 11 Feb 2023 01:33:30 -0800 (PST) From: =?UTF-8?Q?K=C3=A9vin?= Le Gouguec In-Reply-To: <87y1p5wf43.fsf@gnu.org> (Tassilo Horn's message of "Fri, 10 Feb 2023 19:15:42 +0100") 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> <87v8k9gznf.fsf@tromey.com> <87y1p5wf43.fsf@gnu.org> Date: Sat, 11 Feb 2023 10:33:29 +0100 Message-ID: <87edqw1r86.fsf@gmail.com> User-Agent: Gnus/5.13 (Gnus v5.13) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: 0.0 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) Tassilo Horn writes: > Thanks a lot and 100 bonus points to K=C3=A9vin who has been right with h= is > analysis. s/analysis/'irrational fear of anything match-data related'/ =E2=80=A6 s/irrational/'not always entirely unwarranted'/ Just living by Dr Monnier's wise words from bug#35564: >> I just tend to get superstitious about messing with match >> data. >=20 > Instead, you should get superstitious about using the match data too > far from the corresponding match. Amen =F0=9F=99=8F (I've since learned that "too far" really means "one function call away, if that function is declared neither 'pure nor 'side-effect-free") From unknown Sun Jun 22 08:08:53 2025 X-Loop: help-debbugs@gnu.org Subject: bug#61395: 28.2; bug-reference warning seems incorrect Resent-From: Tom Tromey Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 11 Feb 2023 15:57:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 61395 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: =?UTF-8?Q?K=C3=A9vin?= Le Gouguec Cc: tsdh@gnu.org, tom@tromey.com, 61395@debbugs.gnu.org Received: via spool by 61395-submit@debbugs.gnu.org id=B61395.167613102110664 (code B ref 61395); Sat, 11 Feb 2023 15:57:02 +0000 Received: (at 61395) by debbugs.gnu.org; 11 Feb 2023 15:57:01 +0000 Received: from localhost ([127.0.0.1]:42957 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pQsFJ-0002lw-Iu for submit@debbugs.gnu.org; Sat, 11 Feb 2023 10:57:01 -0500 Received: from outbound-ss-820.bluehost.com ([69.89.24.241]:46153) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pQsFF-0002le-2z for 61395@debbugs.gnu.org; Sat, 11 Feb 2023 10:56:59 -0500 Received: from cmgw15.mail.unifiedlayer.com (unknown [10.0.90.130]) by progateway2.mail.pro1.eigbox.com (Postfix) with ESMTP id DAEE610048546 for <61395@debbugs.gnu.org>; Sat, 11 Feb 2023 15:56:48 +0000 (UTC) Received: from box5379.bluehost.com ([162.241.216.53]) by cmsmtp with ESMTP id QsF6pNSKxh5kYQsF6p1tE4; Sat, 11 Feb 2023 15:56:48 +0000 X-Authority-Reason: nr=8 X-Authority-Analysis: v=2.4 cv=F8CSyotN c=1 sm=1 tr=0 ts=63e7bac0 a=ApxJNpeYhEAb1aAlGBBbmA==:117 a=ApxJNpeYhEAb1aAlGBBbmA==:17 a=dLZJa+xiwSxG16/P+YVxDGlgEgI=:19 a=IkcTkHD0fZMA:10:nop_charset_1 a=m04uMKEZRckA:10:nop_rcvd_month_year a=Qbun_eYptAEA:10:endurance_base64_authed_username_1 a=xOxMTGJ2nHebvgHNdFUA:9 a=QEXdDO2ut3YA:10:nop_charset_2 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=tromey.com; s=default; h=Content-Transfer-Encoding:Content-Type:MIME-Version:Message-ID: In-Reply-To:Date:References:Subject:Cc:To:From:Sender:Reply-To: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=OMm/6CMyij7mL0XMHa2hmmfsmG4WKq1YCCJbwDJP264=; b=rxHnhb5FbYkPmTjt8DZmKyxcXh 4jjIvyIJnYWa1qz92aJ4wGbfsLz2+do669/pZnQeOefDGYxqyKdYSuVm9UxCft6bMr1aHRlttMzTz tWPc4fS3p5m0LO9hIMcGY4ZNQ; Received: from 75-166-130-93.hlrn.qwest.net ([75.166.130.93]:37280 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 1pQsF6-002WOc-AX; Sat, 11 Feb 2023 08:56:48 -0700 From: Tom Tromey 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> <87v8k9gznf.fsf@tromey.com> <87y1p5wf43.fsf@gnu.org> <87edqw1r86.fsf@gmail.com> X-Attribution: Tom Date: Sat, 11 Feb 2023 08:56:44 -0700 In-Reply-To: <87edqw1r86.fsf@gmail.com> ("=?UTF-8?Q?K=C3=A9vin?= Le Gouguec"'s message of "Sat, 11 Feb 2023 10:33:29 +0100") Message-ID: <875yc8gpqb.fsf@tromey.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.2 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable 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: 1pQsF6-002WOc-AX X-Source: X-Source-Args: X-Source-Dir: X-Source-Sender: 75-166-130-93.hlrn.qwest.net (prentzel) [75.166.130.93]:37280 X-Source-Auth: tom+tromey.com X-Email-Count: 2 X-Source-Cap: ZWx5bnJvYmk7ZWx5bnJvYmk7Ym94NTM3OS5ibHVlaG9zdC5jb20= X-Local-Domain: yes X-Spam-Score: -0.0 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) K=C3=A9vin> (I've since learned that "too far" really means "one function c= all away, K=C3=A9vin> if that function is declared neither 'pure nor 'side-effect-fre= e") It'd be good to have an alternative regexp API that doesn't suffer from these problems. Both regexps themselves and match-data could just be ordinary objects instead of hidden things. Tom