all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: "Jose A. Ortega Ruiz" <jao@gnu.org>
To: Juri Linkov <juri@linkov.net>
Cc: 58532@debbugs.gnu.org, "Daniel Martín" <mardani29@yahoo.es>
Subject: bug#58532: 29.0.50; Support displaying imenu entries in a separate buffer
Date: Wed, 19 Oct 2022 22:35:19 +0100	[thread overview]
Message-ID: <871qr35wfc.fsf@mail.jao.io> (raw)
In-Reply-To: <86sfjkxk69.fsf@mail.linkov.net> (Juri Linkov's message of "Wed,  19 Oct 2022 23:50:14 +0300")

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.





  reply	other threads:[~2022-10-19 21:35 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <m1v8ol6h7y.fsf.ref@yahoo.es>
2022-10-15  0:52 ` bug#58532: 29.0.50; Support displaying imenu entries in a separate buffer Daniel Martín via Bug reports for GNU Emacs, the Swiss army knife of text editors
2022-10-15 14:51   ` Akib Azmain Turja via Bug reports for GNU Emacs, the Swiss army knife of text editors
2022-10-15 23:58     ` Daniel Martín via Bug reports for GNU Emacs, the Swiss army knife of text editors
2022-10-16 11:45       ` Akib Azmain Turja via Bug reports for GNU Emacs, the Swiss army knife of text editors
2022-10-16 13:10         ` Daniel Martín via Bug reports for GNU Emacs, the Swiss army knife of text editors
2022-10-15 14:51   ` Akib Azmain Turja via Bug reports for GNU Emacs, the Swiss army knife of text editors
2022-10-19 20:50   ` Juri Linkov
2022-10-19 21:35     ` Jose A. Ortega Ruiz [this message]
2022-10-19 21:51       ` Stephen Berman
2022-10-20  7:38         ` Juri Linkov
2022-10-19 23:00       ` Jose A. Ortega Ruiz
2022-10-20  7:39         ` Juri Linkov
2022-10-19 22:03     ` Daniel Martín via Bug reports for GNU Emacs, the Swiss army knife of text editors
2022-10-20  7:43       ` Juri Linkov
2024-05-10 16:42         ` Juri Linkov
2024-05-28 17:55           ` Juri Linkov

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=871qr35wfc.fsf@mail.jao.io \
    --to=jao@gnu.org \
    --cc=58532@debbugs.gnu.org \
    --cc=juri@linkov.net \
    --cc=mardani29@yahoo.es \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.