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: Slawomir Nowaczyk
Subject: Re: large-file-warning-threshold and insert-file
Date: Sun, 10 Dec 2006 15:30:11 +0100

On Mon, 04 Dec 2006 20:45:22 -0500
Richard Stallman <address@hidden> wrote:

#>     > 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.
#> 
#> I am not sure whether the question is desirable in this case, but I am
#> sure that in the usual case it is undesirable.
#> 
#> If you would like different behavior, you can change the code.

It seems like the right fix would be to remember somewhere whether the
question about large file has already been asked... if the user earlier
confirmed that it is OK to open large file, reverting the buffer
should not ask again.

But if the file was small before so the question was never asked, it
might be safer to ask for confirmation when reverting.

I do not know if the functionality is worth implementing, and even if it
is, it should probably wait until after the release.

-- 
 Best wishes,
   Slawomir Nowaczyk
     ( address@hidden )

Smoking helps you lose weight -- one lung at a time!





reply via email to

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