From unknown Sun Jun 22 17:12:45 2025 X-Loop: help-debbugs@gnu.org Subject: bug#73225: Repeating tags-search from the start doesn't work Resent-From: Roger Sewell Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 13 Sep 2024 11:15:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 73225 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: 73225@debbugs.gnu.org X-Debbugs-Original-To: Received: via spool by submit@debbugs.gnu.org id=B.172622606025603 (code B ref -1); Fri, 13 Sep 2024 11:15:01 +0000 Received: (at submit) by debbugs.gnu.org; 13 Sep 2024 11:14:20 +0000 Received: from localhost ([127.0.0.1]:42595 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sp4Fn-0006eo-1q for submit@debbugs.gnu.org; Fri, 13 Sep 2024 07:14:19 -0400 Received: from lists.gnu.org ([209.51.188.17]:54554) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sp2Ow-0008TN-5S for submit@debbugs.gnu.org; Fri, 13 Sep 2024 05:15:38 -0400 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 1sp2Om-0003uU-VM for bug-gnu-emacs@gnu.org; Fri, 13 Sep 2024 05:15:29 -0400 Received: from mta01.prd.rdg.aluminati.org ([94.76.243.214]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1sp2Ol-0003LN-Et for bug-gnu-emacs@gnu.org; Fri, 13 Sep 2024 05:15:28 -0400 Received: from mta01.prd.rdg.aluminati.org (localhost [127.0.0.1]) by mta01.prd.rdg.aluminati.org (Postfix) with ESMTP id 9D3832062D for ; Fri, 13 Sep 2024 10:15:22 +0100 (BST) Authentication-Results: mta01.prd.rdg.aluminati.org; dkim=pass (2048-bit key; unprotected) header.d=cantab.net header.i=@cantab.net header.a=rsa-sha256 header.s=dkim header.b=AVdRq4zX; dkim-atps=neutral Received: from localhost (localhost [127.0.0.1]) by mta01.prd.rdg.aluminati.org (Postfix) with ESMTP id 989EF20491 for ; Fri, 13 Sep 2024 10:15:22 +0100 (BST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=cantab.net; h= user-agent:message-id:date:date:x-mailer:subject:subject:from :from:received:received:received; s=dkim; t=1726218921; bh=VFG/Z c3TClu87YsM13SrWSQra3Y3QTDLh+/ZQo1F108=; b=AVdRq4zX4UxuioF6dqofw kA9PM39jkxUy9g8VLAMArvWwnihqqYTUwMqtXAYZQrQo0K3Piist0ySDfV1YtiMP 492whoAG6FS0M336HzSJXHW4qptWMVxW6NecKQqufMYJ9VZGK1qIZz+imOswsQ+i nlWxkOEuYyjkMaEX1Hy+es1LCIUWiTYPI7UMORMUJJKdvxnvk4kTrPu74nXqUnXd QJcKlOLPY9CTyURxA88/9Bx1sXWH2ORajHnA34d2nCTTtk/M/9TAIMYwyum1+Srg u4MpIM8kooDfuZPiWhfZWIpZ4q+QXm5Lds03Mi5zzdZHbA0ex5Jf9XZIyCW/ErFA w== X-Quarantine-ID: X-Virus-Scanned: Debian amavisd-new at mta01.prd.rdg.aluminati.org Received: from mta.aluminati.local ([127.0.0.1]) by localhost (mta01.prd.rdg.aluminati.org [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id VdhOAcQmkvpW for ; Fri, 13 Sep 2024 10:15:21 +0100 (BST) Received: from revelation.localdomain (static-87-75-118-217.vodafonexdsl.co.uk [87.75.118.217]) by svc01-1.prd.rdg.aluminati.org (Postfix) with ESMTPSA id E34F61C0002 for ; Fri, 13 Sep 2024 10:15:21 +0100 (BST) Received: by revelation.localdomain (Postfix, from userid 1000) id 41A81121145; Fri, 13 Sep 2024 10:15:21 +0100 (BST) From: Roger Sewell X-Mailer: MH-E 8.6+git; GNU Mailutils 3.13; GNU Emacs 27.2 Date: Fri, 13 Sep 2024 10:15:21 +0100 Message-ID: <20240913101521.64099@revelation.broadband> User-Agent: MH (GNU Mailutils 3.13) Received-SPF: pass client-ip=94.76.243.214; envelope-from=roger.sewell@cantab.net; helo=mta01.prd.rdg.aluminati.org X-Spam_score_int: -43 X-Spam_score: -4.4 X-Spam_bar: ---- X-Spam_report: (-4.4 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_MED=-2.3, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Score: -1.3 (-) X-Mailman-Approved-At: Fri, 13 Sep 2024 07:14:16 -0400 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.3 (--) Package: emacs I'm using emacs 1:27.2-10.el9_4 on Rocky Linux 9.4, which I realise is not the latest available version of emacs but is the latest package available for this distro. If I put two files in a directory, each containing multiple occurrences of foo-bar, run etags on them, and run tags-search for foo-bar, then the first time it correctly goes through every occurrence in both files. If I then repeat the tags-search for foo-bar, this time it only takes me to the LAST occurrence in each file. It makes no difference if I run tags-reset-tags-tables before the second search, nor if I tags-search for some other string that is found in a third file. Moreover, if after having done the first search I search for some other string found in one of the first two files, then instead of taking me to that other string, it takes me to the last occurrence of foo-bar. If you need any further information please let me know. If there is a workaround available, I'd be grateful to be told that also. Thanks, Roger Sewell. From unknown Sun Jun 22 17:12:45 2025 X-Loop: help-debbugs@gnu.org Subject: bug#73225: Repeating tags-search from the start doesn't work Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 13 Sep 2024 11:54:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 73225 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Roger Sewell Cc: 73225@debbugs.gnu.org Received: via spool by 73225-submit@debbugs.gnu.org id=B73225.17262284261895 (code B ref 73225); Fri, 13 Sep 2024 11:54:02 +0000 Received: (at 73225) by debbugs.gnu.org; 13 Sep 2024 11:53:46 +0000 Received: from localhost ([127.0.0.1]:42644 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sp4rx-0000US-NC for submit@debbugs.gnu.org; Fri, 13 Sep 2024 07:53:46 -0400 Received: from eggs.gnu.org ([209.51.188.92]:40888) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sp4rw-0000UA-KK for 73225@debbugs.gnu.org; Fri, 13 Sep 2024 07:53:45 -0400 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 1sp4rh-0006kq-Rh; Fri, 13 Sep 2024 07:53:29 -0400 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=EmcGGPIQ6TgPNLB/Rg9XW9rEBEWudNAHoyE8KUhqly4=; b=pBzcp0gJ8BiN AIOuDhbtIAJwagaioMsmdmbbJ6Oxf8fKqbRZ7tmJd2FNn/kAY+dyj5sRM0ko0JzEKkCgsOQckm7kN hT7cOitxZd4jjjdszucceyAe8D+LZdXDHTpR+u/g14N7yMJQqB6CGOICYq+3vNadnrixo6Oms7u/l gpfK40BYPZi+mxhX3LTIGN80kz50L+Q6VuLDdl80v86q1LJlt/czi7mHJUyb4ZRRNJ1vTfYPzyxxT r7/883Cq2WgtUCrL7m6rus6P77L/WaBRb5PHPboGYp8nLxu2iiHDWWEtyilJRtdMx27hvk2pUeG2p 0XoSDIFnX/9Y/+PYsMrKrQ==; Date: Fri, 13 Sep 2024 14:53:26 +0300 Message-Id: <86ldzvkbwp.fsf@gnu.org> From: Eli Zaretskii In-Reply-To: <20240913101521.64099@revelation.broadband> (message from Roger Sewell on Fri, 13 Sep 2024 10:15:21 +0100) References: <20240913101521.64099@revelation.broadband> 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: Roger Sewell > Date: Fri, 13 Sep 2024 10:15:21 +0100 > > Package: emacs > > I'm using emacs 1:27.2-10.el9_4 on Rocky Linux 9.4, which I realise is > not the latest available version of emacs but is the latest package > available for this distro. > > If I put two files in a directory, each containing multiple occurrences > of foo-bar, run etags on them, and run tags-search for foo-bar, then the > first time it correctly goes through every occurrence in both files. > > If I then repeat the tags-search for foo-bar, this time it only takes me > to the LAST occurrence in each file. Could you please post the files which can be used to reproduce this issue? It is otherwise hard to investigate this problem, since you didn't even say in what programming language were the source files written (tags-search and etags support quite a few of them, and each one might present unique problems). Thanks. From unknown Sun Jun 22 17:12:45 2025 X-Loop: help-debbugs@gnu.org Subject: bug#73225: Repeating tags-search from the start doesn't work Resent-From: Roger Sewell Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 13 Sep 2024 15:30:03 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 73225 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: "Eli Zaretskii" ,<73225@debbugs.gnu.org> Received: via spool by 73225-submit@debbugs.gnu.org id=B73225.172624134322714 (code B ref 73225); Fri, 13 Sep 2024 15:30:03 +0000 Received: (at 73225) by debbugs.gnu.org; 13 Sep 2024 15:29:03 +0000 Received: from localhost ([127.0.0.1]:44030 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sp8EI-0005uE-Gm for submit@debbugs.gnu.org; Fri, 13 Sep 2024 11:29:03 -0400 Received: from mta01.prd.rdg.aluminati.org ([94.76.243.214]:33834) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sp50G-00015w-S6 for 73225@debbugs.gnu.org; Fri, 13 Sep 2024 08:02:21 -0400 Received: from mta01.prd.rdg.aluminati.org (localhost [127.0.0.1]) by mta01.prd.rdg.aluminati.org (Postfix) with ESMTP id ECAD020A63; Fri, 13 Sep 2024 13:02:05 +0100 (BST) Authentication-Results: mta01.prd.rdg.aluminati.org; dkim=pass (2048-bit key; unprotected) header.d=cantab.net header.i=@cantab.net header.a=rsa-sha256 header.s=dkim header.b=ua2bl+EA; dkim-atps=neutral Received: from localhost (localhost [127.0.0.1]) by mta01.prd.rdg.aluminati.org (Postfix) with ESMTP id E7159206F2; Fri, 13 Sep 2024 13:02:05 +0100 (BST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=cantab.net; h= user-agent:message-id:date:date:mime-version:x-mailer:references :in-reply-to:subject:subject:from:from:received:received :received; s=dkim; t=1726228925; bh=+CZSBHfWEh7nQ5UYVw7HvIBB2SeB LG+39cdkTOqBCvQ=; b=ua2bl+EAL2013fTJJ4sGSp7j9dRN7vilpffn6rcdsVa0 faNnzBDqLV37G7fe8llmkHYbrNwQf8chDfozgynaAOmCRe5vQVjoPlOzni+7FQa+ 4zNk3+zDCYeDlcYsiqcmicpqtf97Zy4yjGvl8XS8DrzAakekDapqmnwYFDnFysm2 tJpN0/yy+0hwRr5pAJlggn7vbmHlCbKyg8wTzK5xufO616PnKNOu7j+STqLlLYYv +0mDx9G5LV2HsXx479dC/VKOeU1SNTl8cydwSj0fto8RmIzDeDHYzeTq6WE4ya9W UUJFs4nWrOfcSPRap6+xMBktliPxPkrCQt6uWRJ8nA== X-Quarantine-ID: X-Virus-Scanned: Debian amavisd-new at mta01.prd.rdg.aluminati.org Received: from mta.aluminati.local ([127.0.0.1]) by localhost (mta01.prd.rdg.aluminati.org [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id xO4RwLq9Li4i; Fri, 13 Sep 2024 13:02:05 +0100 (BST) Received: from revelation.localdomain (static-87-75-118-217.vodafonexdsl.co.uk [87.75.118.217]) by svc01-2.prd.rdg.aluminati.org (Postfix) with ESMTPSA id EA5D5780002; Fri, 13 Sep 2024 13:02:03 +0100 (BST) Received: by revelation.localdomain (Postfix, from userid 1000) id 3C0F5121146; Fri, 13 Sep 2024 13:02:03 +0100 (BST) From: Roger Sewell In-reply-to: Your message of Fri, 13 Sep 2024 14:53:26 +0300 <86ldzvkbwp.fsf@gnu.org> References: <20240913101521.64099@revelation.broadband> <86ldzvkbwp.fsf@gnu.org> X-Mailer: MH-E 8.6+git; GNU Mailutils 3.13; GNU Emacs 27.2 MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" Date: Fri, 13 Sep 2024 13:02:03 +0100 Message-ID: <20240913130203.69120@revelation.broadband> User-Agent: MH (GNU Mailutils 3.13) X-Spam-Score: -2.3 (--) X-Mailman-Approved-At: Fri, 13 Sep 2024 11:29:00 -0400 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 (---) --=-=-= Content-Type: text/plain Eli, > Could you please post the files which can be used to reproduce this > issue? It is otherwise hard to investigate this problem, since you > didn't even say in what programming language were the source files > written (tags-search and etags support quite a few of them, and each > one might present unique problems). These particular files are just text files, created to be as simple as possible while still demonstrating the bug. But I originally noticed it using Matlab code, but without any special Matlab mode enabled in emacs, just text mode. Thanks, Roger. --=-=-= Content-Type: application/gzip Content-Disposition: attachment; filename=tempdir.tar.gz Content-Transfer-Encoding: base64 Content-Description: tempdir.tar.gz H4sIAAAAAAAAA+3V30rDMBQG8FwHHyIPoJj/uRbdZCAKdi/QYQsDdZLWW5/dtOtihWEuNC2y77eL nkEgBw5fTlu9vD1t/SXJiAfOmO4rnOH9f6F1/x0Qoa0TXGrpHOFCSG0IMzmbOnhv2tIzRnzdJM5V /ucT/1I7zL/ePlcy0x3dgO1+3sfnb80wf86VtWH+UlhFGM/UzzcnPn9aLK4f7m/YcnW3oLTe7S42 pT9WjM/N3TT8mUP+11e3Ra47kvk3IubfhV0Q3n/Hkf9JnNHu5Vcf55wOZaxkrESo5m4Ushjvf5Hp jnT++df+N7rf/+FJQP4nQJerx2KdXv9z9wl5jPOvMt2RzL9UMf/WyX3+LfI/hU35Gn4NpTRWc7cE AAAAAAAAAAAAAAC/9AkwH22NACgAAA== --=-=-=-- From unknown Sun Jun 22 17:12:45 2025 X-Loop: help-debbugs@gnu.org Subject: bug#73225: Repeating tags-search from the start doesn't work Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 15 Sep 2024 08:40:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 73225 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Roger Sewell Cc: 73225@debbugs.gnu.org Received: via spool by 73225-submit@debbugs.gnu.org id=B73225.172638957118588 (code B ref 73225); Sun, 15 Sep 2024 08:40:02 +0000 Received: (at 73225) by debbugs.gnu.org; 15 Sep 2024 08:39:31 +0000 Received: from localhost ([127.0.0.1]:48338 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1spkn1-0004pg-OG for submit@debbugs.gnu.org; Sun, 15 Sep 2024 04:39:31 -0400 Received: from eggs.gnu.org ([209.51.188.92]:45780) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1spkmz-0004pN-HS; Sun, 15 Sep 2024 04:39:26 -0400 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 1spkmh-0002Hg-U9; Sun, 15 Sep 2024 04:39:08 -0400 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=6Nv4X7YPTUIG6xH6ISsmBXjjgwVmVzxwTjQ5FUwodxI=; b=VWKTj7c8VlJz Gy+OwftMLl1zE9rgHRSDrgkAMsiPhksJAs4GddSEeC5JFxqRP1xzUolJAbI6DyNkKK9ih6h1lxOKh KTaSAPI48B8ijtnJO0EcSHRCMyRGidYvCkgmr3zIpBTcmHIv+aBJ/vLBY52gQQ3qxj/2JXB2Vs4W4 HEXM7gfsfu95EGlQCf1iBnmy0dNaO8sikh2wpZ+KEd1V7m3juWphEki88aYlbMV6BQtY0CaQ+XxSU 8fX10RvvASgI+1mPJC4xEI4SBeelrnstIJqM+V9Q9+f/LnRGd40498qCaJS8cQ71t02AYHmloGCW2 Yyx542bZYONjn2lfIiq+pQ==; Date: Sun, 15 Sep 2024 11:39:04 +0300 Message-Id: <868qvte2fr.fsf@gnu.org> From: Eli Zaretskii In-Reply-To: <20240913130203.69120@revelation.broadband> (message from Roger Sewell on Fri, 13 Sep 2024 13:02:03 +0100) References: <20240913101521.64099@revelation.broadband> <86ldzvkbwp.fsf@gnu.org> <20240913130203.69120@revelation.broadband> 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 (---) close 73225 28.1 thanks > From: Roger Sewell > Date: Fri, 13 Sep 2024 13:02:03 +0100 > > > Could you please post the files which can be used to reproduce this > > issue? It is otherwise hard to investigate this problem, since you > > didn't even say in what programming language were the source files > > written (tags-search and etags support quite a few of them, and each > > one might present unique problems). > > These particular files are just text files, created to be as simple as > possible while still demonstrating the bug. But I originally noticed it > using Matlab code, but without any special Matlab mode enabled in emacs, > just text mode. Thanks. This is bug#48628, which was fixed in Emacs 28. So we have fixed this already, and upgrading to a newer version of Emacs will fix it for you. So I'm therefore closing this bug as fixed.