From mboxrd@z Thu Jan  1 00:00:00 1970
Path: main.gmane.org!not-for-mail
From: David PONCE <david.ponce@wanadoo.fr>
Newsgroups: gmane.emacs.devel
Subject: write-region message
Date: Thu,  7 Aug 2003 17:31:56 +0200 (CEST)
Sender: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org
Message-ID: <4268202.1060270316183.JavaMail.www@wwinf0401>
Reply-To: david.ponce@wanadoo.fr
NNTP-Posting-Host: deer.gmane.org
Mime-Version: 1.0
Content-Type: text/plain; charset=iso-8859-1
Content-Transfer-Encoding: 7bit
X-Trace: main.gmane.org 1060272170 32620 80.91.224.253 (7 Aug 2003 16:02:50 GMT)
X-Complaints-To: usenet@main.gmane.org
NNTP-Posting-Date: Thu, 7 Aug 2003 16:02:50 +0000 (UTC)
Original-X-From: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Thu Aug 07 18:03:13 2003
Return-path: <emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org>
Original-Received: from quimby.gnus.org ([80.91.224.244])
	by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian))
	id 19knEP-0001N0-00
	for <emacs-devel@deer.gmane.org>; Thu, 07 Aug 2003 18:03:13 +0200
Original-Received: from monty-python.gnu.org ([199.232.76.173])
	by quimby.gnus.org with esmtp (Exim 3.12 #1 (Debian))
	id 19knJu-0002WY-00
	for <emacs-devel@quimby.gnus.org>; Thu, 07 Aug 2003 18:08:54 +0200
Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org)
	by monty-python.gnu.org with esmtp (Exim 4.20)
	id 19kmkz-00088b-UD
	for emacs-devel@quimby.gnus.org; Thu, 07 Aug 2003 11:32:49 -0400
Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.20)
	id 19kmkf-000883-4r
	for emacs-devel@gnu.org; Thu, 07 Aug 2003 11:32:29 -0400
Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.20)
	id 19kmk9-0007wZ-HY
	for emacs-devel@gnu.org; Thu, 07 Aug 2003 11:32:28 -0400
Original-Received: from [193.252.22.27] (helo=mwinf0404.wanadoo.fr)
	by monty-python.gnu.org with esmtp (Exim 4.20) id 19kmk9-0007wU-5K
	for emacs-devel@gnu.org; Thu, 07 Aug 2003 11:31:57 -0400
Original-Received: from wwinf0401 (wwinf0401 [172.22.135.28])
	by mwinf0404.wanadoo.fr (SMTP Server) with ESMTP id 2F85A3800088
	for <emacs-devel@gnu.org>; Thu,  7 Aug 2003 17:31:56 +0200 (CEST)
Original-To: emacs-devel <emacs-devel@gnu.org>
X-BeenThere: emacs-devel@gnu.org
X-Mailman-Version: 2.1.2
Precedence: list
List-Id: Emacs development discussions.  <emacs-devel.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/emacs-devel>,
	<mailto:emacs-devel-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/emacs-devel>
List-Post: <mailto:emacs-devel@gnu.org>
List-Help: <mailto:emacs-devel-request@gnu.org?subject=help>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/emacs-devel>,
	<mailto:emacs-devel-request@gnu.org?subject=subscribe>
Errors-To: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org
Xref: main.gmane.org gmane.emacs.devel:15832
X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:15832

Hi All,

I submit you a small patch to fileio.c to fix the message issued by
`write-region'.

I think it should say "Updated" when the APPEND argument is an
integer, "Wrote" when it is nil, and "Added" otherwise.

What do you think?

David

Index: src/fileio.c
===================================================================
RCS file: /cvsroot/emacs/emacs/src/fileio.c,v
retrieving revision 1.492
diff -c -r1.492 fileio.c
*** src/fileio.c	22 Jul 2003 19:07:20 -0000	1.492
--- src/fileio.c	7 Aug 2003 15:17:53 -0000
***************
*** 5223,5229 ****
      return Qnil;
  
    if (!auto_saving)
!     message_with_string ((! INTEGERP (append)
  			  ? "Updated %s"
  			  : ! NILP (append)
  			  ? "Added to %s"
--- 5223,5229 ----
      return Qnil;
  
    if (!auto_saving)
!     message_with_string (( INTEGERP (append)
  			  ? "Updated %s"
  			  : ! NILP (append)
  			  ? "Added to %s"