From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Drew Adams" Newsgroups: gmane.emacs.bugs Subject: bug#10345: 24.0.92; `save-buffer' and `basic-save-buffer': add MSG arg Date: Wed, 21 Dec 2011 14:09:45 -0800 Message-ID: <53FC977FC8D04F11BD0F300217E71573@us.oracle.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: dough.gmane.org 1324505467 17760 80.91.229.12 (21 Dec 2011 22:11:07 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Wed, 21 Dec 2011 22:11:07 +0000 (UTC) To: 10345@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Wed Dec 21 23:11:02 2011 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([140.186.70.17]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1RdUNJ-0005bk-Mw for geb-bug-gnu-emacs@m.gmane.org; Wed, 21 Dec 2011 23:11:01 +0100 Original-Received: from localhost ([::1]:47928 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RdUNJ-0006Ms-3c for geb-bug-gnu-emacs@m.gmane.org; Wed, 21 Dec 2011 17:11:01 -0500 Original-Received: from eggs.gnu.org ([140.186.70.92]:54429) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RdUNF-0006MV-SE for bug-gnu-emacs@gnu.org; Wed, 21 Dec 2011 17:10:58 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RdUNE-0000bX-KY for bug-gnu-emacs@gnu.org; Wed, 21 Dec 2011 17:10:57 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:47572) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RdUNE-0000bT-J5 for bug-gnu-emacs@gnu.org; Wed, 21 Dec 2011 17:10:56 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.69) (envelope-from ) id 1RdUPG-0003Is-IW for bug-gnu-emacs@gnu.org; Wed, 21 Dec 2011 17:13:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: "Drew Adams" Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 21 Dec 2011 22:13:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 10345 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: X-Debbugs-Original-To: Original-Received: via spool by submit@debbugs.gnu.org id=B.132450552412599 (code B ref -1); Wed, 21 Dec 2011 22:13:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 21 Dec 2011 22:12:04 +0000 Original-Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1RdUOJ-0003HA-Ut for submit@debbugs.gnu.org; Wed, 21 Dec 2011 17:12:04 -0500 Original-Received: from eggs.gnu.org ([140.186.70.92]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1RdUOH-0003H3-Uo for submit@debbugs.gnu.org; Wed, 21 Dec 2011 17:12:02 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RdUME-0000N7-Td for submit@debbugs.gnu.org; Wed, 21 Dec 2011 17:09:55 -0500 Original-Received: from lists.gnu.org ([140.186.70.17]:57979) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RdUME-0000N3-SA for submit@debbugs.gnu.org; Wed, 21 Dec 2011 17:09:54 -0500 Original-Received: from eggs.gnu.org ([140.186.70.92]:54045) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RdUMD-00069d-JF for bug-gnu-emacs@gnu.org; Wed, 21 Dec 2011 17:09:54 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RdUMC-0000Mh-DA for bug-gnu-emacs@gnu.org; Wed, 21 Dec 2011 17:09:53 -0500 Original-Received: from rcsinet15.oracle.com ([148.87.113.117]:55381) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RdUMC-0000MH-7u for bug-gnu-emacs@gnu.org; Wed, 21 Dec 2011 17:09:52 -0500 Original-Received: from ucsinet21.oracle.com (ucsinet21.oracle.com [156.151.31.93]) by rcsinet15.oracle.com (Switch-3.4.4/Switch-3.4.4) with ESMTP id pBLM9mHQ009583 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Wed, 21 Dec 2011 22:09:49 GMT Original-Received: from acsmt358.oracle.com (acsmt358.oracle.com [141.146.40.158]) by ucsinet21.oracle.com (8.14.4+Sun/8.14.4) with ESMTP id pBLM9lrQ015809 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for ; Wed, 21 Dec 2011 22:09:48 GMT Original-Received: from abhmt116.oracle.com (abhmt116.oracle.com [141.146.116.68]) by acsmt358.oracle.com (8.12.11.20060308/8.12.11) with ESMTP id pBLM9l7X018863 for ; Wed, 21 Dec 2011 16:09:47 -0600 Original-Received: from dradamslap1 (/130.35.178.194) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Wed, 21 Dec 2011 14:09:47 -0800 X-Mailer: Microsoft Office Outlook 11 Thread-Index: AczALT9sVSz5BvBHRnez09lHeaT9mg== X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.6157 X-Source-IP: ucsinet21.oracle.com [156.151.31.93] X-CT-RefId: str=0001.0A090209.4EF2592D.0054,ss=1,re=0.000,fgs=0 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 1) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list Resent-Date: Wed, 21 Dec 2011 17:13:02 -0500 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-Received-From: 140.186.70.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:55109 Archived-At: Please make it possible to call this function without it displaying a message. E.g., add an optional MSG argument that is always non-nil interactively. One motivation: An Emacs function might do a series of things, including calling `save-buffer'. Sometimes the whole series could take a while, and a caller of the function might want to give a specific progress message: "Foo-barring..." and end with "Foo-barring...done". When the series of operations includes `save-buffer' this messaging is interrupted, and the user sees a message from `save-buffer', with no `...' to indicate that the overall operation (series) is not finished. In sum, since this function is sometimes called from Lisp, it makes little sense for it to systematically display a message. A caller should be able to control the messaging behavior. Same thing applies for `basic-save-buffer'. These functions are called from Lisp. They deserve optional MSG args to control message display. (Obviously, this applies only to the use of `message', not also to reading input or raising errors.) In GNU Emacs 24.0.92.1 (i386-mingw-nt5.1.2600) of 2011-12-06 on MARVIN Windowing system distributor `Microsoft Corp.', version 5.1.2600 configured using `configure --with-gcc (4.6) --no-opt --cflags -ID:/devel/emacs/libs/libXpm-3.5.8/include -ID:/devel/emacs/libs/libXpm-3.5.8/src -ID:/devel/emacs/libs/libpng-dev_1.4.3-1/include -ID:/devel/emacs/libs/zlib-dev_1.2.5-2/include -ID:/devel/emacs/libs/giflib-4.1.4-1/include -ID:/devel/emacs/libs/jpeg-6b-4/include -ID:/devel/emacs/libs/tiff-3.8.2-1/include -ID:/devel/emacs/libs/gnutls-2.10.1/include --ldflags -LD:/devel/emacs/libs/gnutls-2.10.1/lib'