GNU logs - #52569, boring messages


Message sent to bug-gnu-emacs@HIDDEN:


X-Loop: help-debbugs@HIDDEN
Subject: bug#52569: 29.0.50; Wishlist: There should be a way for packages to handle files without reading them in first
Resent-From: Lars Ingebrigtsen <larsi@HIDDEN>
Original-Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
Resent-CC: bug-gnu-emacs@HIDDEN
Resent-Date: Fri, 17 Dec 2021 08:41:01 +0000
Resent-Message-ID: <handler.52569.B.16397304436978 <at> debbugs.gnu.org>
Resent-Sender: help-debbugs@HIDDEN
X-GNU-PR-Message: report 52569
X-GNU-PR-Package: emacs
X-GNU-PR-Keywords: 
To: 52569 <at> debbugs.gnu.org
X-Debbugs-Original-To: bug-gnu-emacs@HIDDEN
Received: via spool by submit <at> debbugs.gnu.org id=B.16397304436978
          (code B ref -1); Fri, 17 Dec 2021 08:41:01 +0000
Received: (at submit) by debbugs.gnu.org; 17 Dec 2021 08:40:43 +0000
Received: from localhost ([127.0.0.1]:37911 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1my8nD-0001oT-06
	for submit <at> debbugs.gnu.org; Fri, 17 Dec 2021 03:40:43 -0500
Received: from lists.gnu.org ([209.51.188.17]:53802)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <larsi@HIDDEN>) id 1my8nA-0001oL-OZ
 for submit <at> debbugs.gnu.org; Fri, 17 Dec 2021 03:40:41 -0500
Received: from eggs.gnu.org ([209.51.188.92]:59864)
 by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <larsi@HIDDEN>) id 1my8nA-0005dm-Dt
 for bug-gnu-emacs@HIDDEN; Fri, 17 Dec 2021 03:40:40 -0500
Received: from [2a01:4f9:2b:f0f::2] (port=32946 helo=quimby.gnus.org)
 by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <larsi@HIDDEN>) id 1my8n6-0005gD-Ec
 for bug-gnu-emacs@HIDDEN; Fri, 17 Dec 2021 03:40:40 -0500
DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org;
 s=20200322; h=Content-Type:MIME-Version:Message-ID:Date:Subject:To:From:
 Sender:Reply-To:Cc:Content-Transfer-Encoding:Content-ID:Content-Description:
 Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:
 In-Reply-To:References:List-Id:List-Help:List-Unsubscribe:List-Subscribe:
 List-Post:List-Owner:List-Archive;
 bh=HtrXZIxsJTYtxtNVzP5L/XX+1ALYRfRnIVyxIrsrW4Q=; b=nG+rIndYayCqSlP5oRRVPKh8HS
 j81ZQvDVYhYQy7alGs+HXf+15w6gfwlWcVBNG2OMeyzpudv92masNEvaQnLt2t06bTcI466cw9jzb
 1A4zUqJxAaoOA4005xQ1FwtLa6ofUXO7F0EsPP4VwXwy4V/9SVs1Xo7XptvNvjy7bdj4=;
Received: from [84.212.220.105] (helo=xo)
 by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.92) (envelope-from <larsi@HIDDEN>) id 1my8n1-00064m-KS
 for bug-gnu-emacs@HIDDEN; Fri, 17 Dec 2021 09:40:34 +0100
From: Lars Ingebrigtsen <larsi@HIDDEN>
X-Now-Playing: King Crimson's _The Complete 1969 Recordings (8): In the
 Court Of The Crimson King_: "The Court Of The Crimson King"
Date: Fri, 17 Dec 2021 09:40:30 +0100
Message-ID: <87tuf7zksh.fsf@HIDDEN>
MIME-Version: 1.0
Content-Type: text/plain
X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org",
 has NOT identified this incoming email as spam.  The original
 message has been attached to this so you can view it or label
 similar future email.  If you have any questions, see
 @@CONTACT_ADDRESS@@ for details.
 Content preview: This would be useful for large files like .sqlite and images.
 The mechanism proposed on emacs-devel is to do something similar to
 find-directory-functions
 in find-file-noselect: (defun find-file-noselect (filename &optional nowarn
 rawfile wildcards) [...] (if (file-directory-p filename) (or (and
 find-file-run-dired
 (run-hook-with-args-until-success 'find-directory-functions ( [...] 
 Content analysis details:   (-2.9 points, 5.0 required)
 pts rule name              description
 ---- ---------------------- --------------------------------------------------
 -1.0 ALL_TRUSTED            Passed through trusted hosts only via SMTP
 -1.9 BAYES_00               BODY: Bayes spam probability is 0 to 1%
 [score: 0.0000]
X-Host-Lookup-Failed: Reverse DNS lookup failed for 2a01:4f9:2b:f0f::2 (failed)
Received-SPF: pass client-ip=2a01:4f9:2b:f0f::2; envelope-from=larsi@HIDDEN;
 helo=quimby.gnus.org
X-Spam_score_int: -35
X-Spam_score: -3.6
X-Spam_bar: ---
X-Spam_report: (-3.6 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1,
 DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1,
 RCVD_IN_DNSWL_MED=-2.3, RDNS_NONE=0.793, SPF_HELO_NONE=0.001,
 SPF_PASS=-0.001 autolearn=ham autolearn_force=no
X-Spam_action: no action
X-Spam-Score: -1.3 (-)
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -2.3 (--)


This would be useful for large files like .sqlite and images.

The mechanism proposed on emacs-devel is to do something similar to
find-directory-functions in find-file-noselect:

(defun find-file-noselect (filename &optional nowarn rawfile wildcards)
[...]
  (if (file-directory-p filename)
      (or (and find-file-run-dired
	       (run-hook-with-args-until-success
		'find-directory-functions
		(if find-file-visit-truename
		    (abbreviate-file-name (file-truename filename))
		  filename)))

But for files.

So we could have a find-file-function-alist that maps from file names
(using the same syntax as auto-mode-alist) to functions that handle the
files.

This function would be called with the file name and would be
responsible for returning a buffer that "displays" the file in some
sense.  For .sqlite, it would basically call `sqlite-mode-open-file',
and image-mode should have a similar function.

There's some details that aren't clear.  Should this new buffer be
visiting the file?  That sounds dangerous, because saving the buffer
contents to the file would destroy the file.  But that could be handled
by...  write-file-functions?

Should there be another general mode these things should inherit from,
like special-mode, but taking care of things like write-file-functions
(i.e., disallow saving if the mode hasn't implemented a function for
that)?  If so, what should it be called?  `really-special-mode' is
probably too special.  Uhm...  Something that expresses "the displayed
contents of this mode doesn't match up the saved contents much"...
`unloaded-file-mode'?  Hm...  any ideas?


In GNU Emacs 29.0.50 (build 69, x86_64-pc-linux-gnu, GTK+ Version 3.24.30, cairo version 1.16.0)
 of 2021-12-16 built on xo
Repository revision: e7a6d6a546e7e56e5a721aac86a19473e4303111
Repository branch: master
Windowing system distributor 'The X.Org Foundation', version 11.0.12013000
System Description: Debian GNU/Linux bookworm/sid


-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no





Message sent:


Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable
MIME-Version: 1.0
X-Mailer: MIME-tools 5.505 (Entity 5.505)
Content-Type: text/plain; charset=utf-8
X-Loop: help-debbugs@HIDDEN
From: help-debbugs@HIDDEN (GNU bug Tracking System)
To: Lars Ingebrigtsen <larsi@HIDDEN>
Subject: bug#52569: Acknowledgement (29.0.50; Wishlist: There should be a
 way for packages to handle files without reading them in first)
Message-ID: <handler.52569.B.16397304436978.ack <at> debbugs.gnu.org>
References: <87tuf7zksh.fsf@HIDDEN>
X-Gnu-PR-Message: ack 52569
X-Gnu-PR-Package: emacs
Reply-To: 52569 <at> debbugs.gnu.org
Date: Fri, 17 Dec 2021 08:41:01 +0000

Thank you for filing a new bug report with debbugs.gnu.org.

This is an automatically generated reply to let you know your message
has been received.

Your message is being forwarded to the package maintainers and other
interested parties for their attention; they will reply in due course.

Your message has been sent to the package maintainer(s):
 bug-gnu-emacs@HIDDEN

If you wish to submit further information on this problem, please
send it to 52569 <at> debbugs.gnu.org.

Please do not send mail to help-debbugs@HIDDEN unless you wish
to report a problem with the Bug-tracking system.

--=20
52569: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D52569
GNU Bug Tracking System
Contact help-debbugs@HIDDEN with problems


Message sent to bug-gnu-emacs@HIDDEN:


X-Loop: help-debbugs@HIDDEN
Subject: bug#52569: 29.0.50; Wishlist: There should be a way for packages to handle files without reading them in first
Resent-From: Adam Edge <baronedge@HIDDEN>
Original-Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
Resent-CC: bug-gnu-emacs@HIDDEN
Resent-Date: Fri, 17 Dec 2021 09:05:02 +0000
Resent-Message-ID: <handler.52569.B.16397318709773 <at> debbugs.gnu.org>
Resent-Sender: help-debbugs@HIDDEN
X-GNU-PR-Message: followup 52569
X-GNU-PR-Package: emacs
X-GNU-PR-Keywords: 
To: 52569 <at> debbugs.gnu.org
X-Debbugs-Original-To: bug-gnu-emacs@HIDDEN
Received: via spool by submit <at> debbugs.gnu.org id=B.16397318709773
          (code B ref -1); Fri, 17 Dec 2021 09:05:02 +0000
Received: (at submit) by debbugs.gnu.org; 17 Dec 2021 09:04:30 +0000
Received: from localhost ([127.0.0.1]:37947 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1my9AE-0002XZ-37
	for submit <at> debbugs.gnu.org; Fri, 17 Dec 2021 04:04:30 -0500
Received: from lists.gnu.org ([209.51.188.17]:46692)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <baronedge@HIDDEN>) id 1my9AC-0002XR-5y
 for submit <at> debbugs.gnu.org; Fri, 17 Dec 2021 04:04:28 -0500
Received: from eggs.gnu.org ([209.51.188.92]:48260)
 by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <baronedge@HIDDEN>)
 id 1my9AB-0004cL-VV
 for bug-gnu-emacs@HIDDEN; Fri, 17 Dec 2021 04:04:28 -0500
Received: from mail.cock.li ([37.120.193.124]:36932)
 by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <baronedge@HIDDEN>)
 id 1my9A8-0002YU-Fn
 for bug-gnu-emacs@HIDDEN; Fri, 17 Dec 2021 04:04:27 -0500
Message-ID: <8ccabcc0-44e7-d8ae-eb80-bc33f7b49bc7@HIDDEN>
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=airmail.cc; s=mail;
 t=1639731858; bh=7WRFtOJiW20myVjDLLgm5zcXjV181ogGcNq8I0gk+MA=;
 h=Date:Subject:To:References:From:In-Reply-To:From;
 b=ydeoiBY6hGCjtilj48pzO8lDYiI72Fa5sPkSxmh/0dOhqD+kMm0jqMluZ/eNMBUyJ
 YkpgkGiFXw5PB4+dD/cxsPDRbTsYWR+qGuAO7mXhvI7qNaRNu+r1BkX+VcmpilWU+H
 7tn5e3tT+4xiHq8iZiJhvZ3gpwFlxZdxj12eTArzQSuTPLDx/pPkIEZmg4jbbib/mO
 KlADO5KAfltFB8MgsGVOQERPopX1oejoUFI+iJwQB8dEDs9Jed6XLnucuwXPYaEqzp
 Q8rJB/ixNOrpnGtsbdKHDTpWUrJHpmW3D2MTGbBcZh59Fp5igi0GmRQsHK5fjG/VMd
 T18OcxNj4pZ7A==
Date: Fri, 17 Dec 2021 12:04:12 +0300
MIME-Version: 1.0
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101
 Thunderbird/91.3.1
Content-Language: en-US
References: <87tuf7zksh.fsf@HIDDEN>
From: Adam Edge <baronedge@HIDDEN>
In-Reply-To: <87tuf7zksh.fsf@HIDDEN>
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Received-SPF: pass client-ip=37.120.193.124; envelope-from=baronedge@HIDDEN;
 helo=mail.cock.li
X-Spam_score_int: -37
X-Spam_score: -3.8
X-Spam_bar: ---
X-Spam_report: (-3.8 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1,
 DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, NICE_REPLY_A=-1.716,
 RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_PASS=-0.001,
 SPF_PASS=-0.001 autolearn=ham autolearn_force=no
X-Spam_action: no action
X-Spam-Score: -1.5 (-)
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -2.5 (--)

On 12/17/21 11:40, Lars Ingebrigtsen wrote:
> Should there be another general mode these things should inherit from,
> like special-mode, but taking care of things like write-file-functions
> (i.e., disallow saving if the mode hasn't implemented a function for
> that)?  If so, what should it be called?  `really-special-mode' is
> probably too special.  Uhm...  Something that expresses "the displayed
> contents of this mode doesn't match up the saved contents much"...
> `unloaded-file-mode'?  Hm...  any ideas?
Just my $.02, but would something related to "file projection" work? 
Since things like `sqlite-mode-open-file' "project" the file into a 
format that's more usable in Emacs. So my suggestion would be 
`projected-file-mode'.




Message sent to bug-gnu-emacs@HIDDEN:


X-Loop: help-debbugs@HIDDEN
Subject: bug#52569: 29.0.50; Wishlist: There should be a way for packages to handle files without reading them in first
Resent-From: Juri Linkov <juri@HIDDEN>
Original-Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
Resent-CC: bug-gnu-emacs@HIDDEN
Resent-Date: Sun, 19 Dec 2021 17:21:03 +0000
Resent-Message-ID: <handler.52569.B52569.163993442527550 <at> debbugs.gnu.org>
Resent-Sender: help-debbugs@HIDDEN
X-GNU-PR-Message: followup 52569
X-GNU-PR-Package: emacs
X-GNU-PR-Keywords: 
To: Lars Ingebrigtsen <larsi@HIDDEN>
Cc: 52569 <at> debbugs.gnu.org
Received: via spool by 52569-submit <at> debbugs.gnu.org id=B52569.163993442527550
          (code B ref 52569); Sun, 19 Dec 2021 17:21:03 +0000
Received: (at 52569) by debbugs.gnu.org; 19 Dec 2021 17:20:25 +0000
Received: from localhost ([127.0.0.1]:47952 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1myzrE-0007AF-LS
	for submit <at> debbugs.gnu.org; Sun, 19 Dec 2021 12:20:24 -0500
Received: from relay8-d.mail.gandi.net ([217.70.183.201]:53657)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <juri@HIDDEN>) id 1myzrB-00079h-CN
 for 52569 <at> debbugs.gnu.org; Sun, 19 Dec 2021 12:20:21 -0500
Received: (Authenticated sender: juri@HIDDEN)
 by relay8-d.mail.gandi.net (Postfix) with ESMTPSA id 3416A1BF205;
 Sun, 19 Dec 2021 17:20:13 +0000 (UTC)
From: Juri Linkov <juri@HIDDEN>
Organization: LINKOV.NET
References: <87tuf7zksh.fsf@HIDDEN>
Date: Sun, 19 Dec 2021 19:16:42 +0200
In-Reply-To: <87tuf7zksh.fsf@HIDDEN> (Lars Ingebrigtsen's message of "Fri,
 17 Dec 2021 09:40:30 +0100")
Message-ID: <861r28io75.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (x86_64-pc-linux-gnu)
MIME-Version: 1.0
Content-Type: text/plain
X-Spam-Score: -0.7 (/)
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.7 (-)

> 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 function would be called with the file name and would be
> responsible for returning a buffer that "displays" the file in some
> sense.

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.

Then find-file-alist could be used to implement a smarter
dired-guess-shell-alist like for https://debbugs.gnu.org/18132#92
So not only files visited by dired will be redirected
to an external command, but also files visited by C-x C-f.

> There's some details that aren't clear.  Should this new buffer be
> visiting the file?  That sounds dangerous, because saving the buffer
> contents to the file would destroy the file.  But that could be handled
> by...  write-file-functions?

Also functions that ask about saving a modified file buffer should
probably skip such buffers.

> Should there be another general mode these things should inherit from,
> like special-mode, but taking care of things like write-file-functions
> (i.e., disallow saving if the mode hasn't implemented a function for
> that)?  If so, what should it be called?  `really-special-mode' is
> probably too special.  Uhm...  Something that expresses "the displayed
> contents of this mode doesn't match up the saved contents much"...
> `unloaded-file-mode'?  Hm...  any ideas?

non-persistent-file-mode, or transient-file-mode, or ephemeral-mode...




Message sent to bug-gnu-emacs@HIDDEN:


X-Loop: help-debbugs@HIDDEN
Subject: bug#52569: 29.0.50; Wishlist: There should be a way for packages to handle files without reading them in first
Resent-From: Stefan Kangas <stefan@HIDDEN>
Original-Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
Resent-CC: bug-gnu-emacs@HIDDEN
Resent-Date: Sun, 19 Dec 2021 20:01:02 +0000
Resent-Message-ID: <handler.52569.B52569.163994401519337 <at> debbugs.gnu.org>
Resent-Sender: help-debbugs@HIDDEN
X-GNU-PR-Message: followup 52569
X-GNU-PR-Package: emacs
X-GNU-PR-Keywords: 
To: Juri Linkov <juri@HIDDEN>
Cc: Lars Ingebrigtsen <larsi@HIDDEN>, 52569 <at> debbugs.gnu.org
Received: via spool by 52569-submit <at> debbugs.gnu.org id=B52569.163994401519337
          (code B ref 52569); Sun, 19 Dec 2021 20:01:02 +0000
Received: (at 52569) by debbugs.gnu.org; 19 Dec 2021 20:00:15 +0000
Received: from localhost ([127.0.0.1]:48217 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1mz2Lv-00051j-9X
	for submit <at> debbugs.gnu.org; Sun, 19 Dec 2021 15:00:15 -0500
Received: from mail-pl1-f182.google.com ([209.85.214.182]:41516)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <stefankangas@HIDDEN>) id 1mz2Ls-00051J-W8
 for 52569 <at> debbugs.gnu.org; Sun, 19 Dec 2021 15:00:13 -0500
Received: by mail-pl1-f182.google.com with SMTP id z3so1679964plg.8
 for <52569 <at> 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)
Received: from 753933720722 named unknown by gmailapi.google.com with
 HTTPREST; Sun, 19 Dec 2021 12:00:06 -0800
From: Stefan Kangas <stefan@HIDDEN>
In-Reply-To: <861r28io75.fsf@HIDDEN> (Juri Linkov's message of "Sun, 
 19 Dec 2021 19:16:42 +0200")
References: <87tuf7zksh.fsf@HIDDEN> <861r28io75.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux)
MIME-Version: 1.0
Date: Sun, 19 Dec 2021 12:00:06 -0800
Message-ID: <CADwFkmmjZb=9_VicsK53Xeq9t0VtmRoOBmhtPQdv+xdgSWWkEg@HIDDEN>
Content-Type: text/plain; charset="UTF-8"
X-Spam-Score: 0.5 (/)
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -0.5 (/)

Juri Linkov <juri@HIDDEN> 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.




Message sent to bug-gnu-emacs@HIDDEN:


X-Loop: help-debbugs@HIDDEN
Subject: bug#52569: 29.0.50; Wishlist: There should be a way for packages to handle files without reading them in first
Resent-From: Lars Ingebrigtsen <larsi@HIDDEN>
Original-Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
Resent-CC: bug-gnu-emacs@HIDDEN
Resent-Date: Tue, 21 Dec 2021 04:10:03 +0000
Resent-Message-ID: <handler.52569.B52569.16400597611857 <at> debbugs.gnu.org>
Resent-Sender: help-debbugs@HIDDEN
X-GNU-PR-Message: followup 52569
X-GNU-PR-Package: emacs
X-GNU-PR-Keywords: 
To: Stefan Kangas <stefan@HIDDEN>
Cc: 52569 <at> debbugs.gnu.org, Juri Linkov <juri@HIDDEN>
Received: via spool by 52569-submit <at> debbugs.gnu.org id=B52569.16400597611857
          (code B ref 52569); Tue, 21 Dec 2021 04:10:03 +0000
Received: (at 52569) by debbugs.gnu.org; 21 Dec 2021 04:09:21 +0000
Received: from localhost ([127.0.0.1]:51988 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1mzWSn-0000Ts-Fv
	for submit <at> debbugs.gnu.org; Mon, 20 Dec 2021 23:09:21 -0500
Received: from quimby.gnus.org ([95.216.78.240]:60120)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <larsi@HIDDEN>) id 1mzWSl-0000Tc-Oh
 for 52569 <at> debbugs.gnu.org; Mon, 20 Dec 2021 23:09:20 -0500
DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org;
 s=20200322; h=Content-Type:MIME-Version:Message-ID:In-Reply-To:Date:
 References:Subject:Cc:To:From:Resent-Message-ID:Resent-Date:Resent-From:
 Resent-To:Sender:Reply-To:Content-Transfer-Encoding:Content-ID:
 Content-Description:Resent-Sender:Resent-Cc:List-Id:List-Help:
 List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive;
 bh=p95dsayM7HfmoTh4/eOINznCCB0OgAeWErWF5G8sxMM=; b=j1V/XHCHisJEoA6UJy1DP8xj2/
 ck3kDHNFRiQz2v+ZKCgbjDLWnGBroUO08eynQtfgr2lDJAlK7F/M+np1RC5kcDdOytcJptzp4kQM6
 RFWZDqqTmm/1zEod2RgNLTr6R+c25HjvUfdNVg9HnE8mXBwZJMJbSi1lNbjjgBPge0IE=;
Received: from [84.212.220.105] (helo=xo)
 by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.92) (envelope-from <larsi@HIDDEN>) id 1mzWSd-0002oQ-Ru
 for 52569 <at> debbugs.gnu.org; Tue, 21 Dec 2021 05:09:14 +0100
Resent-X-Now-Playing: Heidi Berry's _Love_: "Gloria"
Resent-To: 52569 <at> debbugs.gnu.org
Resent-From: Lars Ingebrigtsen <larsi@HIDDEN>
Resent-Date: Tue, 21 Dec 2021 05:09:09 +0100
Resent-Message-ID: <87ilvilhui.fsf@HIDDEN>
X-From-Line: nobody Mon Dec 20 10:55:08 2021
From: Lars Ingebrigtsen <larsi@HIDDEN>
References: <87tuf7zksh.fsf@HIDDEN> <861r28io75.fsf@HIDDEN>
 <CADwFkmmjZb=9_VicsK53Xeq9t0VtmRoOBmhtPQdv+xdgSWWkEg@HIDDEN>
Face: iVBORw0KGgoAAAANSUhEUgAAADAAAAAwAgMAAAAqbBEUAAAABGdBTUEAALGPC/xhBQAAACBj
 SFJNAAB6JgAAgIQAAPoAAACA6AAAdTAAAOpgAAA6mAAAF3CculE8AAAACVBMVEWOoVlMZDn///9k
 6/PIAAAAAWJLR0QCZgt8ZAAAAAd0SU1FB+UMFAkxCrmP2HsAAAFESURBVCjPRVFBDuQwCDNSuKdS
 +A+RmjuR4P9fWdMd7ebSOAZsXIBnYMx4+yaJwFCYF1xLHJgVFkBV34HFqvhAQJdpg5KA8N1gBLvu
 hChbiE7VADzZTxJKPpsi5lTJU2BJ1fW20c+ZJBKmG/1uFbRDvUFRspcjEl7q99btVpSr63cl6DW0
 fiBi/gf3vp/L5iGie44pY9LBddHRJw73L31YMrjsYAZ7TpGXlYKzG4BgDepsVfEnpy+cDorlPInn
 S7LjqPjikr+aDHH/qrT4fhw/N9zH//UUZt7AuxSHJcnUOhjoFrIJPQd4juEpH0+q49HLELGYVFXr
 VI6VztC6hy0fEebajE2qs06Qiz1ZVLj0PXzFsqAx/tNB49PcMKzLqMjkocYPg5DqZV6UTs4+QiOL
 FsM5zSlEvz73sAeRjEq5txqTnbA/cGxYvOKgEBwAAAAldEVYdGRhdGU6Y3JlYXRlADIwMjEtMTIt
 MjBUMDk6NDk6MTArMDA6MDDZqP18AAAAJXRFWHRkYXRlOm1vZGlmeQAyMDIxLTEyLTIwVDA5OjQ5
 OjEwKzAwOjAwqPVFwAAAAABJRU5ErkJggg==
X-Now-Playing: Donovan's _Strange Folk_: "The Song of Wandering Aengus"
Date: Mon, 20 Dec 2021 10:55:05 +0100
In-Reply-To: <CADwFkmmjZb=9_VicsK53Xeq9t0VtmRoOBmhtPQdv+xdgSWWkEg@HIDDEN>
 (Stefan Kangas's message of "Sun, 19 Dec 2021 12:00:06 -0800")
Message-ID: <87ilvjppmu.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux)
MIME-Version: 1.0
Content-Type: text/plain
Lines: 17
X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org",
 has NOT identified this incoming email as spam.  The original
 message has been attached to this so you can view it or label
 similar future email.  If you have any questions, see
 @@CONTACT_ADDRESS@@ for details.
 Content preview:  Stefan Kangas <stefan@HIDDEN> writes: >> 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 archi [...] 
 Content analysis details:   (-2.9 points, 5.0 required)
 pts rule name              description
 ---- ---------------------- --------------------------------------------------
 -1.0 ALL_TRUSTED            Passed through trusted hosts only via SMTP
 -1.9 BAYES_00               BODY: Bayes spam probability is 0 to 1%
 [score: 0.0000]
X-Spam-Score: -2.3 (--)
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -3.3 (---)

Stefan Kangas <stefan@HIDDEN> writes:

>> 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).

Yes, I think it should improve image performance substantially, but I
haven't done any measurements.

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no




Message sent to bug-gnu-emacs@HIDDEN:


X-Loop: help-debbugs@HIDDEN
Subject: bug#52569: 29.0.50; Wishlist: There should be a way for packages to handle files without reading them in first
Resent-From: Lars Ingebrigtsen <larsi@HIDDEN>
Original-Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
Resent-CC: bug-gnu-emacs@HIDDEN
Resent-Date: Tue, 21 Dec 2021 04:10:03 +0000
Resent-Message-ID: <handler.52569.B52569.16400597821894 <at> debbugs.gnu.org>
Resent-Sender: help-debbugs@HIDDEN
X-GNU-PR-Message: followup 52569
X-GNU-PR-Package: emacs
X-GNU-PR-Keywords: 
To: Juri Linkov <juri@HIDDEN>
Cc: 52569 <at> debbugs.gnu.org
Received: via spool by 52569-submit <at> debbugs.gnu.org id=B52569.16400597821894
          (code B ref 52569); Tue, 21 Dec 2021 04:10:03 +0000
Received: (at 52569) by debbugs.gnu.org; 21 Dec 2021 04:09:42 +0000
Received: from localhost ([127.0.0.1]:51991 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1mzWT7-0000UT-PQ
	for submit <at> debbugs.gnu.org; Mon, 20 Dec 2021 23:09:42 -0500
Received: from quimby.gnus.org ([95.216.78.240]:60132)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <larsi@HIDDEN>) id 1mzWT6-0000UH-U6
 for 52569 <at> debbugs.gnu.org; Mon, 20 Dec 2021 23:09:41 -0500
DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org;
 s=20200322; h=Content-Type:MIME-Version:Message-ID:In-Reply-To:Date:
 References:Subject:Cc:To:From:Resent-Message-ID:Resent-Date:Resent-From:
 Resent-To:Sender:Reply-To:Content-Transfer-Encoding:Content-ID:
 Content-Description:Resent-Sender:Resent-Cc:List-Id:List-Help:
 List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive;
 bh=3VfBrhIccToVf1JJvL7WQT/+J9rO3q7OkRGKu9htlvE=; b=GyrtFryRaS/RXub3ZKtdjWIO1u
 BzdPNFjsQwbllRnJUnQcXF+NvPuduIFPBAXm7zsT2ydRgqxlKVOJU39S9isZpp0jQW3FB40XbaJTI
 tGsPyHwgAfbxJ1UhZsCJ/yS7fDG3JusUtPEW//6W4bn6pQVOnQ9QYQhEiJFnSBtdbrbE=;
Received: from [84.212.220.105] (helo=xo)
 by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.92) (envelope-from <larsi@HIDDEN>) id 1mzWSy-0002oY-Vd
 for 52569 <at> debbugs.gnu.org; Tue, 21 Dec 2021 05:09:35 +0100
Resent-X-Now-Playing: Heidi Berry's _Love_: "Gloria"
Resent-To: 52569 <at> debbugs.gnu.org
Resent-From: Lars Ingebrigtsen <larsi@HIDDEN>
Resent-Date: Tue, 21 Dec 2021 05:09:31 +0100
Resent-Message-ID: <87ee66lhtw.fsf@HIDDEN>
X-From-Line: nobody Mon Dec 20 10:53:58 2021
From: Lars Ingebrigtsen <larsi@HIDDEN>
References: <87tuf7zksh.fsf@HIDDEN> <861r28io75.fsf@HIDDEN>
Face: iVBORw0KGgoAAAANSUhEUgAAADAAAAAwAgMAAAAqbBEUAAAABGdBTUEAALGPC/xhBQAAACBj
 SFJNAAB6JgAAgIQAAPoAAACA6AAAdTAAAOpgAAA6mAAAF3CculE8AAAACVBMVEWOoVlMZDn///9k
 6/PIAAAAAWJLR0QCZgt8ZAAAAAd0SU1FB+UMFAkxCrmP2HsAAAFESURBVCjPRVFBDuQwCDNSuKdS
 +A+RmjuR4P9fWdMd7ebSOAZsXIBnYMx4+yaJwFCYF1xLHJgVFkBV34HFqvhAQJdpg5KA8N1gBLvu
 hChbiE7VADzZTxJKPpsi5lTJU2BJ1fW20c+ZJBKmG/1uFbRDvUFRspcjEl7q99btVpSr63cl6DW0
 fiBi/gf3vp/L5iGie44pY9LBddHRJw73L31YMrjsYAZ7TpGXlYKzG4BgDepsVfEnpy+cDorlPInn
 S7LjqPjikr+aDHH/qrT4fhw/N9zH//UUZt7AuxSHJcnUOhjoFrIJPQd4juEpH0+q49HLELGYVFXr
 VI6VztC6hy0fEebajE2qs06Qiz1ZVLj0PXzFsqAx/tNB49PcMKzLqMjkocYPg5DqZV6UTs4+QiOL
 FsM5zSlEvz73sAeRjEq5txqTnbA/cGxYvOKgEBwAAAAldEVYdGRhdGU6Y3JlYXRlADIwMjEtMTIt
 MjBUMDk6NDk6MTArMDA6MDDZqP18AAAAJXRFWHRkYXRlOm1vZGlmeQAyMDIxLTEyLTIwVDA5OjQ5
 OjEwKzAwOjAwqPVFwAAAAABJRU5ErkJggg==
X-Now-Playing: The Lilac Time's _Strange Folk_: "Morning Sun"
Date: Mon, 20 Dec 2021 10:53:54 +0100
In-Reply-To: <861r28io75.fsf@HIDDEN> (Juri Linkov's message of "Sun, 
 19 Dec 2021 19:16:42 +0200")
Message-ID: <87mtkvppot.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux)
MIME-Version: 1.0
Content-Type: text/plain
Lines: 52
X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org",
 has NOT identified this incoming email as spam.  The original
 message has been attached to this so you can view it or label
 similar future email.  If you have any questions, see
 @@CONTACT_ADDRESS@@ for details.
 Content preview: Juri Linkov <juri@HIDDEN> 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... I think we'd want
 to keep the traditinal auto-mode-alist for the editable image formats. 
 Content analysis details:   (-2.9 points, 5.0 required)
 pts rule name              description
 ---- ---------------------- --------------------------------------------------
 -1.0 ALL_TRUSTED            Passed through trusted hosts only via SMTP
 -1.9 BAYES_00               BODY: Bayes spam probability is 0 to 1%
 [score: 0.0000]
X-Spam-Score: -2.3 (--)
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -3.3 (---)

Juri Linkov <juri@HIDDEN> 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...

I think we'd want to keep the traditinal auto-mode-alist for the
editable image formats.

> 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.

arc-mode interprets zip files etc by itself, so I think that would be a
bigger challenge.

>> This function would be called with the file name and would be
>> responsible for returning a buffer that "displays" the file in some
>> sense.
>
> 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.
>
> Then find-file-alist could be used to implement a smarter
> dired-guess-shell-alist like for https://debbugs.gnu.org/18132#92
> So not only files visited by dired will be redirected
> to an external command, but also files visited by C-x C-f.

Hm...   interesting idea...  I think I'll have to ponder that more,
because that'd be a real user interface change, while the thing I was
thinking of here wouldn't be very apparent to the user at all -- it'd
just make things faster.

>> There's some details that aren't clear.  Should this new buffer be
>> visiting the file?  That sounds dangerous, because saving the buffer
>> contents to the file would destroy the file.  But that could be handled
>> by...  write-file-functions?
>
> Also functions that ask about saving a modified file buffer should
> probably skip such buffers.

Yes, probably.

> non-persistent-file-mode, or transient-file-mode, or ephemeral-mode...

Hm...  if `view-mode' wasn't taken already, perhaps that would have been
an option.

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no




Message sent to bug-gnu-emacs@HIDDEN:


X-Loop: help-debbugs@HIDDEN
Subject: bug#52569: 29.0.50; Wishlist: There should be a way for packages to handle files without reading them in first
Resent-From: Stefan Kangas <stefan@HIDDEN>
Original-Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
Resent-CC: bug-gnu-emacs@HIDDEN
Resent-Date: Wed, 22 Dec 2021 06:04:01 +0000
Resent-Message-ID: <handler.52569.B52569.164015302125483 <at> debbugs.gnu.org>
Resent-Sender: help-debbugs@HIDDEN
X-GNU-PR-Message: followup 52569
X-GNU-PR-Package: emacs
X-GNU-PR-Keywords: 
To: Lars Ingebrigtsen <larsi@HIDDEN>
Cc: 52569 <at> debbugs.gnu.org, Juri Linkov <juri@HIDDEN>
Received: via spool by 52569-submit <at> debbugs.gnu.org id=B52569.164015302125483
          (code B ref 52569); Wed, 22 Dec 2021 06:04:01 +0000
Received: (at 52569) by debbugs.gnu.org; 22 Dec 2021 06:03:41 +0000
Received: from localhost ([127.0.0.1]:56474 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1mzuiy-0006cx-QH
	for submit <at> debbugs.gnu.org; Wed, 22 Dec 2021 01:03:40 -0500
Received: from mail-pl1-f172.google.com ([209.85.214.172]:46907)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <stefankangas@HIDDEN>) id 1mzuiw-0006ci-8b
 for 52569 <at> debbugs.gnu.org; Wed, 22 Dec 2021 01:03:38 -0500
Received: by mail-pl1-f172.google.com with SMTP id w7so550430plp.13
 for <52569 <at> debbugs.gnu.org>; Tue, 21 Dec 2021 22:03:38 -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=SOuKgE5tX6ZMuj5Y9E6uyzbj/19NMIAJ3Gqc7eabttA=;
 b=o2NLeOXdqvm5RZmRXrRDlw02P3xuT2uTkP14U42MOBlJuJcTHf2MgEgsbPOm6xVwHl
 XOKATajyK15EDJM1ru1Y3eWqkP0Flf0MWvn3GcbbuOf226vJYGeUcPemgmelwvlYKMUj
 k1KMJ3gAlfzETW/jCQG8jrAgav2G/41jIMB3tdSE6f6xE/ndiqaTHHWZOHX7Cj6aL3LY
 NFhrT81+z0jKKF0GT+91eo7FkvHoqlOsFp90FOFBbxaLEZCb1EKhBCtSGlTS+Fxg2GxD
 YgNKmqHJmHKykqT6PAxBhju+4QI4Lbnhq8Z0ef7fX/lBoNdaqw77E8G+sc7Y7Uderb9y
 sFdQ==
X-Gm-Message-State: AOAM533CeREF7zx8408Wlo9W9ndh2hJVyHFL1shwZ9rH244TqRln8qS8
 6qM1/5bFKgQcRcSeMjZpapRJA7ZoQOi5cjqYrm8=
X-Google-Smtp-Source: ABdhPJwlCtFmAAhixiN8Qdwjq6SdxcqtOfIQHc5oj/niin8lEve8e1AGHJ2O+dgchwX39T6ffVzib6Eu9ToN47xHzsU=
X-Received: by 2002:a17:90b:1646:: with SMTP id
 il6mr2001445pjb.143.1640153012444; 
 Tue, 21 Dec 2021 22:03:32 -0800 (PST)
Received: from 753933720722 named unknown by gmailapi.google.com with
 HTTPREST; Tue, 21 Dec 2021 22:03:31 -0800
From: Stefan Kangas <stefan@HIDDEN>
In-Reply-To: <87mtkvppot.fsf@HIDDEN> (Lars Ingebrigtsen's message of "Mon,
 20 Dec 2021 10:53:54 +0100")
References: <87tuf7zksh.fsf@HIDDEN> <861r28io75.fsf@HIDDEN>
 <87mtkvppot.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux)
MIME-Version: 1.0
Date: Tue, 21 Dec 2021 22:03:31 -0800
Message-ID: <CADwFkmmvQX3Uqj_3SXbBsoVU9wPtsu6RrgJtkDWxj1xzgujqKA@HIDDEN>
Content-Type: text/plain; charset="UTF-8"
X-Spam-Score: 0.5 (/)
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -0.5 (/)

Lars Ingebrigtsen <larsi@HIDDEN> writes:

>> non-persistent-file-mode, or transient-file-mode, or ephemeral-mode...
>
> Hm...  if `view-mode' wasn't taken already, perhaps that would have been
> an option.

Here are some additional ideas:

    special-display-mode
    special-file-mode
    no-load-mode
    no-visit-mode    [if it won't be visiting]





Last modified: Wed, 22 Dec 2021 06:15:01 UTC

GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997 nCipher Corporation Ltd, 1994-97 Ian Jackson.