emacs-pretest-bug
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: large-file-warning-threshold and insert-file


From: Chris Moore
Subject: Re: large-file-warning-threshold and insert-file
Date: Mon, 04 Dec 2006 10:26:08 +0100
User-agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.91 (gnu/linux)

Richard Stallman <address@hidden> writes:

>                                       recover-file
>       recover-session-finish recover-this-file revert-buffer
>
> Those should not query.  When you ask to revert a buffer, you are
> unlikely to want to stick with the old version just because the new
> one is large.

I'm thinking of an example where I visited a log file shortly after
starting some server.  Then a few hours later I ask to revert the
buffer, not realising that verbose logging was enabled and the logfile
is now several gigabytes in size.  I would want Emacs to warn me that
the file (which was tiny before) is now huge.

>     Also, when I see "File ... changed on disk.  Reread from disk? (yes or
>     no)" and answer "yes", the file is read in without its size being
>     checked.
>
> I'm sure the user wants to use the current version of the file
> even if it is large.  So this should not be changed.

Think about the above logfile example again.  I type "C-x C-f
/var/log/something.0 RET", Emacs already has a buffer with that file
in it from when it was visited hours ago so prompts that the file has
changed on disk, but fails to mention that the file is now too big to
fit into RAM, and asks if it should reread from disk.

In general I don't want Emacs trying to open huge files, which ever
command I use.  If Emacs is going to pull huge files from disk into
memory I'd like the option of being consulted first.




reply via email to

[Prev in Thread] Current Thread [Next in Thread]