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 22:12:47 +0200 Message-ID: References: Reply-To: Eli Zaretskii , 2137@emacsbugs.donarmstrong.com NNTP-Posting-Host: lo.gmane.org X-Trace: ger.gmane.org 1233779459 5128 80.91.229.12 (4 Feb 2009 20:30:59 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 4 Feb 2009 20:30:59 +0000 (UTC) Cc: monnier@IRO.UMontreal.CA, 2137@emacsbugs.donarmstrong.com To: rms@gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Wed Feb 04 21:32:13 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 1LUoPl-0007cs-Vx for geb-bug-gnu-emacs@m.gmane.org; Wed, 04 Feb 2009 21:32:06 +0100 Original-Received: from localhost ([127.0.0.1]:50169 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LUoOS-0002OL-VS for geb-bug-gnu-emacs@m.gmane.org; Wed, 04 Feb 2009 15:30:45 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1LUoHZ-000058-Jo for bug-gnu-emacs@gnu.org; Wed, 04 Feb 2009 15:23:37 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1LUoHW-0008VF-Uu for bug-gnu-emacs@gnu.org; Wed, 04 Feb 2009 15:23:36 -0500 Original-Received: from [199.232.76.173] (port=59618 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LUoHW-0008VA-LZ for bug-gnu-emacs@gnu.org; Wed, 04 Feb 2009 15:23:34 -0500 Original-Received: from rzlab.ucr.edu ([138.23.92.77]:38828) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1LUoHV-00046R-RG for bug-gnu-emacs@gnu.org; Wed, 04 Feb 2009 15:23: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 n14KNVMm030439; Wed, 4 Feb 2009 12:23:32 -0800 Original-Received: (from debbugs@localhost) by rzlab.ucr.edu (8.13.8/8.13.8/Submit) id n14KK3X0029366; Wed, 4 Feb 2009 12:20:03 -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 20:20:03 +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.123377841628037 (code B ref 2137); Wed, 04 Feb 2009 20:20:03 +0000 Original-Received: (at 2137) by emacsbugs.donarmstrong.com; 4 Feb 2009 20:13:36 +0000 X-Spam-Bayes: score:0.5 Bayes not run. spammytokens:Tokens not available. hammytokens:Tokens not available. Original-Received: from mtaout6.012.net.il (mtaout6.012.net.il [84.95.2.16]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id n14KDRfX028026 for <2137@emacsbugs.donarmstrong.com>; Wed, 4 Feb 2009 12:13:29 -0800 Original-Received: from conversion-daemon.i-mtaout6.012.net.il by i-mtaout6.012.net.il (HyperSendmail v2007.08) id <0KEK00I004VQK200@i-mtaout6.012.net.il> for 2137@emacsbugs.donarmstrong.com; Wed, 04 Feb 2009 22:13:12 +0200 (IST) Original-Received: from HOME-C4E4A596F7 ([84.228.158.130]) by i-mtaout6.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0KEK001CP5HYW860@i-mtaout6.012.net.il>; Wed, 04 Feb 2009 22:13:11 +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: Wed, 04 Feb 2009 15:23: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:24954 Archived-At: > From: Richard M Stallman > CC: eliz@gnu.org, rgm@gnu.org, 2137@emacsbugs.donarmstrong.com > Date: Wed, 04 Feb 2009 13:27:49 -0500 > > > IMO, using annotations for the job of saving the mailbox is also a > > horrible kludge. All that just to avoid defining an Rmail-specific > > binding for C-x C-s ... > > Thanks for your support, > > An Rmail-specific binding for C-x C-s is not enough to make saving > work correctly. Users can save the file through C-x s also, and other > commands too. The common mechanism for these commands is > `save-buffer'; whatever makes them save the right text has to work > inside there. So we could introduce some mechanism specific for such situation, like some hook that save-buffer would call or something. Annotations just aren't that mechanism, they exist to add text to the buffer before it is written. > we could add to > rmail-write-region-annotate another hack: a call to buffer-size > followed by the same message "Saving file ..." that should have been > displayed by save-buffer. > > The difficulty here is to display that message only in the case > where the hook was ultimately called from `save-buffer'. rmail-write-region-annotate uses its first argument to deduce that it is being called to write the entire buffer. Why couldn't the same logic be used for the message?