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 18:20:42 +0200 Message-ID: <87y13ae8it.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> <87h69yh7zp.fsf@gnu.org> <87ttdyedga.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="35893"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: mu4e 1.12.6; emacs 31.0.50 Cc: Eli Zaretskii , "Jose A. Ortega Ruiz" , 73530@debbugs.gnu.org To: Visuwesh Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sun Sep 29 18:22:01 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 1suwgL-0009Ai-Hq for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 29 Sep 2024 18:22:01 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1suwfy-0002Jl-6E; Sun, 29 Sep 2024 12:21:38 -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 1suwfr-0002JD-7U for bug-gnu-emacs@gnu.org; Sun, 29 Sep 2024 12:21:32 -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 1suwfq-0006mZ-V3 for bug-gnu-emacs@gnu.org; Sun, 29 Sep 2024 12:21:30 -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=L+CDppBWPJVRxk3A/z1BUBJADC2fImxbq52hzz5V6rA=; b=mYiTulLUJgOHFOe+OCTLYMnZUtqKSb2McyXu9Fx8O+/6ZIHg+ZVAMh+5UPGOIfnX9SEWNEC1qxxTnMwQ2GqhqixzvRwjJV0crBQqkWXJnw5os9ENBhLfmnp0rV1w3QsTqw/7mQzkpV+pvrlgYcgIy4ygo4AjodbSJE0LobQdc7YiX5yJd+irc3XeC+9Vqaq3e3jp8HtwDFEdNQoFI9SNLNAxzMwk10m9yCOparaFUYppUgkGo60IeLGV7EuiyGEyEy1ga3yk14SFpXdXlD4O0U4oNJxLDphU+lGsiT8w1d/S9PTdDS/yNCxxWl+RtizXy7QpgCe2dY0pjaSgQ9pwZw==; Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1suwgM-0007W2-0j for bug-gnu-emacs@gnu.org; Sun, 29 Sep 2024 12:22:02 -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 16:22: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.172762688628801 (code B ref 73530); Sun, 29 Sep 2024 16:22:01 +0000 Original-Received: (at 73530) by debbugs.gnu.org; 29 Sep 2024 16:21:26 +0000 Original-Received: from localhost ([127.0.0.1]:41004 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1suwfm-0007UT-4i for submit@debbugs.gnu.org; Sun, 29 Sep 2024 12:21:26 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:55218) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1suwfj-0007UL-UQ for 73530@debbugs.gnu.org; Sun, 29 Sep 2024 12:21:24 -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 1suwf8-0006lW-Pv; Sun, 29 Sep 2024 12:20:46 -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=L+CDppBWPJVRxk3A/z1BUBJADC2fImxbq52hzz5V6rA=; b=UrF5W0VXuUadSntgG2cC kOo+srGG/zMovwBy2xZqVI4QBxCM42UNQLHMUjLa/ZTnf0podqqbjflL4PzVTZPpneSoiV+NjaxPl zsnK4sthqIY/f/ReVAn5WNpV89xu0b1i1Fr6FXwOqcxAWfXkzqFaT1qTS5M8FEnsJO3I+zyQ9kWEF hVAjuh0YjK9WQVwWa4h95ilC2TjtBV0FD4f3RRyeg0xoxdARKiR1xf/e09Zk9z3+r0cz/GfNgVxBD vWIa1ndrTxKGs6iVuZtj2n22iqFCxOf54zsebKFoyIQKJnXe/OTzezsJT3kqEJuWpzOisLc42LXxL KA0r+2x8xYkvsA==; X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeeftddrvddufedguddtudcutefuodetggdotefrod ftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpggftfghnshhusghstghrihgsvgdp uffrtefokffrpgfnqfghnecuuegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivg hnthhsucdlqddutddtmdenucfjughrpefhvfevufgjfhgffffkgggtsehttdertddtredt necuhfhrohhmpefvrghsshhilhhoucfjohhrnhcuoehtshguhhesghhnuhdrohhrgheqne cuggftrfgrthhtvghrnhepleduvdegfeduvdejkeefteelgeetgfevhefhueffueffgeeh gfeufefgvdffgedtnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmrghilh hfrhhomhepthhhohhrnhdomhgvshhmthhprghuthhhphgvrhhsohhnrghlihhthidqkeei jeefkeejkeegqdeifeehvdelkedqthhsughhpeepghhnuhdrohhrghesfhgrshhtmhgrih hlrdhfmhdpnhgspghrtghpthhtohepgedpmhhouggvpehsmhhtphhouhhtpdhrtghpthht ohepjeefheeftdesuggvsggsuhhgshdrghhnuhdrohhrghdprhgtphhtthhopegvlhhiii esghhnuhdrohhrghdprhgtphhtthhopehjrghosehgnhhurdhorhhgpdhrtghpthhtohep vhhishhufigvshhhmh X-ME-Proxy: Feedback-ID: ib2b94485:Fastmail In-Reply-To: <87ttdyedga.fsf@gmail.com> (Visuwesh's message of "Sun, 29 Sep 2024 20:04:13 +0530") 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:292649 Archived-At: Visuwesh writes: >>> 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? > > Is an idle timer necessary? I don't know yet. Jose said the index building could take a little while. > Imenu calls the index function only when it finds that the index > hasn't been created yet so we can rely on that mechanism instead. > This would be simpler than using an idle timer. WDYT? Then let's do it the simple way and then test how long the index building actually takes on reasonable large PDFs/DjVu files. Thanks, Tassilo