From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Joel Reicher Newsgroups: gmane.emacs.help Subject: Re: imenu framework Date: Sun, 28 Jul 2024 16:23:28 +1000 Message-ID: <86v80qxcf3.fsf@gmail.com> References: Mime-Version: 1.0 Content-Type: text/plain; format=flowed Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="11637"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Cc: Heime via Users list for the GNU Emacs text editor To: Heime Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Sun Jul 28 08:24:23 2024 Return-path: Envelope-to: geh-help-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 1sXxKQ-0002qw-5V for geh-help-gnu-emacs@m.gmane-mx.org; Sun, 28 Jul 2024 08:24:22 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sXxJi-0005Jy-JE; Sun, 28 Jul 2024 02:23:38 -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 1sXxJg-0005JT-UK for help-gnu-emacs@gnu.org; Sun, 28 Jul 2024 02:23:36 -0400 Original-Received: from mail-yw1-x112a.google.com ([2607:f8b0:4864:20::112a]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1sXxJf-0007Jf-CY for help-gnu-emacs@gnu.org; Sun, 28 Jul 2024 02:23:36 -0400 Original-Received: by mail-yw1-x112a.google.com with SMTP id 00721157ae682-6510c0c8e29so9740977b3.0 for ; Sat, 27 Jul 2024 23:23:34 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1722147814; x=1722752614; darn=gnu.org; h=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=q5eTdrRwaZa8hEBh9+L2Cfj9v2p8r3OWLgqBvOOma4k=; b=JEjJbOIwLRkruiOrkRvrLcgGm9jBCbhwuBP42aWJK5DUODtdxVVj0BA72nD5m07cna HmKrhswqkY69L6O8sa5lffaBWDNYLyNBZhCisy1lHkvGD0Uf4DVCim70Q/GLvD71Z1e4 vC2qBfOL8VvPepO6I8fTsdCnnHR1JLpwZMIwYjFqe4Tuat+7ea5YYEzqSOB4XEm2gxlO 969zma/zyHulyGO5V+lcRBT+gLaf1R6q1ccw5exHC9A5cBYuLO2bk2m52yRKq5Aq5MNo DsCnwyitCxBJbQd4ernv9/oAlnPE0z5GRtXhqI0L2j+vgz6QJKzx1J7KFN4OGnX12JGi 6hGw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1722147814; x=1722752614; h=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=q5eTdrRwaZa8hEBh9+L2Cfj9v2p8r3OWLgqBvOOma4k=; b=BnQmA67eoUD8WWnsXGZqIgG7b5arwoRkozM5ZLmp0g7vWO654zbX1j0TXaWQMGloFI jWMWoI0QpXomlFk8wszk3N23JuaAZ6brnXAN+Kve4EDVbopLR7TpKUui3UvK6hiky9t2 gCnyXyuKsWMLOFe7r0HcvQvU1nTvP9KXzBIiYNazM7JGmZrX0RctAruLOZQdJCvibHiV AFjzog2wACBoNMZMKz3A7o030WmK1IJdA57IVIgHD5X0/N9Qbtnid5EW5ecGhORSng+j N5CCYXR0vVAnf8ekNLU0o/jtwWJ2S08cJeXzYDsVh/wqcjoIMXxjnkxp8d0Z0vjDw6HO zjMg== X-Gm-Message-State: AOJu0YywVJpIN7kqWcogpV2GZckoDBBr05w6tWUkhv1dZhqTUz0gJqTx K/As4QvF5XYPhRj58qtc9y4D6kTktMWttQtKEG0GMdYz3ndFFfgBdAOgPQ== X-Google-Smtp-Source: AGHT+IEHzxJ1E8rbXpY9wfgwmo1i6lLNiLBKev/wemJ0QCMbcC2lW2vRNW25FNn9lWRqrhApbuAHbw== X-Received: by 2002:a05:690c:698c:b0:645:2b26:5f64 with SMTP id 00721157ae682-679fffd2becmr62537767b3.0.1722147813771; Sat, 27 Jul 2024 23:23:33 -0700 (PDT) Original-Received: from LAPTOP-ACR66VVN ([1.145.241.211]) by smtp.gmail.com with ESMTPSA id d2e1a72fcca58-70ead8a489dsm4968780b3a.203.2024.07.27.23.23.32 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 27 Jul 2024 23:23:33 -0700 (PDT) In-Reply-To: (Heime's message of "Sat, 27 Jul 2024 21:29:04 +0000") Received-SPF: pass client-ip=2607:f8b0:4864:20::112a; envelope-from=joel.reicher@gmail.com; helo=mail-yw1-x112a.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-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.help:147408 Archived-At: Heime writes: > imenu is a framework for mode-specific buffer indexes > > Does this mean that it can list the function names depending on > the programming language mode ? That's what the language mode should provide, yes, but strictly speaking it depends on the mode. Do you have a particular mode in mind? Its code can be examined. For example, java-ts-mode contains (setq-local treesit-simple-imenu-settings '(("Class" "\\`class_declaration\\'" nil nil) ("Interface" "\\`interface_declaration\\'" nil nil) ("Enum" "\\`record_declaration\\'" nil nil) ("Method" "\\`method_declaration\\'" nil nil))) (and then there is glue in the generic treesitter code) Cheers, - Joel