From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Juri Linkov Newsgroups: gmane.emacs.bugs Subject: bug#38647: 26.3; image-next-file does not consider archived images Date: Wed, 05 Aug 2020 02:47:44 +0300 Organization: LINKOV.NET Message-ID: <87lfiuq6w7.fsf@mail.linkov.net> References: <86pngno22c.fsf@gmail.com> <83d0cm53g0.fsf@gnu.org> <87d049js2w.fsf@gnus.org> <87d047cjzv.fsf@mail.linkov.net> <87zh7au97q.fsf@gnus.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="31348"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (x86_64-pc-linux-gnu) Cc: 38647@debbugs.gnu.org, ynyaaa@gmail.com To: Lars Ingebrigtsen Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Wed Aug 05 02:26:10 2020 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 1k37Fy-00083r-4F for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 05 Aug 2020 02:26:10 +0200 Original-Received: from localhost ([::1]:51004 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1k37Fx-0001IZ-54 for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 04 Aug 2020 20:26:09 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:44932) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1k37Fq-0001IJ-Dq for bug-gnu-emacs@gnu.org; Tue, 04 Aug 2020 20:26:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:37825) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1k37Fq-00062o-4t for bug-gnu-emacs@gnu.org; Tue, 04 Aug 2020 20:26:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1k37Fq-0002JJ-20 for bug-gnu-emacs@gnu.org; Tue, 04 Aug 2020 20:26:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Juri Linkov Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 05 Aug 2020 00:26:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 38647 X-GNU-PR-Package: emacs Original-Received: via spool by 38647-submit@debbugs.gnu.org id=B38647.15965871018779 (code B ref 38647); Wed, 05 Aug 2020 00:26:02 +0000 Original-Received: (at 38647) by debbugs.gnu.org; 5 Aug 2020 00:25:01 +0000 Original-Received: from localhost ([127.0.0.1]:49367 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1k37Er-0002HU-Dr for submit@debbugs.gnu.org; Tue, 04 Aug 2020 20:25:01 -0400 Original-Received: from relay7-d.mail.gandi.net ([217.70.183.200]:40603) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1k37Eq-0002Gw-3b for 38647@debbugs.gnu.org; Tue, 04 Aug 2020 20:25:00 -0400 X-Originating-IP: 91.129.102.47 Original-Received: from mail.gandi.net (m91-129-102-47.cust.tele2.ee [91.129.102.47]) (Authenticated sender: juri@linkov.net) by relay7-d.mail.gandi.net (Postfix) with ESMTPSA id 266A820002; Wed, 5 Aug 2020 00:24:51 +0000 (UTC) In-Reply-To: <87zh7au97q.fsf@gnus.org> (Lars Ingebrigtsen's message of "Tue, 04 Aug 2020 10:05:45 +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" Xref: news.gmane.io gmane.emacs.bugs:184057 Archived-At: >> All this indicates that instead of using 'directory-files', >> 'image-next-file' should rely on 'archive-next-line' if the file >> is opened from an archive, and on 'dired-next-line' otherwise. > > `archive-next-line' isn't used in tar mode buffers -- that's the > problem: There's no unified interface across the different archive > modes. (Although perhaps there's just two? arc-mode and tar-mode? Yep, there's just two - these twins are going hand in hand, for example, in image-mode.el in image-toggle-display-image: (not (and (boundp 'archive-superior-buffer) archive-superior-buffer)) (not (and (boundp 'tar-superior-buffer) tar-superior-buffer)) >> Also this means that if there is no corresponding dired buffer >> already visited, then 'image-next-file' should create an internal >> dired buffer just for the sake of file image navigation. > > Hm. I think that makes sense... but it would perhaps be a bit > surprising? Maybe when not requested, such Dired buffer should be killed afterwards, or its name should start with a space.