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#73638: 31.0.50; doc-view: imenu index cannot be made for LaTeX PDFs Date: Mon, 07 Oct 2024 13:03:50 +0200 Message-ID: <87set8yy21.fsf@gnu.org> References: <87ploebyhc.fsf@gmail.com> <87ed4upbmf.fsf@gnu.org> <86plodvlcm.fsf@gnu.org> <87ttdphhir.fsf@gmail.com> <87jzel3aus.fsf@gnu.org> <87plodh68g.fsf@gmail.com> <87plod8ob3.fsf@gnu.org> <8734l9h0nj.fsf@gmail.com> <87y130z988.fsf@gnu.org> <87bjzw5knb.fsf@gmail.com> <87zfng44px.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="25386"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: mu4e 1.12.6; emacs 31.0.50 Cc: Eli Zaretskii , 73638@debbugs.gnu.org To: Visuwesh Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Mon Oct 07 13:05:38 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 1sxlYX-0006Om-DU for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 07 Oct 2024 13:05:37 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sxlYO-0003MI-Mw; Mon, 07 Oct 2024 07:05:28 -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 1sxlXs-0002Q7-Do for bug-gnu-emacs@gnu.org; Mon, 07 Oct 2024 07:04:59 -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 1sxlXq-0006d7-U7 for bug-gnu-emacs@gnu.org; Mon, 07 Oct 2024 07:04:55 -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=t5XWSxnTlL2hSBTq8b+/IxXsKoTAB9gMMnmkP8dVsQY=; b=Ns0KMIjj5aPrfqhHT0LeIrdCdmVt9RXp9RZPQ5vssyV6hvsBfrxJ2AlHEWHC1JpEtI48Vxf5U8JTLwo3PPVTNgaJUAxqTixM7+GcQjaNkmC/rwmjMKbMQQBP/ypN3A/f9Whe+rEIURN4oS4hXA587Zh4OCgB3WLstJG2U2dsn+kxZ02W4Eq2aEkXvduF+r3tFGw+WLwBLKBKnaDz98WgBSvpNRf+xarVvJaPzmg9A+64fEbmmmp/yiefx1MSupHu5k9CrO8VV/ej6xJNPyqz0TNTYHI9M/wCJvUSQi7ujdmY+P+3EQNmiqPrUGdCjLFEprzAjdQYazuyVu3mLO4YsQ==; Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1sxlXx-0004uz-OB for bug-gnu-emacs@gnu.org; Mon, 07 Oct 2024 07: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: Mon, 07 Oct 2024 11:05:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 73638 X-GNU-PR-Package: emacs Original-Received: via spool by 73638-submit@debbugs.gnu.org id=B73638.172829908218865 (code B ref 73638); Mon, 07 Oct 2024 11:05:01 +0000 Original-Received: (at 73638) by debbugs.gnu.org; 7 Oct 2024 11:04:42 +0000 Original-Received: from localhost ([127.0.0.1]:45110 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sxlXe-0004uD-BZ for submit@debbugs.gnu.org; Mon, 07 Oct 2024 07:04:42 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:54376) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sxlXb-0004tx-RA for 73638@debbugs.gnu.org; Mon, 07 Oct 2024 07:04:41 -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 1sxlXP-0006al-BS; Mon, 07 Oct 2024 07:04:27 -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=t5XWSxnTlL2hSBTq8b+/IxXsKoTAB9gMMnmkP8dVsQY=; b=bAbvY/VwHShabplW1mpv WHfLrOsjT69etRAnAW40DMmM6RDM3bgS39fb0ZNpocvkbJTQZWoQJfZ6elk+K6xxr/5HGsSA5mp2T 8QQowboByIVDvz4BenGRxOl+0KpBmcz9ZxPWzUSWNarBAU5XmR5zGDh6QJqWP3a+GsKU244yEGBBP /6v4Ww2VsFYBZZfTTDDF49IW/H8R3UdZna7vbyHL83O1pHRQK7nSraw/XBqrycIIqxD41J0DIypiu VaIUgM9jxj875y0A4diPpjXUgb6GjpcSma+zaW7YCO1lKsDVRtaT1cJqAsPXc1kp21HZUznOpDHP8 YsovbehlbUZbLg==; X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeeftddrvddvledgfeehucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdggtfgfnhhsuhgsshgtrhhisggvpdfu rfetoffkrfgpnffqhgenuceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnh htshculddquddttddmnecujfgurhephffvvefujghffgffkfggtgesthdtredttdertden ucfhrhhomhepvfgrshhsihhlohcujfhorhhnuceothhsughhsehgnhhurdhorhhgqeenuc ggtffrrghtthgvrhhnpeeluddvgeefuddvjeekfeetleegtefgveehhfeuffeuffeghefg ueefgfdvffegtdenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfh hrohhmpehthhhorhhnodhmvghsmhhtphgruhhthhhpvghrshhonhgrlhhithihqdekieej feekjeekgedqieefhedvleekqdhtshguhheppehgnhhurdhorhhgsehfrghsthhmrghilh drfhhmpdhnsggprhgtphhtthhopeefpdhmohguvgepshhmthhpohhuthdprhgtphhtthho peejfeeifeekseguvggssghughhsrdhgnhhurdhorhhgpdhrtghpthhtohepvghlihiise hgnhhurdhorhhgpdhrtghpthhtohepvhhishhufigvshhhmhesghhmrghilhdrtghomh X-ME-Proxy: Feedback-ID: ib2b94485:Fastmail In-Reply-To: <87zfng44px.fsf@gmail.com> (Visuwesh's message of "Mon, 07 Oct 2024 15:25:38 +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:293111 Archived-At: Visuwesh writes: >>> Maybe it would also a good idea to use a :stderr buffer with >>> make-process and put its contents into the imenu-unavailable-error. >>> That way, chances are better we get the reason for failure delivered >>> in bug reports. >> >> I do not think it is worth the trouble since only syntax errors are >> likely to surface up in stderr which would be very unlikely. If the >> PDF file does not have an outline, there would be nothing printed by >> our script so end-of-file error should catch that case. > > Actually, this wasn't quite correct I think. We would have stray > in > the buffer and read would return the symbol >. I corrected that in > the attached. The patch looks good. But during testing, it seems that the index is always off by one page, i.e., the index for some section brings me to page 117 but the section heading is actually on page 118. I have that both with the Peter Atkins et al. book you suggested as well as with own papers which didn't work at all previously due to #nameddest references. Bye, Tassilo