From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Tassilo Horn Newsgroups: gmane.emacs.bugs Subject: bug#73530: [PATCH] Add imenu index function for Djvu files in doc-view Date: Sun, 29 Sep 2024 16:03:54 +0200 Message-ID: <87h69yh7zp.fsf@gnu.org> References: <8734ljg6f5.fsf@gmail.com> <86msjr6ayu.fsf@gnu.org> <874j5ziudn.fsf@gnu.org> <87y13bel5m.fsf@gmail.com> <-wirQcNBR0cpaXo0jL0sp8CxUkFsFX_iWUm_BoGq4ChYLccOyN7QJN53eHf0Q-AncT65owrhqfPWYnnQO3gRHw==@protonmail.internalid> <87setjhcm6.fsf@gnu.org> <87zfnrzjl7.fsf@mail.jao.io> <87h69zh9nw.fsf@gnu.org> <87v7yfzhfz.fsf@mail.jao.io> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="33972"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: mu4e 1.12.6; emacs 31.0.50 Cc: Eli Zaretskii , 73530@debbugs.gnu.org, Visuwesh To: "Jose A. Ortega Ruiz" Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sun Sep 29 16:04:44 2024 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 1suuXT-0008gp-VP for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 29 Sep 2024 16:04:44 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1suuXJ-0001Gu-T1; Sun, 29 Sep 2024 10:04:34 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1suuXH-0001GV-Qr for bug-gnu-emacs@gnu.org; Sun, 29 Sep 2024 10:04:31 -0400 Original-Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1suuXG-0002eT-LU for bug-gnu-emacs@gnu.org; Sun, 29 Sep 2024 10:04:31 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=debbugs.gnu.org; s=debbugs-gnu-org; h=MIME-Version:Date:References:In-Reply-To:From:To:Subject; bh=dEy/bNuLYB5uFf8QeFXGFj3kIIhQzsnJCZiB1QfioJk=; b=S68X2TVHpOH0+/IkfTbnx4fEZ6KyNzX0zmRqsUokBnOQzUr7wwKgBe5E5S/iIQidcK442mtV56D5vYt9PSVdAHBbOFm7HmzL73U9b/Ss99B0Epnn/I1b4POXduCKG92msb8orhReiiR0edg80Gka5wzWuCewy6/qVliRnygfq8R74hgxdMU177PVIHeJCeL9sCGP4sMphvz62P4oGfANRVWYvLp4/WpIrjCwhv3/XLo6sxs5KsZfVjDcVl+7gbKPbBHlQakO5PXiiS6QLqiiOzvd24J90egFt7VB2bXJYC792RpB7rXOue1dKx0P8KksUT+y2Zg3K2jddCO0klyBDQ==; Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1suuXl-0000Bw-UQ for bug-gnu-emacs@gnu.org; Sun, 29 Sep 2024 10:05:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Tassilo Horn Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 29 Sep 2024 14:05:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 73530 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch Original-Received: via spool by 73530-submit@debbugs.gnu.org id=B73530.1727618692724 (code B ref 73530); Sun, 29 Sep 2024 14:05:01 +0000 Original-Received: (at 73530) by debbugs.gnu.org; 29 Sep 2024 14:04:52 +0000 Original-Received: from localhost ([127.0.0.1]:40351 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1suuXc-0000Bc-HO for submit@debbugs.gnu.org; Sun, 29 Sep 2024 10:04:52 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:34306) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1suuXY-0000BF-4z for 73530@debbugs.gnu.org; Sun, 29 Sep 2024 10:04:49 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1suuWw-0002dd-KQ; Sun, 29 Sep 2024 10:04:10 -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=dEy/bNuLYB5uFf8QeFXGFj3kIIhQzsnJCZiB1QfioJk=; b=J7h6L7RE66QwMgGWbGOS HKbieCp0ky+d//uhjh1tiqhWVneJ2xHzKhwg1IfpRuWxfrflUWckMMRV5squRFBP/d0XOsoQZQAjm u85e+KUCndwkq3goyu64JOnKjmbhfsdYU501BhVVYVDdT+4qaxK86QOFGinkQ6pHoITX3qyD+1Rms N8AvjFlZEfHnPikCQc0SFFdC2ZJ7vw9XdOJz2tHM5/13POEJfPUg//Sxny0ZC6suj+KPQr23VSozf gGRocKPxJWbbt9POp/+I+E76LI6mjrVJWgkMri+mOqy3Hg/zUgP7RC7jz+Apt5APW0bSZ0OeB5BPz eb4m/mP2SbF57A==; X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeeftddrvddufedgjeegucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdggtfgfnhhsuhgsshgtrhhisggvpdfu rfetoffkrfgpnffqhgenuceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnh htshculddquddttddmnecujfgurhephffvvefujghffgffkfggtgesthdtredttdertden ucfhrhhomhepvfgrshhsihhlohcujfhorhhnuceothhsughhsehgnhhurdhorhhgqeenuc ggtffrrghtthgvrhhnpeeluddvgeefuddvjeekfeetleegtefgveehhfeuffeuffeghefg ueefgfdvffegtdenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfh hrohhmpehthhhorhhnodhmvghsmhhtphgruhhthhhpvghrshhonhgrlhhithihqdekieej feekjeekgedqieefhedvleekqdhtshguhheppehgnhhurdhorhhgsehfrghsthhmrghilh drfhhmpdhnsggprhgtphhtthhopeegpdhmohguvgepshhmthhpohhuthdprhgtphhtthho peejfeehfedtseguvggssghughhsrdhgnhhurdhorhhgpdhrtghpthhtohepvghlihiise hgnhhurdhorhhgpdhrtghpthhtohepvhhishhufigvshhhmhesghhmrghilhdrtghomhdp rhgtphhtthhopehjrg X-ME-Proxy: Feedback-ID: ib2b94485:Fastmail In-Reply-To: <87v7yfzhfz.fsf@mail.jao.io> (Jose A. Ortega Ruiz's message of "Sat, 28 Sep 2024 20:50:08 +0100") 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-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:292642 Archived-At: "Jose A. Ortega Ruiz" writes: >> I think I'd prefer to delay the creation of the index until imenu is >> invoked the first time and get rid of doc-view-imenu-enabled. If we >> really wanted to and the requirements are met, we could also run the >> index creation in an idle-timer. Probably not by default but maybe by >> adding and documenting a function one could add to doc-view-mode-hook >> for that purpose. > > FWIW, I'd keep doc-view-imenu-enabled, and use it to control the > creation of the idle timer. The latter sounds like the right solution > to avoid delays, and the former a much simpler strategy than asking > users to configure hooks. Also fine with me. Visuwesh, would you like to proceed in that direction? Thanks, Tassilo