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.devel Subject: Re: [ELPA] New package: toc-mode Date: Tue, 20 Sep 2022 22:30:05 +0100 Message-ID: <87h711pwde.fsf@mail.jao.io> 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="34293"; mail-complaints-to="usenet@ciao.gmane.io" To: dalanicolai , Emacs Devel Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Wed Sep 21 02:41:53 2022 Return-path: Envelope-to: ged-emacs-devel@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 1oanoG-0008my-MF for ged-emacs-devel@m.gmane-mx.org; Wed, 21 Sep 2022 02:41:52 +0200 Original-Received: from localhost ([::1]:57386 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oanoF-0007jO-LD for ged-emacs-devel@m.gmane-mx.org; Tue, 20 Sep 2022 20:41:51 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:36594) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oakoz-0007g2-0F for emacs-devel@gnu.org; Tue, 20 Sep 2022 17:30:30 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:43348) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oakoy-00052B-Nq; Tue, 20 Sep 2022 17:30:24 -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:Subject:To:From: in-reply-to; bh=l1DLey0WLIxwZGgVKQlWXt4if3o9lbBUj63h+GbPhvQ=; b=Z4UgMJoor8t4C khaLzEUe5S03e6wEyYME4wNHobeCs1c465gBiZ15QEHx+SFL2I0NaAn9UWGYnmfxk0n4ragOJgDhT BF7KwqWF9RSkz5gLXxulqEFClM8IVmrWt1X62Gg2bEEV6LK2fg4VDo+1lB0jjz1H74hO/lMTZHlGG K764Q2WdUYJtDhkRQbJFyuWztslcnxd9SbvUlMGNtXZL1//f/VjzwhL7qYQ4gi/2D1VKSd6V9LliT TPSUwA4Vr4MFIvYCHIp3upC7y2MrBPx9pnOqZswfqiG0caQsaSLCPaqAXmOvwSJPdddMbKpfAJzKi qpp5Bnnbml7TgdVKDPfhw==; Original-Received: from cpc103048-sgyl39-2-0-cust502.18-2.cable.virginm.net ([92.233.85.247]:44022 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 1oakoi-0005xg-N0; Tue, 20 Sep 2022 17:30:24 -0400 Original-Received: from localhost (rivendell.localdomain [local]) by rivendell.localdomain (OpenSMTPD) with ESMTPA id 356056dc; Tue, 20 Sep 2022 21:30:05 +0000 (UTC) X-Attribution: jao X-Clacks-Overhead: GNU Terry Pratchett X-URL: X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.io gmane.emacs.devel:295846 Archived-At: 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)