From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#64516: [PATCH] docview: Only enable imenu when supported Date: Sat, 08 Jul 2023 12:14:40 +0300 Message-ID: <83lefqdatb.fsf@gnu.org> References: Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="21562"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 64516@debbugs.gnu.org To: Morgan Smith , Tassilo Horn Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sat Jul 08 11:15:32 2023 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 1qI42N-0005Rn-Cs for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 08 Jul 2023 11:15:31 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qI421-00006M-GW; Sat, 08 Jul 2023 05:15:09 -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 1qI41u-000064-GT for bug-gnu-emacs@gnu.org; Sat, 08 Jul 2023 05:15:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1qI41u-0008W5-70 for bug-gnu-emacs@gnu.org; Sat, 08 Jul 2023 05:15:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1qI41u-0000MY-2Q for bug-gnu-emacs@gnu.org; Sat, 08 Jul 2023 05:15:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 08 Jul 2023 09:15:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 64516 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch Original-Received: via spool by 64516-submit@debbugs.gnu.org id=B64516.16888076831349 (code B ref 64516); Sat, 08 Jul 2023 09:15:02 +0000 Original-Received: (at 64516) by debbugs.gnu.org; 8 Jul 2023 09:14:43 +0000 Original-Received: from localhost ([127.0.0.1]:44284 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qI41b-0000Lh-B7 for submit@debbugs.gnu.org; Sat, 08 Jul 2023 05:14:43 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:33618) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qI41Z-0000LV-1A for 64516@debbugs.gnu.org; Sat, 08 Jul 2023 05:14:42 -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 1qI41T-0008Qt-Ji; Sat, 08 Jul 2023 05:14:35 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=8nRxro5XveNzHU+lBjxVByMz/9kc/G0DJjfTtEPoxcs=; b=doGLNnip31kO PhoQhKbH/RA8dDOgaaVXCV1hMMwnnurrPpJ3TzfD1x36r+cgztu89cEwrojVBvngm4bl0m0Wb5ecZ YR93U4tfd7P6hekFzjrjBA0wlj2lJf+/UzTdVQXxab2HYL4ruxSY7RUulAKumAQgdKEsRLJgskeWk Z2V17129gBVMP7+XQA+hWwSLpRdfYOW/n4c+QrzQKjrWZfS0Q9bH0cNQSJ73yxKVnc2n+woIghlEH iOvrvEaVo9FNcU3Q/WJnjS16s2WDnV46HxxVBO60IO3YTHoVDneE9NAU8XB/1kaxIo1azeJbDiXW+ BTQe7u+QcC3s8CBFHscy2w==; Original-Received: from [87.69.77.57] (helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qI41S-0003a8-WC; Sat, 08 Jul 2023 05:14:35 -0400 In-Reply-To: (message from Morgan Smith on Fri, 07 Jul 2023 11:24:01 -0400) 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:264763 Archived-At: > From: Morgan Smith > Date: Fri, 07 Jul 2023 11:24:01 -0400 > > More info is in the commit message. > > To re-create the error open up an EPUB file (or possibly any non-PDF > file in doc-view) and press 'M-g i' to run 'imenu'. Doing that I get > the following error: > > Debugger entered--Lisp error: (wrong-type-argument stringp nil) > string-match("\\`PK\\'" nil) > imenu-find-default("PK" (("*Rescan*" . -99) nil)) > imenu--completion-buffer((("*Rescan*" . -99) nil) nil) > imenu-choose-buffer-index() > byte-code("\300 C\207" [imenu-choose-buffer-index] 1) > command-execute(imenu) Thanks. Tassilo, any comments to the problem and the proposed patch?