From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Lars Ingebrigtsen Newsgroups: gmane.emacs.bugs Subject: bug#10345: 24.0.92; `save-buffer' and `basic-save-buffer': add MSG arg Date: Thu, 28 Apr 2016 13:48:18 +0200 Message-ID: <871t5qned9.fsf@gnus.org> References: <53FC977FC8D04F11BD0F300217E71573@us.oracle.com> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1461844166 18721 80.91.229.3 (28 Apr 2016 11:49:26 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 28 Apr 2016 11:49:26 +0000 (UTC) Cc: 10345@debbugs.gnu.org To: "Drew Adams" Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Thu Apr 28 13:49:14 2016 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1avkRV-0007o4-Hy for geb-bug-gnu-emacs@m.gmane.org; Thu, 28 Apr 2016 13:49:13 +0200 Original-Received: from localhost ([::1]:48125 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1avkRR-0005qQ-SX for geb-bug-gnu-emacs@m.gmane.org; Thu, 28 Apr 2016 07:49:09 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:34664) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1avkRO-0005mc-2w for bug-gnu-emacs@gnu.org; Thu, 28 Apr 2016 07:49:07 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1avkRK-00027q-NK for bug-gnu-emacs@gnu.org; Thu, 28 Apr 2016 07:49:05 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:39052) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1avkRK-00027m-K1 for bug-gnu-emacs@gnu.org; Thu, 28 Apr 2016 07:49:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1avkRK-0003BV-FF for bug-gnu-emacs@gnu.org; Thu, 28 Apr 2016 07:49:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Lars Ingebrigtsen Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 28 Apr 2016 11:49:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 10345 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 10345-submit@debbugs.gnu.org id=B10345.146184410512183 (code B ref 10345); Thu, 28 Apr 2016 11:49:02 +0000 Original-Received: (at 10345) by debbugs.gnu.org; 28 Apr 2016 11:48:25 +0000 Original-Received: from localhost ([127.0.0.1]:51386 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1avkQj-0003AR-ED for submit@debbugs.gnu.org; Thu, 28 Apr 2016 07:48:25 -0400 Original-Received: from hermes.netfonds.no ([80.91.224.195]:36492) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1avkQi-0003AK-EM for 10345@debbugs.gnu.org; Thu, 28 Apr 2016 07:48:24 -0400 Original-Received: from cm-84.215.1.64.getinternet.no ([84.215.1.64] helo=mouse) by hermes.netfonds.no with esmtpsa (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.84_2) (envelope-from ) id 1avkQc-0002IG-DG; Thu, 28 Apr 2016 13:48:23 +0200 In-Reply-To: <53FC977FC8D04F11BD0F300217E71573@us.oracle.com> (Drew Adams's message of "Wed, 21 Dec 2011 14:09:45 -0800") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.1.50 (gnu/linux) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 208.118.235.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" Xref: news.gmane.org gmane.emacs.bugs:117041 Archived-At: "Drew Adams" writes: > 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.) If you wish to save buffers without messaging, you use `write-region' or the like. `save-buffers' is a very user level function. Closing. -- (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no