help-gnu-emacs
[Top][All Lists]
Advanced

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

Re: Autosaving shrunk buffers


From: Kevin Rodgers
Subject: Re: Autosaving shrunk buffers
Date: Mon, 11 Dec 2006 14:14:30 -0700
User-agent: Thunderbird 1.5.0.8 (Windows/20061025)

Yevgeniy Makarov wrote:
This topic has been raised in this group before--in 1991 and
2002--however, no answer was given.

How do I convince Emacs not to turn off auto-saving when a buffer has
shrunk a lot?

*** fileio.c.orig       2006-12-04 08:16:47 -0000
--- fileio.c    2006-12-11 14:11:13 -0700
***************
*** 5975,5980 ****
--- 5975,5981 ----
                && EMACS_SECS (before_time) - b->auto_save_failure_time < 1200)
              continue;

+ #if 0
            if ((XFASTINT (b->save_length) * 10
                 > (BUF_Z (b) - BUF_BEG (b)) * 13)
                /* A short file is likely to change a large fraction;
***************
*** 5995,6000 ****
--- 5996,6002 ----
                Fsleep_for (make_number (1), Qnil);
                continue;
              }
+ #endif
            set_buffer_internal (b);
            if (!auto_saved && NILP (no_message))
              message1 ("Auto-saving...");


--
Kevin





reply via email to

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