From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Visuwesh Newsgroups: gmane.emacs.bugs Subject: bug#73530: [PATCH] Add imenu index function for Djvu files in doc-view Date: Sun, 29 Sep 2024 22:08:59 +0530 Message-ID: <87plome7oc.fsf@gmail.com> 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> <87y13ae8it.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="23716"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Cc: Eli Zaretskii , "Jose A. Ortega Ruiz" , 73530@debbugs.gnu.org To: Tassilo Horn Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sun Sep 29 18:40:58 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 1suwyf-0005zT-Pd for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 29 Sep 2024 18:40:57 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1suwyN-0007Ky-Js; Sun, 29 Sep 2024 12:40:40 -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 1suwyF-00079v-Jd for bug-gnu-emacs@gnu.org; Sun, 29 Sep 2024 12:40: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 1suwyF-0000Tz-AP for bug-gnu-emacs@gnu.org; Sun, 29 Sep 2024 12:40: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=OXZ/hGcXUbWjQ/vcB7XiSDmSZfO3Rg9usDbuepmR1A8=; b=N5aRCj+/cQ/QzsVacAgWFeg06v1aw0RsasOD+YGCB3oHcRSlshUp/6vpPXTyeg7oPPejOxnR7Pg4tt7OyV2VERU6DD63p93VhEQUPIdKIeVXMwieNPo+hXMHZrzDboQhb42mXtAAzCiSr7mVHb4/CSzkCCN+p6MPgGBp51cYHrZSDYWcDfWx8rGYxuHJW+N7PrdLWaoA7brR42AtyUSISUqh2ms3hAegL/aNv6jBl3NDTQbcDwMd6fSs/e4d6i8ljwtf//Q0Zmcn0Mu2ftXXjZovrQAtFDz7xDAJiwQD78itRZ3WGoEgZnS/xaEdAIkIJZWr+RX+TYZEMS2WvBXuKg==; Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1suwyk-0000An-JZ for bug-gnu-emacs@gnu.org; Sun, 29 Sep 2024 12:41:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Visuwesh Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 29 Sep 2024 16:41:02 +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.1727628045558 (code B ref 73530); Sun, 29 Sep 2024 16:41:02 +0000 Original-Received: (at 73530) by debbugs.gnu.org; 29 Sep 2024 16:40:45 +0000 Original-Received: from localhost ([127.0.0.1]:41130 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1suwyS-00008r-6k for submit@debbugs.gnu.org; Sun, 29 Sep 2024 12:40:44 -0400 Original-Received: from mail-pl1-f194.google.com ([209.85.214.194]:54492) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1suwyP-0008Rs-AA for 73530@debbugs.gnu.org; Sun, 29 Sep 2024 12:40:42 -0400 Original-Received: by mail-pl1-f194.google.com with SMTP id d9443c01a7336-20b1335e4e4so33271495ad.0 for <73530@debbugs.gnu.org>; Sun, 29 Sep 2024 09:40:09 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1727627943; x=1728232743; darn=debbugs.gnu.org; h=content-transfer-encoding:mime-version:user-agent:message-id:date :references:in-reply-to:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=OXZ/hGcXUbWjQ/vcB7XiSDmSZfO3Rg9usDbuepmR1A8=; b=ATEIipYIrgdHXc/3ZAj0xVugPtwxOXmr498B6YCXANWfSVVjnD86QWh8F+eFjWQFJx gWt01aheEnGsQq9YoJP128aV67Uu1Kx5WezmzPZpFL+1uVJHdXF9Jw6E6O+bGCTWhnIH 3viL3YPYCzi36vAxtW4sBGXU749L9SnBEmYp3qrhHeZzVRZI8G/ymajYSopjR7yNZr0A 1jA5T8L1VCJNTwJjIbYRzOxd091ARHHuUN1rmFbPRoBBHy0rVHIopPGYg6/id8FBUw5H KEsIZOqOrzaE13WN9IsdFLc6MGB9NJanffpBJtSj+BQ6L1pYyS7EIXl6HVB4GbkSSHH4 I2Kw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1727627943; x=1728232743; h=content-transfer-encoding:mime-version:user-agent:message-id:date :references:in-reply-to:subject:cc:to:from:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to; bh=OXZ/hGcXUbWjQ/vcB7XiSDmSZfO3Rg9usDbuepmR1A8=; b=cFqgRTLU2eFrhZsB3uQfqImZewX5oa3CkGuEPTSr0quPYkuNKJuekCnuNuAcyN3LBg H1ViwTZhkOHiK6FvQkQuTgZ5VaQjD44Haav1hjaezQpJTXZBHkKb08r4lC4MMX7Ulz6s vBc+75URKGb/SfExztAd6HZWnG4p2FsGs4YrboKBQqb15h5OdaMn3OyjEnV+rpVuWfJa /829BB8OeG/7u1Ma7pSey5g+TpabrvpD51swiogQN1jzh7cNs9TbF+QbiFZVC4M5SkiV c1UW+2+y9KX+ibstvuyjdCiEEkcyPt2S422rp2LYrbVcReNFVBJUJWgw0ijLrV+x3MUx oF1w== X-Forwarded-Encrypted: i=1; AJvYcCU3qxAViojYv+uYww+g2NHXM9RN7LHYT00JWrVsgRYK7ECY+MUnw8/7I6St0epMKax30oFnow==@debbugs.gnu.org X-Gm-Message-State: AOJu0YxKDRVChg6vhP1umS0dajuFUIRiVA6XKz/Hf/THu8bb2gkWldvp F2FhZScoVJprB+gtUIFjTZTP2rXzWLzvpk6FTly/a++L6NUIj7bo X-Google-Smtp-Source: AGHT+IESvId34WO/iXqMxzA+tsw8DW8VjKa5sUImdAQKcoTKFYh2dglJgYaCiYymngYY7ZcikkS7fg== X-Received: by 2002:a17:902:d4c6:b0:205:8456:df0c with SMTP id d9443c01a7336-20b37b6924dmr149360605ad.26.1727627942562; Sun, 29 Sep 2024 09:39:02 -0700 (PDT) Original-Received: from localhost ([1.7.159.70]) by smtp.gmail.com with ESMTPSA id d9443c01a7336-20b37e101a1sm41060245ad.126.2024.09.29.09.39.01 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 29 Sep 2024 09:39:02 -0700 (PDT) In-Reply-To: <87y13ae8it.fsf@gnu.org> (Tassilo Horn's message of "Sun, 29 Sep 2024 18:20:42 +0200") 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:292651 Archived-At: [=E0=AE=9E=E0=AE=BE=E0=AE=AF=E0=AE=BF=E0=AE=B1=E0=AF=81 =E0=AE=9A=E0=AF=86= =E0=AE=AA=E0=AF=8D=E0=AE=9F=E0=AE=AE=E0=AF=8D=E0=AE=AA=E0=AE=B0=E0=AF=8D 29= , 2024] Tassilo Horn wrote: >> 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. OK, I will send an updated patch in a few days.