all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* Autosaving shrunk buffers
@ 2006-12-11 16:05 Yevgeniy Makarov
  2006-12-11 21:14 ` Kevin Rodgers
  0 siblings, 1 reply; 2+ messages in thread
From: Yevgeniy Makarov @ 2006-12-11 16:05 UTC (permalink / raw)


Hello,

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?

Thank you,
Yevgeniy

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: Autosaving shrunk buffers
  2006-12-11 16:05 Autosaving shrunk buffers Yevgeniy Makarov
@ 2006-12-11 21:14 ` Kevin Rodgers
  0 siblings, 0 replies; 2+ messages in thread
From: Kevin Rodgers @ 2006-12-11 21:14 UTC (permalink / raw)


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

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2006-12-11 21:14 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-12-11 16:05 Autosaving shrunk buffers Yevgeniy Makarov
2006-12-11 21:14 ` Kevin Rodgers

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.