From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Juri Linkov Newsgroups: gmane.emacs.bugs Subject: bug#58532: 29.0.50; Support displaying imenu entries in a separate buffer Date: Tue, 28 May 2024 20:55:40 +0300 Organization: LINKOV.NET Message-ID: <86fru1akir.fsf@mail.linkov.net> References: <86sfjkxk69.fsf@mail.linkov.net> <86edv3djdz.fsf@mail.linkov.net> <86jzk1opiy.fsf@mail.linkov.net> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="7403"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/30.0.50 (x86_64-pc-linux-gnu) Cc: 58532@debbugs.gnu.org To: Daniel =?UTF-8?Q?Mart=C3=ADn?= Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Tue May 28 20:00:18 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 1sC17S-0001gl-KB for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 28 May 2024 20:00:18 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sC175-00063C-Bg; Tue, 28 May 2024 13:59:55 -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 1sC173-00062W-1l for bug-gnu-emacs@gnu.org; Tue, 28 May 2024 13:59:53 -0400 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 1sC172-0007S8-Ng for bug-gnu-emacs@gnu.org; Tue, 28 May 2024 13:59:52 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1sC17C-0006Qz-2l for bug-gnu-emacs@gnu.org; Tue, 28 May 2024 14:00:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Juri Linkov Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 28 May 2024 18:00:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 58532 X-GNU-PR-Package: emacs Original-Received: via spool by 58532-submit@debbugs.gnu.org id=B58532.171691915624598 (code B ref 58532); Tue, 28 May 2024 18:00:02 +0000 Original-Received: (at 58532) by debbugs.gnu.org; 28 May 2024 17:59:16 +0000 Original-Received: from localhost ([127.0.0.1]:49759 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sC16S-0006Of-Dx for submit@debbugs.gnu.org; Tue, 28 May 2024 13:59:16 -0400 Original-Received: from relay1-d.mail.gandi.net ([217.70.183.193]:43177) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sC16Q-0006OI-Vu for 58532@debbugs.gnu.org; Tue, 28 May 2024 13:59:15 -0400 Original-Received: by mail.gandi.net (Postfix) with ESMTPSA id AD9A8240002; Tue, 28 May 2024 17:58:58 +0000 (UTC) In-Reply-To: <86jzk1opiy.fsf@mail.linkov.net> (Juri Linkov's message of "Fri, 10 May 2024 19:42:25 +0300") X-GND-Sasl: juri@linkov.net 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:286105 Archived-At: >>> That's a good point. Perhaps we need to create a special mode to >>> display the imenu hierarchy. >> >> This problem occurs only when MENU-TITLE is nil in imenu-generic-expression. >> We could invent a fictitious outline heading for such empty titles, e.g. >> "All" or "Other". Then it will have own outline: >> >> * Types >> imenu >> imenu-unavailable >> * Variables >> imenu-after-jump-hook >> imenu-auto-rescan >> imenu-auto-rescan-maxout >> ... >> * Other >> imenu >> imenu--cleanup >> imenu--completion-buffer >> imenu--create-keymap >> ... > > Creating an outline-mode buffer like this is easy to do, but > I doubt that a duplicate of imenu-list.el is needed to be in core, > because I'm sure in this case people will ask to copy more > features from imenu-list.el such as imenu-list-auto-update, etc. With the imenu-flatten option 'group' proposed in bug#70846 it will be possible to use exactly the same outlines as above in the Completions buffer.