From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.bugs Subject: bug#2137: 23.0.60; Saving Rmail buffer does not show the "Saving file ..." message Date: Wed, 04 Feb 2009 14:46:49 -0500 Message-ID: References: Reply-To: Stefan Monnier , 2137@emacsbugs.donarmstrong.com NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1233778266 748 80.91.229.12 (4 Feb 2009 20:11:06 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 4 Feb 2009 20:11:06 +0000 (UTC) Cc: emacs-devel@gnu.org, rms@gnu.org, 2137@emacsbugs.donarmstrong.com To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Wed Feb 04 21:12:19 2009 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1LUo6Z-0008OJ-St for geb-bug-gnu-emacs@m.gmane.org; Wed, 04 Feb 2009 21:12:17 +0100 Original-Received: from localhost ([127.0.0.1]:55161 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LUo5G-0005Tx-5G for geb-bug-gnu-emacs@m.gmane.org; Wed, 04 Feb 2009 15:10:54 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1LUnyC-0002No-PS for bug-gnu-emacs@gnu.org; Wed, 04 Feb 2009 15:03:36 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1LUnyB-0002MU-Id for bug-gnu-emacs@gnu.org; Wed, 04 Feb 2009 15:03:35 -0500 Original-Received: from [199.232.76.173] (port=44351 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LUnyB-0002MF-3A for bug-gnu-emacs@gnu.org; Wed, 04 Feb 2009 15:03:35 -0500 Original-Received: from rzlab.ucr.edu ([138.23.92.77]:35364) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1LUnyA-0001US-AN for bug-gnu-emacs@gnu.org; Wed, 04 Feb 2009 15:03:34 -0500 Original-Received: from rzlab.ucr.edu (rzlab.ucr.edu [127.0.0.1]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id n14K3VMH024850; Wed, 4 Feb 2009 12:03:32 -0800 Original-Received: (from debbugs@localhost) by rzlab.ucr.edu (8.13.8/8.13.8/Submit) id n14Jt4vv022593; Wed, 4 Feb 2009 11:55:04 -0800 X-Loop: owner@emacsbugs.donarmstrong.com Resent-From: Stefan Monnier Resent-To: bug-submit-list@donarmstrong.com Resent-CC: Emacs Bugs , Rmail Maintainers Resent-Date: Wed, 04 Feb 2009 19:55:04 +0000 Resent-Message-ID: Resent-Sender: owner@emacsbugs.donarmstrong.com X-Emacs-PR-Message: followup 2137 X-Emacs-PR-Package: emacs,rmail X-Emacs-PR-Keywords: Original-Received: via spool by 2137-submit@emacsbugs.donarmstrong.com id=B2137.123377681521240 (code B ref 2137); Wed, 04 Feb 2009 19:55:04 +0000 Original-Received: (at 2137) by emacsbugs.donarmstrong.com; 4 Feb 2009 19:46:55 +0000 X-Spam-Bayes: score:0.5 Bayes not run. spammytokens:Tokens not available. hammytokens:Tokens not available. Original-Received: from pruche.dit.umontreal.ca (pruche.dit.umontreal.ca [132.204.246.22]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id n14JkpAl021234 for <2137@emacsbugs.donarmstrong.com>; Wed, 4 Feb 2009 11:46:52 -0800 Original-Received: from alfajor.home (vpn-132-204-232-41.acd.umontreal.ca [132.204.232.41]) by pruche.dit.umontreal.ca (8.14.1/8.14.1) with ESMTP id n14JlUBB005812; Wed, 4 Feb 2009 14:47:30 -0500 Original-Received: by alfajor.home (Postfix, from userid 20848) id 52C1FA22D8; Wed, 4 Feb 2009 14:46:49 -0500 (EST) In-Reply-To: (Eli Zaretskii's message of "Wed, 04 Feb 2009 06:16:00 +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 RV3204=0 X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 3) Resent-Date: Wed, 04 Feb 2009 15:03:35 -0500 X-BeenThere: bug-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:24949 Archived-At: >> 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. > How can buffer-size take that into account? It can't. Luckily we don't have to use buffer-size for that. > The correct full size of what's written to the disk file is never > seen, since write-region does its job piecemeal, and the annotations > are applied separately to each piece by a_write. Indeed. > Am I missing something? We do have all the annotations in a single place, so we can compute the final total size before we start writing. >> The simplest fix is to simply always output the message rather than only >> for files larger than 50KB. > That may be the only (non-kludgey) solution. Yes, I find it to be the best solution. I see no benefit in avoiding the message for smaller files. Stefan