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: Wed, 19 Oct 2022 23:50:14 +0300 Organization: LINKOV.NET Message-ID: <86sfjkxk69.fsf@mail.linkov.net> References: Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="19748"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.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 Wed Oct 19 22:52:26 2022 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 1olG37-0004wd-Sc for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 19 Oct 2022 22:52:25 +0200 Original-Received: from localhost ([::1]:49700 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1olG36-0007FQ-Ho for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 19 Oct 2022 16:52:24 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:51904) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1olG2m-0007F7-Qh for bug-gnu-emacs@gnu.org; Wed, 19 Oct 2022 16:52:04 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:32995) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1olG2k-0006n7-A2 for bug-gnu-emacs@gnu.org; Wed, 19 Oct 2022 16:52:03 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1olG2j-0004sN-WF for bug-gnu-emacs@gnu.org; Wed, 19 Oct 2022 16:52: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: Wed, 19 Oct 2022 20:52:01 +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.166621269118704 (code B ref 58532); Wed, 19 Oct 2022 20:52:01 +0000 Original-Received: (at 58532) by debbugs.gnu.org; 19 Oct 2022 20:51:31 +0000 Original-Received: from localhost ([127.0.0.1]:60306 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1olG2E-0004rc-Px for submit@debbugs.gnu.org; Wed, 19 Oct 2022 16:51:31 -0400 Original-Received: from relay9-d.mail.gandi.net ([217.70.183.199]:34131) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1olG2C-0004rO-8x for 58532@debbugs.gnu.org; Wed, 19 Oct 2022 16:51:29 -0400 Original-Received: (Authenticated sender: juri@linkov.net) by mail.gandi.net (Postfix) with ESMTPSA id 24778FF803; Wed, 19 Oct 2022 20:51:20 +0000 (UTC) In-Reply-To: ("Daniel =?UTF-8?Q?Mart=C3=ADn?= via \"Bug reports for GNU Emacs, the Swiss army knife of text editors\""'s message of "Sat, 15 Oct 2022 02:52:33 +0200") 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" Xref: news.gmane.io gmane.emacs.bugs:245896 Archived-At: > It'd be great if imenu supported displaying its alist of entries in a > separate buffer. This is particularly useful when the list of entries > has many levels (for example, it is the table of contents of a PDF, Unfortunately, mupdf/mutool doesn't support Unicode characters: https://bugs.ghostscript.com/show_bug.cgi?id=702358 Maybe doc-view--pdf-outline could post-process the output to replace hex-encoded numbers with their character equivalents? > supported in Emacs 29), because you could search for an entry very > easily. Right now, pressing C-s in the minibuffer only searches for > first-level imenu entries. > > I suggest the new buffer would be configured in outline-mode, which is > suited for this kind of hierarchical content. The problem is that imenu-submenus-on-top is t by default, but such order is incompatible with the outline-mode trees. For example, all functions belong to the Variables outline: * Types imenu imenu-unavailable * Variables imenu-after-jump-hook imenu-auto-rescan imenu-auto-rescan-maxout ... imenu imenu--cleanup imenu--completion-buffer imenu--create-keymap ...