From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: "Jose A. Ortega Ruiz" Newsgroups: gmane.emacs.bugs Subject: bug#58532: 29.0.50; Support displaying imenu entries in a separate buffer Date: Wed, 19 Oct 2022 22:35:19 +0100 Message-ID: <871qr35wfc.fsf@mail.jao.io> References: <86sfjkxk69.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="18017"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Cc: 58532@debbugs.gnu.org, Daniel =?UTF-8?Q?Mart=C3=ADn?= To: Juri Linkov Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Wed Oct 19 23:37:32 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 1olGkl-0004Vq-R3 for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 19 Oct 2022 23:37:32 +0200 Original-Received: from localhost ([::1]:58644 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1olGkk-0006iE-Ad for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 19 Oct 2022 17:37:30 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:60790) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1olGkI-0006i0-Hi for bug-gnu-emacs@gnu.org; Wed, 19 Oct 2022 17:37:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:33026) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1olGkI-00072D-9t for bug-gnu-emacs@gnu.org; Wed, 19 Oct 2022 17:37:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1olGkH-0005wH-S1 for bug-gnu-emacs@gnu.org; Wed, 19 Oct 2022 17:37:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: "Jose A. Ortega Ruiz" Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 19 Oct 2022 21:37: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.166621537022773 (code B ref 58532); Wed, 19 Oct 2022 21:37:01 +0000 Original-Received: (at 58532) by debbugs.gnu.org; 19 Oct 2022 21:36:10 +0000 Original-Received: from localhost ([127.0.0.1]:60337 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1olGjS-0005vD-F8 for submit@debbugs.gnu.org; Wed, 19 Oct 2022 17:36:10 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:60230) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1olGjO-0005ui-Ew for 58532@debbugs.gnu.org; Wed, 19 Oct 2022 17:36:08 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:50460) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1olGjJ-0006vE-4b; Wed, 19 Oct 2022 17:36:01 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-Version:Date:References:In-Reply-To:Subject:To: From; bh=QN7H0X7CgDa5isbcj3FK/9YjSclEMyJBoj+57e2Ep6k=; b=mnjwoWuNuEwbtglRPC+L hlTgtnP8q+9Qraa51XpqADfIXtnBro8Xf9p1Epk7wEQn79a3i7Xq0EclmMt6VRPx65P+YY9p+B05k JHRMS6oDVALjF94cf4rRKTieEZ0peq0KfINnQC/ORlifIGu6NNcWETgeknjkWW4VNMB+zzgSdg5zU Sl5LmqM6CGU9OqqUkWcGJQySnJ7bMj5wB4qTyENzhZ/4ltfCUR0UP/xQDvUmX362vfwGNk1XxzPen MaVL/FhTcIlw7d7+v3LBtkyp+cPKrNq5bH4hvIC3zlclq/ADePt2G0W3dEREi4TSz2jgxMgNIgBgZ zfGudEtcfm2FcA==; Original-Received: from cpc103048-sgyl39-2-0-cust502.18-2.cable.virginm.net ([92.233.85.247]:36952 helo=rivendell.localdomain) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1olGil-0000lq-EA; Wed, 19 Oct 2022 17:35:49 -0400 Original-Received: from localhost (rivendell.localdomain [local]) by rivendell.localdomain (OpenSMTPD) with ESMTPA id 69477127; Wed, 19 Oct 2022 21:35:19 +0000 (UTC) In-Reply-To: <86sfjkxk69.fsf@mail.linkov.net> (Juri Linkov's message of "Wed, 19 Oct 2022 23:50:14 +0300") X-Attribution: jao X-Clacks-Overhead: GNU Terry Pratchett X-URL: 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:245899 Archived-At: On Wed, Oct 19 2022, Juri Linkov wrote: >> 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? i wasn't aware of this mutool limitation when i wrote that function; if the encoding is good enough, yes, we could do that: i'll send a patch, unless someone already did. hmmm, do somebody have a good example of a PDF with lots of unicode in its section titles? > >> 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, that seems minor... one could always regenerate the index with imenu-submenus-on-top set to nil when the export is requested? jao -- There are two hard things in computer science: cache invalidation, naming things, and off-by-one errors.