From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii 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 06:16:00 +0200 Message-ID: References: Reply-To: Eli Zaretskii , 2137@emacsbugs.donarmstrong.com NNTP-Posting-Host: lo.gmane.org X-Trace: ger.gmane.org 1233722683 17854 80.91.229.12 (4 Feb 2009 04:44:43 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 4 Feb 2009 04:44:43 +0000 (UTC) Cc: emacs-devel@gnu.org, rms@gnu.org, 2137@emacsbugs.donarmstrong.com To: Stefan Monnier Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Wed Feb 04 05:45:57 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 1LUZdP-0005Tz-0q for geb-bug-gnu-emacs@m.gmane.org; Wed, 04 Feb 2009 05:45:11 +0100 Original-Received: from localhost ([127.0.0.1]:47749 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LUZc6-0000Mq-9y for geb-bug-gnu-emacs@m.gmane.org; Tue, 03 Feb 2009 23:43:50 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1LUZbs-0000J1-J9 for bug-gnu-emacs@gnu.org; Tue, 03 Feb 2009 23:43:36 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1LUZbr-0000IU-AM for bug-gnu-emacs@gnu.org; Tue, 03 Feb 2009 23:43:36 -0500 Original-Received: from [199.232.76.173] (port=55890 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LUZbr-0000IE-0I for bug-gnu-emacs@gnu.org; Tue, 03 Feb 2009 23:43:35 -0500 Original-Received: from rzlab.ucr.edu ([138.23.92.77]:50032) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1LUZbq-0005BY-1w for bug-gnu-emacs@gnu.org; Tue, 03 Feb 2009 23:43: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 n144hVdP020276; Tue, 3 Feb 2009 20:43:32 -0800 Original-Received: (from debbugs@localhost) by rzlab.ucr.edu (8.13.8/8.13.8/Submit) id n144P40k015671; Tue, 3 Feb 2009 20:25:04 -0800 X-Loop: owner@emacsbugs.donarmstrong.com Resent-From: Eli Zaretskii Resent-To: bug-submit-list@donarmstrong.com Resent-CC: Emacs Bugs , Rmail Maintainers Resent-Date: Wed, 04 Feb 2009 04:25: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.123372097214296 (code B ref 2137); Wed, 04 Feb 2009 04:25:04 +0000 Original-Received: (at 2137) by emacsbugs.donarmstrong.com; 4 Feb 2009 04:16:12 +0000 X-Spam-Bayes: score:0.5 Bayes not run. spammytokens:Tokens not available. hammytokens:Tokens not available. Original-Received: from mtaout1.012.net.il (mtaout1.012.net.il [84.95.2.1]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id n144G86G014290 for <2137@emacsbugs.donarmstrong.com>; Tue, 3 Feb 2009 20:16:10 -0800 Original-Received: from conversion-daemon.i-mtaout1.012.net.il by i-mtaout1.012.net.il (HyperSendmail v2007.08) id <0KEI00400WSMAU00@i-mtaout1.012.net.il> for 2137@emacsbugs.donarmstrong.com; Wed, 04 Feb 2009 06:16:17 +0200 (IST) Original-Received: from HOME-C4E4A596F7 ([84.228.158.130]) by i-mtaout1.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0KEI00AEIX74SBM0@i-mtaout1.012.net.il>; Wed, 04 Feb 2009 06:16:17 +0200 (IST) In-reply-to: X-012-Sender: halo1@inter.net.il X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 3) Resent-Date: Tue, 03 Feb 2009 23:43:36 -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:24917 Archived-At: > From: Stefan Monnier > Cc: rms@gnu.org, 2137@emacsbugs.donarmstrong.com, emacs-devel@gnu.org > Date: Tue, 03 Feb 2009 16:29:08 -0500 > > >> 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. How can buffer-size take that into account? 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. Am I missing something? > 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. > The more difficult one is to move the message from save-buffer to > write-region. If I'm right above, this won't solve the case where annotations add a lot.