GNU bug report logs - #78456
31.0.50; regression in treesit-simple-imenu

Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.

Package: emacs; Reported by: Vincenzo Pupillo <v.pupillo@HIDDEN>; Done: Juri Linkov <juri@HIDDEN>; Maintainer for emacs is bug-gnu-emacs@HIDDEN.

Message received at 78456 <at> debbugs.gnu.org:


Received: (at 78456) by debbugs.gnu.org; 16 May 2025 16:07:16 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Fri May 16 12:07:16 2025
Received: from localhost ([127.0.0.1]:40398 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1uFxad-0000cU-QH
	for submit <at> debbugs.gnu.org; Fri, 16 May 2025 12:07:16 -0400
Received: from eggs.gnu.org ([2001:470:142:3::10]:60540)
 by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.84_2) (envelope-from <eliz@HIDDEN>) id 1uFxab-0000bU-EM
 for 78456 <at> debbugs.gnu.org; Fri, 16 May 2025 12:07:14 -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 <eliz@HIDDEN>)
 id 1uFxaW-0003yL-3u; Fri, 16 May 2025 12:07:08 -0400
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=BkNNTieHHTdqtxXwJmlrsQSJiBvy+3FtUXR6uHMIGfg=; b=CV8igj4lv+R0dpI6AJBL
 ekZ9UYY55KRn6v5pPFU6xREqY84EcJByrzVNL9ZYNGItN745X4699UbbnlZzpyy5EtkmtB3qZU1vz
 GFmb3RG9AVAffHMSk8AxKd4iwWb3Yng7ovqIEP+Iut7MJ/vJ7VuytZOJQVAEQVBiMljOkQvV7HO9B
 mpnVADo3r5XqeN7asx8AVeWSPxlHWefrM0vudx4DeognsvbD5TVgDyK5t85mISH50l1kE6I8NmBGp
 N0nFrPGvK8X3eWTPNLa3yNiEZkcC+2vlepCW5yBliy/eQsUsJyoTDudrd4rVx6cDb9mC82fiQV+n3
 vMxghsghUso0Lg==;
Date: Fri, 16 May 2025 19:07:05 +0300
Message-Id: <86ldqwy1xy.fsf@HIDDEN>
From: Eli Zaretskii <eliz@HIDDEN>
To: Vincenzo Pupillo <v.pupillo@HIDDEN>, Juri Linkov <juri@HIDDEN>
In-Reply-To: <26923989.1r3eYUQgxm@fedora> (message from Vincenzo Pupillo on
 Fri, 16 May 2025 16:03:32 +0200)
Subject: Re: bug#78456: 31.0.50; regression in treesit-simple-imenu
References: <26923989.1r3eYUQgxm@fedora>
MIME-version: 1.0
Content-type: text/plain; charset=utf-8
Content-Transfer-Encoding: 8bit
X-Spam-Score: -2.3 (--)
X-Debbugs-Envelope-To: 78456
Cc: 78456 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -3.3 (---)

> From: Vincenzo Pupillo <v.pupillo@HIDDEN>
> Date: Fri, 16 May 2025 16:03:32 +0200
> 
> Ciao, 
> Imenu of ‘mhtml-ts-mode’ was able to show all (when I wrote mhtml-ts-mode) 
> items regardless of the cursor's position within the file. 
> For example, it always showed CSS, JavaScript, and HTML items. However, I 
> realized that the behavior has changed, and the displayed items vary depending 
> on the cursor's position.
> 
> If the cursor is placed inside the <script> tags, you will see HTML and 
> JavaScript items, but not CSS items. If the cursor is positioned outside the 
> <style> and <script> tags, only the HTML items are visible.
> 
> This change seems to be related to the patch (bug #77256). Is it possible to 
> restore the previous behavior?

I think you are talking about commit a6d746400cd?  So adding Juri to
the discussion.




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#78456; Package emacs. Full text available.
bug marked as fixed in version 31.0.50, send any further explanations to 78456 <at> debbugs.gnu.org and Vincenzo Pupillo <v.pupillo@HIDDEN> Request was from Juri Linkov <juri@HIDDEN> to control <at> debbugs.gnu.org. Full text available.

Message received at 78456 <at> debbugs.gnu.org:


Received: (at 78456) by debbugs.gnu.org; 16 May 2025 16:05:47 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Fri May 16 12:05:47 2025
Received: from localhost ([127.0.0.1]:40370 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1uFxZC-0000Qs-NC
	for submit <at> debbugs.gnu.org; Fri, 16 May 2025 12:05:47 -0400
Received: from relay6-d.mail.gandi.net ([2001:4b98:dc4:8::226]:39359)
 by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.84_2) (envelope-from <juri@HIDDEN>)
 id 1uFxZ9-0000Q2-6e; Fri, 16 May 2025 12:05:43 -0400
Received: by mail.gandi.net (Postfix) with ESMTPSA id 808ED439AA;
 Fri, 16 May 2025 16:05:34 +0000 (UTC)
From: Juri Linkov <juri@HIDDEN>
To: Vincenzo Pupillo <v.pupillo@HIDDEN>
Subject: Re: bug#78456: 31.0.50; regression in treesit-simple-imenu
In-Reply-To: <26923989.1r3eYUQgxm@fedora>
Organization: LINKOV.NET
References: <26923989.1r3eYUQgxm@fedora>
Date: Fri, 16 May 2025 19:04:09 +0300
Message-ID: <87wmag4k5i.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/31.0.50 (x86_64-pc-linux-gnu)
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: 8bit
X-GND-State: clean
X-GND-Score: -100
X-GND-Cause: gggruggvucftvghtrhhoucdtuddrgeefvddrtddtgdefudefudekucetufdoteggodetrfdotffvucfrrhhofhhilhgvmecuifetpfffkfdpucggtfgfnhhsuhgsshgtrhhisggvnecuuegrihhlohhuthemuceftddunecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenucfjughrpefhvfevufgjohhffffkfgggtgfgsehtkeertddtreejnecuhfhrohhmpefluhhrihcunfhinhhkohhvuceojhhurhhisehlihhnkhhovhdrnhgvtheqnecuggftrfgrthhtvghrnhepieffteejgeehffejuedtiefhudekgeejteekiefgveeuheetvdefgeekkeevkedunecukfhppeeluddruddvledruddthedruddujeenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepihhnvghtpeeluddruddvledruddthedruddujedphhgvlhhopehmrghilhdrghgrnhguihdrnhgvthdpmhgrihhlfhhrohhmpehjuhhriheslhhinhhkohhvrdhnvghtpdhnsggprhgtphhtthhopeefpdhrtghpthhtoheptghonhhtrhholhesuggvsggsuhhgshdrghhnuhdrohhrghdprhgtphhtthhopeejkeegheeiseguvggssghughhsrdhgnhhurdhorhhgpdhrtghpthhtohepvhdrphhuphhilhhlohesghhmrghilhdrtghomh
X-GND-Sasl: juri@HIDDEN
X-Spam-Score: -0.7 (/)
X-Debbugs-Envelope-To: 78456
Cc: 78456 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.7 (-)

close 78456 31.0.50
thanks

> Ciao, 
> Imenu of ‘mhtml-ts-mode’ was able to show all (when I wrote mhtml-ts-mode) 
> items regardless of the cursor's position within the file. 
> For example, it always showed CSS, JavaScript, and HTML items. However, I 
> realized that the behavior has changed, and the displayed items vary depending 
> on the cursor's position.
>
> If the cursor is placed inside the <script> tags, you will see HTML and 
> JavaScript items, but not CSS items. If the cursor is positioned outside the 
> <style> and <script> tags, only the HTML items are visible.
>
> This change seems to be related to the patch (bug #77256). Is it possible to 
> restore the previous behavior?

Sorry, this was caused by the assumption that imenu should depend
on the language at point.  I have no opinion whether imenu should
be context-dependent or global to show tags from all languages.
So I just restored the previous behavior.




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#78456; Package emacs. Full text available.

Message received at submit <at> debbugs.gnu.org:


Received: (at submit) by debbugs.gnu.org; 16 May 2025 14:04:00 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Fri May 16 10:04:00 2025
Received: from localhost ([127.0.0.1]:39177 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1uFvfL-0003xU-NE
	for submit <at> debbugs.gnu.org; Fri, 16 May 2025 10:04:00 -0400
Received: from lists.gnu.org ([2001:470:142::17]:58752)
 by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.84_2) (envelope-from <v.pupillo@HIDDEN>)
 id 1uFvfI-0003x6-Sy
 for submit <at> debbugs.gnu.org; Fri, 16 May 2025 10:03:57 -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 <v.pupillo@HIDDEN>)
 id 1uFvf3-0006hY-0n
 for bug-gnu-emacs@HIDDEN; Fri, 16 May 2025 10:03:42 -0400
Received: from mail-wm1-x32c.google.com ([2a00:1450:4864:20::32c])
 by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128)
 (Exim 4.90_1) (envelope-from <v.pupillo@HIDDEN>)
 id 1uFvf0-0002Ks-ST
 for bug-gnu-emacs@HIDDEN; Fri, 16 May 2025 10:03:40 -0400
Received: by mail-wm1-x32c.google.com with SMTP id
 5b1f17b1804b1-43cec5cd73bso14741555e9.3
 for <bug-gnu-emacs@HIDDEN>; Fri, 16 May 2025 07:03:37 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=gmail.com; s=20230601; t=1747404216; x=1748009016; darn=gnu.org;
 h=content-transfer-encoding:mime-version:message-id:date:subject:to
 :from:from:to:cc:subject:date:message-id:reply-to;
 bh=ydl7VTJXsBX9r5rPd1r85QFBkUuaym8VozZ2nvyeUGY=;
 b=gKW0FL83jYKYvKeKxinBPNHAbob3CaOqTaf+kfBIMvntrNFv/Y89aimlQAwwgzinyN
 q8yunU7cx+mtAw6rxEJrremMskup7HCRLZsJte/6Y39Et2dZ1zGraeiqEsY9TCFzMtXu
 ANKdLZsC1tqj5JBx8gQRrLD7J+6Bz9zerjv+65HP4zTffzTkFehag05DC8Bpe6YZVHuq
 QmwFVO90XHQN2OPE0IQ7IK/++uo3asrMQWddM0xzH+zJ11Dk2bSo/mn64rduY39fmh2f
 2n9cNt8KlGyHt/F4VnUabq69bYgbcEy9dashlQlNmSru7KwXBu+aFOucY9ZEcueq2KMk
 4BUA==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20230601; t=1747404216; x=1748009016;
 h=content-transfer-encoding:mime-version:message-id:date:subject:to
 :from:x-gm-message-state:from:to:cc:subject:date:message-id:reply-to;
 bh=ydl7VTJXsBX9r5rPd1r85QFBkUuaym8VozZ2nvyeUGY=;
 b=fWG4JRBJ2BFlckTWg3zLbBgpKXTi6l3eytUcADMk5P8OUxqlVNWM9U19CDeXWJAOGW
 2ji/OzV7wAtFl6USFoKJy5TAjSiqiw89lWGy03mwkFx0Ps5wZwlLdG8HUuZiTHjHpxh2
 idsH17AbZOHu+cHZqDPF4j99VRaPU6k8CZc1y0lJpfGefJWMYFV11WuwVTzJt4Uu0cAg
 KwL+arPbkmAl0L8kKFgIB5j7ee6hPc3ZRIQ/AwZ2FPaEwVilP4c7z2Yq/1tnAUxol93U
 xbZSMftHmusOE4UrJsTl/XMNejstjKUDOXPFbTqxjnd/uwhCF9bEt2DsG7JGDsGqFk0w
 GZKQ==
X-Gm-Message-State: AOJu0YyhjQHIXX9bbOk6LB3GClD3y9IwpxHc7EkmIkuPY2uppsCKCHl9
 Xi9jJJ8aOkXFC6fNmuAuqnn1owsIg5FAYcxtwYc+ns51Ee5FVkR0tkEMo8SuPQ==
X-Gm-Gg: ASbGnctuCf3YCskSQ/+a5QlCT1VBsC+Gm/5Z+rnzpQ79oCFoteTwn3fl+QhzGIkT/Ho
 QPBPrVnCXCWFr011JeL2ra10y9eK8aW/nCoFb+eofQPaHdgC+NLof1y3lxe8Uh5fk+y1T2vp0Rz
 ZllZR3tcv7IYJ9z+R/OcB/phBj/mCepsMMyvYzUrfh0Q2nCTIkyzZqzlX2wBs5XAffs6MweA7yZ
 sxnL+yGLvwOdA8BiI3nIgl0Zx14f2BaiJfRMp4oen7yYOGY1gmnTGZlvDh0jQCIKepbI6/cvo9g
 A4j71BU3qNnIee5lLYDJR57AWWhi7+lYZVAFTiyzHjyLr0iI9Pqp2+C4TPvkXdZhKJ3Y2acqUa+
 XfpJK0g0sGltN2/w=
X-Google-Smtp-Source: AGHT+IGDLRTg4en+oEr1vNjlPMnYkz6KyB/shop2RusU1dOqWuXeQx1ep2Yy80e8IRdUz2mSI3B1Xw==
X-Received: by 2002:a05:600c:c13:b0:43d:79:ae1b with SMTP id
 5b1f17b1804b1-442fd627416mr37704325e9.14.1747404214156; 
 Fri, 16 May 2025 07:03:34 -0700 (PDT)
Received: from fedora.localnet (2-230-139-124.ip202.fastwebnet.it.
 [2.230.139.124]) by smtp.gmail.com with ESMTPSA id
 5b1f17b1804b1-442fd59ab21sm33650195e9.38.2025.05.16.07.03.32
 for <bug-gnu-emacs@HIDDEN>
 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);
 Fri, 16 May 2025 07:03:33 -0700 (PDT)
From: Vincenzo Pupillo <v.pupillo@HIDDEN>
To: bug-gnu-emacs@HIDDEN
Subject: 31.0.50; regression in treesit-simple-imenu
Date: Fri, 16 May 2025 16:03:32 +0200
Message-ID: <26923989.1r3eYUQgxm@fedora>
MIME-Version: 1.0
Content-Transfer-Encoding: quoted-printable
Content-Type: text/plain; charset="utf-8"
Received-SPF: pass client-ip=2a00:1450:4864:20::32c;
 envelope-from=v.pupillo@HIDDEN; helo=mail-wm1-x32c.google.com
X-Spam_score_int: -20
X-Spam_score: -2.1
X-Spam_bar: --
X-Spam_report: (-2.1 / 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, FREEMAIL_FROM=0.001,
 RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001,
 SPF_PASS=-0.001 autolearn=ham autolearn_force=no
X-Spam_action: no action
X-Spam-Score: 1.0 (+)
X-Debbugs-Envelope-To: submit
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -0.0 (/)

Ciao,=20
Imenu of =E2=80=98mhtml-ts-mode=E2=80=99 was able to show all (when I wrote=
 mhtml-ts-mode)=20
items regardless of the cursor's position within the file.=20
=46or example, it always showed CSS, JavaScript, and HTML items. However, I=
=20
realized that the behavior has changed, and the displayed items vary depend=
ing=20
on the cursor's position.

If the cursor is placed inside the <script> tags, you will see HTML and=20
JavaScript items, but not CSS items. If the cursor is positioned outside th=
e=20
<style> and <script> tags, only the HTML items are visible.

This change seems to be related to the patch (bug #77256). Is it possible t=
o=20
restore the previous behavior?

Thanks.
V.

=2D-8<---------------cut here---------------start------------->8---
<!DOCTYPE html>
<html>
  <head>
    <title></title>
    <style>
      body {
	  background-color: lightblue;
      }

      h1 {
	  color: white;
	  text-align: center;
      }

      p {
	  font-family: verdana;
	  font-size: 20px;
      }

      c {
	  color: red;
      }
    </style>
    <script>
      function myFunction(p1, p2) {
	  return p1 * p2;
      }

      function test(a, b) {
	  return a + b;
      }

      function provola(c, d, e) {
	  return c + d + e;
      }
    </script>
    <script>
      function tion(p1, p2) {
	  return p1 * p2;
      }

    </script>
  </head>
  <body>
    <h1>
      <div></div>
      <a href=3D"http://example.com">http://example.com</a>
      <div></div>
      <div></div>
    </h1>
  </body>
</html>
=2D-8<---------------cut here---------------end--------------->8---







Acknowledgement sent to Vincenzo Pupillo <v.pupillo@HIDDEN>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs@HIDDEN. Full text available.
Report forwarded to bug-gnu-emacs@HIDDEN:
bug#78456; Package emacs. Full text available.
Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.
Last modified: Fri, 16 May 2025 16:15:04 UTC

GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997 nCipher Corporation Ltd, 1994-97 Ian Jackson.