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.bugs Subject: bug#73530: [PATCH] Add imenu index function for Djvu files in doc-view Date: Sat, 28 Sep 2024 20:50:08 +0100 Message-ID: <87v7yfzhfz.fsf@mail.jao.io> 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> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="22932"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Cc: Eli Zaretskii , 73530@debbugs.gnu.org, Visuwesh To: "Tassilo Horn" Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sat Sep 28 21:50:50 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 1sudSs-0005oa-Jk for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 28 Sep 2024 21:50:50 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sudSe-0003XZ-3V; Sat, 28 Sep 2024 15:50:36 -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 1sudSa-0003X9-TI for bug-gnu-emacs@gnu.org; Sat, 28 Sep 2024 15:50:33 -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 1sudSa-0006ST-Iu for bug-gnu-emacs@gnu.org; Sat, 28 Sep 2024 15:50:32 -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=r475GTHdOxpX/ugGnbTSqd2+44TKeUy+ZrQs8DrRXj0=; b=vJLkWAf2+OKkEmbNHlGl7E8w+A5DQeOk9exbJMUOyUM7csZX3pIgr72JATdS408ola5rnBrxZ3Jj1SFZg2eFqbWk52MNAWjMTbZox7RoQsIxXexnyVJw/bep+WSAxtE8MWh7fgEBSH03TNwahPpj/sRdoKZbq1hUXvqa1n79zPf1t1818z/2Etq3Wo6HyPSQL5uXui5ymdyJW5wYNbKMvfk0aMxvf4VQdlRa3ckOWheHnSjrj3WYQ0fT2HQkBkgJGDkVIVzL//5CxkX/knSOl7Q6hwwblXpukKYI58yict2jEfByTAKIzvxIxI5RspDhENk53MdPPGE9D0ov7jZjKQ==; Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1sudT3-0000MG-Oy for bug-gnu-emacs@gnu.org; Sat, 28 Sep 2024 15:51:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: "Jose A. Ortega Ruiz" Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 28 Sep 2024 19:51: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.17275530511345 (code B ref 73530); Sat, 28 Sep 2024 19:51:01 +0000 Original-Received: (at 73530) by debbugs.gnu.org; 28 Sep 2024 19:50:51 +0000 Original-Received: from localhost ([127.0.0.1]:42638 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sudSt-0000Ld-Aj for submit@debbugs.gnu.org; Sat, 28 Sep 2024 15:50:51 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:50880) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sudSr-0000Kz-Gz for 73530@debbugs.gnu.org; Sat, 28 Sep 2024 15:50:50 -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 1sudSH-0006Mn-7X; Sat, 28 Sep 2024 15:50:13 -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=r475GTHdOxpX/ugGnbTSqd2+44TKeUy+ZrQs8DrRXj0=; b=ees+Hc6MVJYrQuVyILcW YC3jE6hQc/ebtP/LecSCgceitVT98dPicXYR7Xc7mGYTW0l+faUYv1d9lpb+9C0rqkA2KvalPC1Gm WvQo9Jy2pkapNiTzWW1PwuPOVZMRXU3jKgF1vjhU2bl4bxqTvBt2i/P9b/XvuzMytQ+j8m9QwhPnY Mz4fiC06KRVS7zMqpmE/PrDmmapCdL2MTJ1mkwrkL0AvLSHaTMjZqASC3aO45aHP0x/SEA7wejLmM ETuGVYxW4fDs5K7T791E2mB7tJmBKq+DDhLVVv74m5fpTCMMvl8kRNHG6ii8Fp9QqpHja9gChVZSL bxTbFxdkLNxzgQ==; In-Reply-To: <87h69zh9nw.fsf@gnu.org> (Tassilo Horn's message of "Sat, 28 Sep 2024 21:15:31 +0200") X-Attribution: jao X-Clacks-Overhead: GNU Terry Pratchett X-URL: 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:292603 Archived-At: On Sat, Sep 28 2024, Tassilo Horn wrote: [...] > 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. I also very much like the idea of being able to tell emacs not to call executables in my path and create other processes behind my back. Personally, I find that ability reason enough to keep the flag, delays or not, and, now that i think of it, that was perhaps the main reason I introduced doc-view-imenu-enabled. Unconditionally spawning external processes doesn't feel right to me. Just my 2c, jao -- I took a speed reading course and read War and Peace in twenty minutes. It involves Russia. -Woody Allen