From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Stefan Kangas Newsgroups: gmane.emacs.bugs Subject: bug#52569: 29.0.50; Wishlist: There should be a way for packages to handle files without reading them in first Date: Sun, 19 Dec 2021 12:00:06 -0800 Message-ID: References: <87tuf7zksh.fsf@gnus.org> <861r28io75.fsf@mail.linkov.net> Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="3328"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux) Cc: Lars Ingebrigtsen , 52569@debbugs.gnu.org To: Juri Linkov Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sun Dec 19 21:01:37 2021 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 1mz2NE-0000hV-Us for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 19 Dec 2021 21:01:36 +0100 Original-Received: from localhost ([::1]:41346 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mz2ND-00026d-BJ for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 19 Dec 2021 15:01:35 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:60218) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mz2Mi-0001lC-CJ for bug-gnu-emacs@gnu.org; Sun, 19 Dec 2021 15:01:04 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:36673) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mz2Mg-0000Jn-Od for bug-gnu-emacs@gnu.org; Sun, 19 Dec 2021 15:01:04 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1mz2Mg-00053B-OQ for bug-gnu-emacs@gnu.org; Sun, 19 Dec 2021 15:01:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Stefan Kangas Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 19 Dec 2021 20:01:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 52569 X-GNU-PR-Package: emacs Original-Received: via spool by 52569-submit@debbugs.gnu.org id=B52569.163994401519337 (code B ref 52569); Sun, 19 Dec 2021 20:01:02 +0000 Original-Received: (at 52569) by debbugs.gnu.org; 19 Dec 2021 20:00:15 +0000 Original-Received: from localhost ([127.0.0.1]:48217 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mz2Lv-00051j-9X for submit@debbugs.gnu.org; Sun, 19 Dec 2021 15:00:15 -0500 Original-Received: from mail-pl1-f182.google.com ([209.85.214.182]:41516) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mz2Ls-00051J-W8 for 52569@debbugs.gnu.org; Sun, 19 Dec 2021 15:00:13 -0500 Original-Received: by mail-pl1-f182.google.com with SMTP id z3so1679964plg.8 for <52569@debbugs.gnu.org>; Sun, 19 Dec 2021 12:00:12 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:in-reply-to:references:user-agent :mime-version:date:message-id:subject:to:cc; bh=y5dR3ZHYhVlAakguNxzUgZIBo+3tNU8M67UyrCLwUDo=; b=jGQZag2S/z7y0jxqm2UcPrgTeEj43jvvn/71wNoOsr43PUhk/bttIAomCan0+ryl1m nvjXC87tZSqBprFkUzGVM9rVJXMID61cI8lWBUOE1r98T1XTkdzJHKjvJZW7Hq84XNJo yBi1U3Q8BfTkPw3VjyicmjeZlU0Y8O3J2mN7SEKJuCOCxqA0+X8oQj3xKtayKQUWa/ye EG6Udrzof7MGoEmez24xZHQpgHQ57Ed4mxppn6O53ZMTWJ7TxYCHyjp4e8plObunmU5V uzCDCyNClddZXZmHVgg6E9NgKOx6u1PTO4NVX+bAMpPSQgylPoQjy5q1e+Jm3sdQsIfX cCxA== X-Gm-Message-State: AOAM532AMW3zrTfTlTaDWOP1ZUfePqxLbIzGXAYc1LKJa2Ha2KjHwuOJ y8ygeYV5wCRa/zHs9WzWVkOgylkRwjBknJd+NAI= X-Google-Smtp-Source: ABdhPJwtvWBC5kdEZ2stY/TyYpGavFm08z535q7p6ab+fTkgxPW6lITnKdJ3yiN5kOz2NOr9yFf3X0VbJw9XL3M/WYU= X-Received: by 2002:a17:902:8e87:b0:148:a2e8:2c5f with SMTP id bg7-20020a1709028e8700b00148a2e82c5fmr13673807plb.174.1639944006800; Sun, 19 Dec 2021 12:00:06 -0800 (PST) Original-Received: from 753933720722 named unknown by gmailapi.google.com with HTTPREST; Sun, 19 Dec 2021 12:00:06 -0800 In-Reply-To: <861r28io75.fsf@mail.linkov.net> (Juri Linkov's message of "Sun, 19 Dec 2021 19:16: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" Xref: news.gmane.io gmane.emacs.bugs:222747 Archived-At: Juri Linkov writes: >> This would be useful for large files like .sqlite and images. > > I'm not sure about images since some image formats are editable, > like .svg, .xpm, .ps... Only .pdf with in doc-view-mode could have > this optimization of not loading the whole file. Also archive files > could benefit from this optimization. This would improve performance, right? If yes, I think this is sorely needed for opening images in Emacs (though there are other things to improve as well). I think the editable image formats are in the minority, so we could always handle them differently. > Or when it returns t, this could mean that the function displayed > the buffer in some other way, for example, by calling an external command. Yes, that would be very nice. I have wanted something like that to replace the openwith package in my own use.