From: Jose A Ortega Ruiz <jao@gnu.org>
To: dalanicolai <dalanicolai@gmail.com>, Emacs Devel <emacs-devel@gnu.org>
Subject: Re: [ELPA] New package: toc-mode
Date: Tue, 20 Sep 2022 22:30:05 +0100 [thread overview]
Message-ID: <87h711pwde.fsf@mail.jao.io> (raw)
In-Reply-To: CACJP=3k2hqPhbs4ssYQzkDp=a=qsjJFmi_Oq=cGJjTpVwSwy2w@mail.gmail.com
On Tue, Sep 20 2022, dalanicolai wrote:
> This package has been for a while on MELPA now, but it would be nice if it
> could be moved to ELPA. The source can be found at
> https://github.com/dalanicolai/toc-mode.
>
> I would like to mention that the PDF functionalities largely depend on
> pdf-tools, which is not on ELPA of course (doc-view unfortunately does
> not provide the right features). I am not sure if that somehow is a
> problem.
for doc-view, if you're willing to rely on "mutool" (a cli program that
is installed with mupdf), one can extract an outline with something
similar to this function:
https://codeberg.org/jao/elibs/src/branch/main/lib/doc/jao-pdf.el#L48
i then for instance use it to provide imenu jumping with this code:
https://codeberg.org/jao/elibs/src/branch/main/lib/doc/jao-doc-view.el#L50
just in case you'd like to add something like that to your package (all
in all it's just a dozen lines per function).
cheers,
jao
--
Who knows what Columbus would have discovered if America hadn't got in the
way. -Stanislaw J. Lec, poet and aphorist (1909-1966)
next prev parent reply other threads:[~2022-09-20 21:30 UTC|newest]
Thread overview: 25+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-09-20 12:33 [ELPA] New package: toc-mode dalanicolai
2022-09-20 15:57 ` Jean Louis
2022-09-20 20:51 ` Emanuel Berg
2022-09-20 17:37 ` Philip Kaludercic
2022-09-21 6:57 ` dalanicolai
2022-09-21 7:09 ` Emanuel Berg
2022-09-21 16:55 ` dalanicolai
2022-09-21 16:58 ` dalanicolai
2022-09-21 7:46 ` Philip Kaludercic
2022-09-20 18:04 ` Stefan Kangas
2022-09-20 21:30 ` Jose A Ortega Ruiz [this message]
2022-09-21 7:12 ` dalanicolai
2022-09-22 8:02 ` Jean Louis
2022-09-22 15:27 ` Jose A Ortega Ruiz
2022-09-20 22:03 ` Stefan Monnier
2022-09-21 7:18 ` dalanicolai
2022-09-21 7:19 ` dalanicolai
2022-09-25 11:44 ` Visuwesh
2022-09-25 16:47 ` dalanicolai
2022-09-25 16:57 ` dalanicolai
2022-09-25 17:13 ` Yuri Khan
2022-09-25 21:18 ` dalanicolai
2022-09-25 21:37 ` Philip Kaludercic
2022-09-26 4:55 ` dalanicolai
2022-09-26 16:09 ` Visuwesh
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=87h711pwde.fsf@mail.jao.io \
--to=jao@gnu.org \
--cc=dalanicolai@gmail.com \
--cc=emacs-devel@gnu.org \
/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.