From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.devel Subject: Re: bug#2137: 23.0.60; Saving Rmail buffer does not show the "Saving file ..." message Date: Tue, 03 Feb 2009 16:29:08 -0500 Message-ID: References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1233696849 19177 80.91.229.12 (3 Feb 2009 21:34:09 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 3 Feb 2009 21:34:09 +0000 (UTC) Cc: emacs-devel@gnu.org, rms@gnu.org, 2137@emacsbugs.donarmstrong.com To: Eli Zaretskii Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Feb 03 22:35:23 2009 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1LUSvJ-0001d3-PH for ged-emacs-devel@m.gmane.org; Tue, 03 Feb 2009 22:35:14 +0100 Original-Received: from localhost ([127.0.0.1]:46106 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LUSu1-0001nz-1i for ged-emacs-devel@m.gmane.org; Tue, 03 Feb 2009 16:33:53 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1LUSpb-00007o-98 for emacs-devel@gnu.org; Tue, 03 Feb 2009 16:29:19 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1LUSpZ-0008WC-4P for emacs-devel@gnu.org; Tue, 03 Feb 2009 16:29:18 -0500 Original-Received: from [199.232.76.173] (port=35676 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LUSpY-0008Vg-ST for emacs-devel@gnu.org; Tue, 03 Feb 2009 16:29:16 -0500 Original-Received: from chene.dit.umontreal.ca ([132.204.246.20]:51596) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1LUSpW-0000tm-Gp; Tue, 03 Feb 2009 16:29:14 -0500 Original-Received: from alfajor.home (vpn-132-204-232-163.acd.umontreal.ca [132.204.232.163]) by chene.dit.umontreal.ca (8.14.1/8.14.1) with ESMTP id n13LT9Fo018322; Tue, 3 Feb 2009 16:29:09 -0500 Original-Received: by alfajor.home (Postfix, from userid 20848) id 25DB0A22D1; Tue, 3 Feb 2009 16:29:09 -0500 (EST) In-Reply-To: (Eli Zaretskii's message of "Mon, 02 Feb 2009 23:05:11 +0200") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.60 (gnu/linux) X-NAI-Spam-Score: 0 X-NAI-Spam-Rules: 1 Rules triggered RV3203=0 X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 3) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:108707 Archived-At: >> This problem at least simply points to a current bug in save-buffer. > Which bug is that? The bug is that is uses buffer-size to determine the size of the file, without taking into account the fact that write-region-annotate-functions can add lot of stuff to the file that's not in the buffer's text. The simplest fix is to simply always output the message rather than only for files larger than 50KB. The more difficult one is to move the message from save-buffer to write-region. Stefan