From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#68428: 29.1.90; info-xref-tests fails Date: Mon, 15 Jan 2024 15:32:10 +0200 Message-ID: <835xzuen8l.fsf@gnu.org> References: <87h6jh8bcz.fsf@gmx.de> <83y1ctf525.fsf@gnu.org> <87r0ik8b5s.fsf@gmx.de> <87r0ii6c54.fsf@gmx.de> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="32881"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 68428@debbugs.gnu.org To: Michael Albinus Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Mon Jan 15 14:33:16 2024 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 1rPN5Y-0008LI-9n for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 15 Jan 2024 14:33:16 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rPN5N-0004sX-Mq; Mon, 15 Jan 2024 08:33:05 -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 1rPN5L-0004qE-Iw for bug-gnu-emacs@gnu.org; Mon, 15 Jan 2024 08:33:03 -0500 Original-Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1rPN5L-0007xG-Ai for bug-gnu-emacs@gnu.org; Mon, 15 Jan 2024 08:33:03 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1rPN5L-0002uQ-2e for bug-gnu-emacs@gnu.org; Mon, 15 Jan 2024 08:33:03 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 15 Jan 2024 13:33:03 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 68428 X-GNU-PR-Package: emacs Original-Received: via spool by 68428-submit@debbugs.gnu.org id=B68428.170532555311116 (code B ref 68428); Mon, 15 Jan 2024 13:33:03 +0000 Original-Received: (at 68428) by debbugs.gnu.org; 15 Jan 2024 13:32:33 +0000 Original-Received: from localhost ([127.0.0.1]:44964 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rPN4r-0002tE-D1 for submit@debbugs.gnu.org; Mon, 15 Jan 2024 08:32:33 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:39314) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rPN4o-0002t0-QP for 68428@debbugs.gnu.org; Mon, 15 Jan 2024 08:32:31 -0500 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1rPN4j-0007iB-G2; Mon, 15 Jan 2024 08:32:25 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=kF/tmUrQnEws1wtrj1v5kRbx1q/JlB5uRRfwxL91sWU=; b=m5Jno0RATjLY tCIcMqXmYhaH/8xubzszP747AiwDliWEuRJ3yR5Zyo1EQs1O5u3qdqHSXhgENVNej6EEj5hSUfXS1 Ady5ADRtlUxTYNEBl3FzTQCwGkQSMt3+EoeA98fz3qoJ9h2sz//VbIIZDNS4r5h4nvIFyPDJgL6gT JI3lJg/J67xbkr0tKRN1JvMV15kyaVZzaUsv4o4mAx5MUITiAggisqCqr+T30FHiwaKXYW3rD+iFo Lm/alu8LcNOPhuuAjvmtd6M1yjMJJ7ExSky5rOD5IOdl0shhfnSIYfhiqe2h827cqd6+l4t+LQQGg R+Poh3sVM3JVRJsfoCCgvA==; In-Reply-To: <87r0ii6c54.fsf@gmx.de> (message from Michael Albinus on Mon, 15 Jan 2024 12:59:03 +0100) 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:278277 Archived-At: > From: Michael Albinus > Cc: 68428@debbugs.gnu.org > Date: Mon, 15 Jan 2024 12:59:03 +0100 > > Well, finally it is another bug. It is in function > info-xref-subfile-p. This function tries to determine, whether a given > file is an info subfile. > > My emacs-29 branch is checked out in directory /home/albinus/src/emacs-29. > So there is, for example, a call of > > (info-xref-subfile-p "/home/albinus/src/emacs-29/info/auth.info") > > The function tries to decompose the filename via the regexp > "\\`\\(\\([^-]*-\\)*[^-]*\\)-[0-9]+\\(.*\\)\\'". This succeeds, and > returns > > (match-string 1 filename) => "/home/albinus/src/emacs" > (match-string 3 filename) => "/info/auth.info" > > This is wrong. string-match should return nil according to the > intention. And the call of > > (file-exists-p "/home/albinus/src/emacs/info/auth.info") > > succeeds also, because my Emacs master branch is located in > /home/albinus/src/emacs, and therefore > "/home/albinus/src/emacs/info/auth.info" does exist. Can you explain why you see the bug and I don't? What exactly triggers the bug, and why didn't we uncover it until now? > The appended patch fixes this. Shall I install it in the emacs-29 or the > master branch? On master, please. But first I'd like to understand the bug better. Thanks.