From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Randy Taylor Newsgroups: gmane.emacs.bugs Subject: bug#63759: 29.0.91; dockerfile-ts-mode--imenu returns invalid index Date: Sun, 28 May 2023 02:08:07 +0000 Message-ID: <0EAFO0dt2aGv_b4IpqeoEFbeJOQ7nGwDT5YRFYOJjZT174aJgf0tVqpJu-Vl5MvqNX2vJU5pUS5uIStEkQjBKHB535Yzieu4DqZfveAVuEk=@rjt.dev> References: <83y1l9ipxx.fsf@gnu.org> <3L3FD8w6qqIZzCOUi2VZg1RNgfSDljIQvLCNffR0X9_waGZ1dWIiwyHZoiK-Nkv19wAwKy8PULK5RLDU82cAAQ2OV3ivxGCCdLn4TBVMYNA=@rjt.dev> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="b1_jfcK1lE5KPcDOOahWu1q0NRG3nZNDv8uICreliZfc" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="4736"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Eli Zaretskii , Jimmy Yuen Ho Wong , 63759@debbugs.gnu.org To: Ruijie Yu Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sun May 28 04:09:30 2023 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1q35qb-00013j-QN for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 28 May 2023 04:09:29 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1q35qC-0001U7-EZ; Sat, 27 May 2023 22:09:04 -0400 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 1q35qA-0001Tq-H5 for bug-gnu-emacs@gnu.org; Sat, 27 May 2023 22:09:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1q35qA-0005um-9M for bug-gnu-emacs@gnu.org; Sat, 27 May 2023 22:09:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1q35q9-0003WJ-QM for bug-gnu-emacs@gnu.org; Sat, 27 May 2023 22:09:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Randy Taylor Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 28 May 2023 02:09:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 63759 X-GNU-PR-Package: emacs Original-Received: via spool by 63759-submit@debbugs.gnu.org id=B63759.168523970113477 (code B ref 63759); Sun, 28 May 2023 02:09:01 +0000 Original-Received: (at 63759) by debbugs.gnu.org; 28 May 2023 02:08:21 +0000 Original-Received: from localhost ([127.0.0.1]:52837 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1q35pV-0003VJ-Bm for submit@debbugs.gnu.org; Sat, 27 May 2023 22:08:21 -0400 Original-Received: from mail-4323.proton.ch ([185.70.43.23]:35761) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1q35pU-0003V7-21 for 63759@debbugs.gnu.org; Sat, 27 May 2023 22:08:20 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=rjt.dev; s=protonmail3; t=1685239693; x=1685498893; bh=QRxtsNLQe7584oeCYbBL/izHbWUJ+F8kaW5YLkHrjVE=; h=Date:To:From:Cc:Subject:Message-ID:In-Reply-To:References: Feedback-ID:From:To:Cc:Date:Subject:Reply-To:Feedback-ID: Message-ID:BIMI-Selector; b=JYiIYggqcjybmuDq9+9SbkZuq9OyY5F+GE9D7D/MqkdiYo0rqS8riJDtn4Oc9/2BR QKNSBsIGbxebcBr2APHhKAkQVMEccr/5ynGOqjUkzYTu/3r16Pyf9OBP33ekYLIZpG MCCsMC+eq4GlJVhgCr04tDtSQqp/ZHJvCpHYUQDAH7q2/WZ6LXGeQF5jodfdM76poa 8ZtW9++r/XoeBHmeVAzZGqeSDkULNV8Xr+aajdJWUw8Rmr72BvA+C6OHPc2SoGhd9p 6hgGFcg5BXgJcZqp7IS2gzNgIjgZqBFWUn8RMfmdb1B3clEg58rjWvq342xKIPKeGP cScNyZc4oXxKw== In-Reply-To: Feedback-ID: 44397038:user:proton 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:262498 Archived-At: This is a multi-part message in MIME format. --b1_jfcK1lE5KPcDOOahWu1q0NRG3nZNDv8uICreliZfc Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable On Saturday, May 27th, 2023 at 21:28, Ruijie Yu wrote: > Randy Taylor dev@rjt.dev writes: >=20 > > Thanks for the report Jimmy. > >=20 > > Patch attached. > >=20 > > [2. text/x-patch; 0001-dockerfile-ts-mode-Prevent-empty-categories-in-i= menu.patch]... >=20 >=20 > I think you can get rid of the `append' call, no? >=20 > -- > Best, >=20 >=20 > RY Good point, thanks. That's what I get for lazily copying from my other tree= -sitter mode :). New patch attached. --b1_jfcK1lE5KPcDOOahWu1q0NRG3nZNDv8uICreliZfc Content-Type: text/x-patch; name=0001-dockerfile-ts-mode-Prevent-empty-categories-in-imenu.patch Content-Transfer-Encoding: base64 Content-Disposition: attachment; filename=0001-dockerfile-ts-mode-Prevent-empty-categories-in-imenu.patch RnJvbSAzZWM2MTg4NmNlMzgwN2Y2MTI1ZWEzMTViY2I3M2E0NDY5ODFhZDFkIE1vbiBTZXAgMTcg MDA6MDA6MDAgMjAwMQpGcm9tOiBSYW5keSBUYXlsb3IgPGRldkByanQuZGV2PgpEYXRlOiBTYXQs IDI3IE1heSAyMDIzIDIwOjUyOjM3IC0wNDAwClN1YmplY3Q6IFtQQVRDSF0gZG9ja2VyZmlsZS10 cy1tb2RlOiBQcmV2ZW50IGVtcHR5IGNhdGVnb3JpZXMgaW4gaW1lbnUKIChCdWcjNjM3NTkpCgoq IGxpc3AvcHJvZ21vZGVzL2RvY2tlcmZpbGUtdHMtbW9kZS5lbCAoZG9ja2VyZmlsZS10cy1tb2Rl LS1pbWVudSk6CkRvbid0IGluY2x1ZGUgZW1wdHkgY2F0ZWdvcmllcy4KLS0tCiBsaXNwL3Byb2dt b2Rlcy9kb2NrZXJmaWxlLXRzLW1vZGUuZWwgfCA1ICsrKy0tCiAxIGZpbGUgY2hhbmdlZCwgMyBp bnNlcnRpb25zKCspLCAyIGRlbGV0aW9ucygtKQoKZGlmZiAtLWdpdCBhL2xpc3AvcHJvZ21vZGVz L2RvY2tlcmZpbGUtdHMtbW9kZS5lbCBiL2xpc3AvcHJvZ21vZGVzL2RvY2tlcmZpbGUtdHMtbW9k ZS5lbAppbmRleCBmMmYzMGNmMjYxNy4uMjk3M2I1MTQ5ZGIgMTAwNjQ0Ci0tLSBhL2xpc3AvcHJv Z21vZGVzL2RvY2tlcmZpbGUtdHMtbW9kZS5lbAorKysgYi9saXNwL3Byb2dtb2Rlcy9kb2NrZXJm aWxlLXRzLW1vZGUuZWwKQEAgLTEyMyw4ICsxMjMsOSBAQCBkb2NrZXJmaWxlLXRzLW1vZGUt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