From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Kevin Rodgers Newsgroups: gmane.emacs.help Subject: Re: Autosaving shrunk buffers Date: Mon, 11 Dec 2006 14:14:30 -0700 Organization: IHS Message-ID: References: <1165853120.796675.240320@16g2000cwy.googlegroups.com> NNTP-Posting-Host: dough.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1165871786 31485 80.91.229.10 (11 Dec 2006 21:16:26 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Mon, 11 Dec 2006 21:16:26 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Mon Dec 11 22:16:23 2006 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by dough.gmane.org with esmtp (Exim 4.50) id 1GtsVZ-0000GW-6Q for geh-help-gnu-emacs@m.gmane.org; Mon, 11 Dec 2006 22:16:21 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1GtsVY-0000DR-Ey for geh-help-gnu-emacs@m.gmane.org; Mon, 11 Dec 2006 16:16:20 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1GtsVM-0000CP-OK for help-gnu-emacs@gnu.org; Mon, 11 Dec 2006 16:16:08 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1GtsVL-0000BK-2X for help-gnu-emacs@gnu.org; Mon, 11 Dec 2006 16:16:08 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1GtsVK-0000BA-Td for help-gnu-emacs@gnu.org; Mon, 11 Dec 2006 16:16:06 -0500 Original-Received: from [80.91.229.2] (helo=ciao.gmane.org) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA:32) (Exim 4.52) id 1GtsVK-0007K6-M3 for help-gnu-emacs@gnu.org; Mon, 11 Dec 2006 16:16:06 -0500 Original-Received: from list by ciao.gmane.org with local (Exim 4.43) id 1GtsUz-00005x-VD for help-gnu-emacs@gnu.org; Mon, 11 Dec 2006 22:15:47 +0100 Original-Received: from 207.167.42.206 ([207.167.42.206]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 11 Dec 2006 22:15:45 +0100 Original-Received: from ihs_4664 by 207.167.42.206 with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 11 Dec 2006 22:15:45 +0100 X-Injected-Via-Gmane: http://gmane.org/ Original-To: help-gnu-emacs@gnu.org Original-Lines: 33 Original-X-Complaints-To: usenet@sea.gmane.org X-Gmane-NNTP-Posting-Host: 207.167.42.206 User-Agent: Thunderbird 1.5.0.8 (Windows/20061025) In-Reply-To: <1165853120.796675.240320@16g2000cwy.googlegroups.com> X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:39436 Archived-At: 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