From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: =?UTF-8?Q?Cl=C3=A9ment?= Pit--Claudel Newsgroups: gmane.emacs.bugs Subject: bug#23936: 25.1.50; shell-command shell-command-on-region doc fix Date: Sun, 10 Jul 2016 19:22:13 +0200 Message-ID: <57828445.3020006@gmail.com> References: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="GBtcUeff6dWpGqhxMOct2gvbIeNC079t4" X-Trace: ger.gmane.org 1468171405 10810 80.91.229.3 (10 Jul 2016 17:23:25 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 10 Jul 2016 17:23:25 +0000 (UTC) To: 23936@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sun Jul 10 19:23:12 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 1bMIRk-0002L7-KM for geb-bug-gnu-emacs@m.gmane.org; Sun, 10 Jul 2016 19:23:12 +0200 Original-Received: from localhost ([::1]:56090 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bMIRj-0002tA-W6 for geb-bug-gnu-emacs@m.gmane.org; Sun, 10 Jul 2016 13:23:12 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:41354) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bMIRe-0002sq-2y for bug-gnu-emacs@gnu.org; Sun, 10 Jul 2016 13:23:07 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bMIRZ-0008QD-Qy for bug-gnu-emacs@gnu.org; Sun, 10 Jul 2016 13:23:05 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:33164) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bMIRZ-0008Q9-Nm for bug-gnu-emacs@gnu.org; Sun, 10 Jul 2016 13:23:01 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1bMIRZ-0000nx-K6 for bug-gnu-emacs@gnu.org; Sun, 10 Jul 2016 13:23:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: =?UTF-8?Q?Cl=C3=A9ment?= Pit--Claudel Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 10 Jul 2016 17:23:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 23936 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.14681713493051 (code B ref -1); Sun, 10 Jul 2016 17:23:01 +0000 Original-Received: (at submit) by debbugs.gnu.org; 10 Jul 2016 17:22:29 +0000 Original-Received: from localhost ([127.0.0.1]:45501 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bMIR2-0000n9-Ul for submit@debbugs.gnu.org; Sun, 10 Jul 2016 13:22:29 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:50244) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bMIR0-0000mx-Tj for submit@debbugs.gnu.org; Sun, 10 Jul 2016 13:22:27 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bMIQu-0008LP-N7 for submit@debbugs.gnu.org; Sun, 10 Jul 2016 13:22:21 -0400 Original-Received: from lists.gnu.org ([2001:4830:134:3::11]:43800) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bMIQu-0008LJ-KI for submit@debbugs.gnu.org; Sun, 10 Jul 2016 13:22:20 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:41205) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bMIQt-0002ij-5I for bug-gnu-emacs@gnu.org; Sun, 10 Jul 2016 13:22:20 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bMIQo-0008Kp-Sh for bug-gnu-emacs@gnu.org; Sun, 10 Jul 2016 13:22:18 -0400 Original-Received: from mout.kundenserver.de ([212.227.126.134]:49427) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bMIQo-0008Kk-HW for bug-gnu-emacs@gnu.org; Sun, 10 Jul 2016 13:22:14 -0400 Original-Received: from [192.168.1.82] ([109.24.225.43]) by mrelayeu.kundenserver.de (mreue004) with ESMTPSA (Nemesis) id 0MPt6U-1bQAJr2zoI-0055LN for ; Sun, 10 Jul 2016 19:22:13 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.8.0 In-Reply-To: X-Provags-ID: V03:K0:VzhsZ7tpFWHtJVQWqls8DLXPBxJzcB/ge3PocsA2ZILvc13PoT9 rIuDFRVRU77bjJQ6w94XrgT9m2KDwkVXTgB9jBaXRkQqdirDd8fnDlakoydux8pb9H+pL/P 3iLn4Fe8oAJqk1qm4XEvuKayXTDzD3qSHfFNkLFdMNcZrGg5eTfwVlfAOzcjd6JlEk/p3sU mIvbs529BOVPYIARkLJnw== X-UI-Out-Filterresults: notjunk:1;V01:K0:7Kt2K/XYrr0=:cepwAYrFHWeHnyU+VR/WfY BBUEBqLBoIIe1pqbCj34caUBrzO7hAuJ7hXq11lzJCVtYa1Sx0I74IyQC70dwm3D5j7FBikfl w+nR5IXqvt20kNYFNhIl3q+lCB+LYD2dLQDPaB5bXcrpcKyIO5jiKu94AOThW/qiVE5e6j8JY i35l3i7PkVG2cr9OtRTx2Q4eQdGuOccIlZob7vw56QESbkA3Jlxx7/ArcdKV7j2Y/QgNW2tnl fvazK30D630zcmOH47B6mzhIJlgOrjUY5tj60o1DBBV1mtodI+EhoxonU12jwbAp+eW9xrIWq 5HXPw5a0xCVuqetL13tfKYcFT8s/RGS6VdP4PCQizqQ5KQ0SpR89YLR9NLzBuVUFCTdnOlg0U yOoLyJldbgG5mWlTY42p44Fw3f9sQPpEVSyi6G37YZzYiHsCi9k0ql9HpFXAWbKyjhRDCWy6x MQHjH726auoQsvV+EwHITnoaDQR30nMUCeo9XYQHEIN8P51Any8wgvh+TxJ+wS9VtegyVBIs1 SvW1P1aifl9Op4f2zZ2AuoN7ScUPUwxdRKNlXIDnFMqcHc9K/me6GBxeXqT6HXYzJfrHpQ6A6 O6w4+F3JrpPXyk5uGqZbhk6924MKieUPxpTiAMXcsW1DRdI2ZW24n/SBjJewd8WRJCRtRNEKk tMHxIT+Uy0Of25VYABwsgEsSJWzf7kNCPOKPrcn9yegbhHQzD2Dwx6Q3cg4CyKvhIH7M= X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x 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:120792 Archived-At: This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --GBtcUeff6dWpGqhxMOct2gvbIeNC079t4 Content-Type: multipart/mixed; boundary="VjOIJmC7hu8ePh7wMObG1BF3tXvpdMs5t" From: =?UTF-8?Q?Cl=c3=a9ment_Pit--Claudel?= To: bug-gnu-emacs@gnu.org Message-ID: <57828445.3020006@gmail.com> Subject: Re: bug#23936: 25.1.50; shell-command shell-command-on-region doc fix References: In-Reply-To: --VjOIJmC7hu8ePh7wMObG1BF3tXvpdMs5t Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: quoted-printable LGTM, but: why do you need to say it's inserted after point, since the bu= ffer is erased anyway? > +Any other value, excluding nil, means to insert the output > +in the current buffer after START. "Any other non-nil value"? I read this wrong on the first read. Doesn't m= atter much though. Cl=E9ment. On 2016-07-10 18:41, Tino Calancha wrote: >=20 > Doc strings don't specify correctly when the buffer > is erased, in what buffer position the output is > inserted or when the mark is set. >=20 > emacs -Q > ;; Evaluate following two forms > (progn > (switch-to-buffer (get-buffer-create "*out*")) > (insert (format "1 2\n\n\n\nfoo\n")) ; point is at 12 > (shell-command-on-region 1 4 "printf 'bar\n'" t)) ; point is at 5 >=20 > (progn > (switch-to-buffer (get-buffer-create "*out*")) > (shell-command "date" t)) ; buffer is not erased >=20 > ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;= ;;;;;;;; >=20 >> From 90915fdad69939886a3a1dcc377453b2e98b2089 Mon Sep 17 00:00:00 2001= > From: Tino Calancha > Date: Mon, 11 Jul 2016 01:33:22 +0900 > Subject: [PATCH] * lisp/simple.el (shell-command, shell-command-on-regi= on): > Fix doc strings >=20 > --- > lisp/simple.el | 18 +++++++++--------- > 1 file changed, 9 insertions(+), 9 deletions(-) >=20 > diff --git a/lisp/simple.el b/lisp/simple.el > index ba026af..cb8c0ce 100644 > --- a/lisp/simple.el > +++ b/lisp/simple.el > @@ -3235,11 +3235,11 @@ shell-command >=20 > The optional second argument OUTPUT-BUFFER, if non-nil, > says to put the output in some other buffer. > -If OUTPUT-BUFFER is a buffer or buffer name, put the output there. > -If OUTPUT-BUFFER is not a buffer and not nil, > -insert output in current buffer. (This cannot be done asynchronously.= ) > -In either case, the buffer is first erased, and the output is > -inserted after point (leaving mark after it). > +If OUTPUT-BUFFER is a buffer or buffer name, erase that buffer > +and insert the output there after point. > +If OUTPUT-BUFFER is not a buffer and not nil, insert the output > +in current buffer after point leaving mark after it. > +(This cannot be done asynchronously). >=20 > If the command terminates without error, but generates output, > and you did not specify \"insert it in the current buffer\", > @@ -3504,10 +3504,10 @@ shell-command-on-region >=20 > Optional fourth arg OUTPUT-BUFFER specifies where to put the > command's output. If the value is a buffer or buffer name, > -put the output there. If the value is nil, use the buffer > -`*Shell Command Output*'. Any other value, excluding nil, > -means to insert the output in the current buffer. In either case, > -the output is inserted after point (leaving mark after it). > +erase that buffer and insert the output there. > +If the value is nil, use the buffer `*Shell Command Output*'. > +Any other value, excluding nil, means to insert the output > +in the current buffer after START. >=20 > Optional fifth arg REPLACE, if non-nil, means to insert the > output in place of text from START to END, putting point and mark --VjOIJmC7hu8ePh7wMObG1BF3tXvpdMs5t-- --GBtcUeff6dWpGqhxMOct2gvbIeNC079t4 Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.22 (GNU/Linux) iQIcBAEBAgAGBQJXgoRFAAoJEPqg+cTm90wjRpoP/iy7KKp9XGEtIso3BGdnBHEG fWO4LcUA9Yi1TY8aQt5rDCVHtjUd6R/lkbvjv0SqwwDJCiQI9INgK9DNcVvEz1qH MPodZ/cG8No7Rb5X568DNXoGygPP5IoBiqKEUt/vlv8m1Y5dwKhfcDFJ86yXjC9T PbLNIxRpPVfFglEgFqDV2RcDFlL4uV96ZZ+b9NRO+3bVX1pRUVzZlBnY+iQibGeb sqvzd2isFH49V5i8CT294yYCxsm/W51fPBZzUFMijEggjvN9QeiZQVIrLbn+61If cB9zrrcVzumPFLfVpZ8YfQeYPSoMGjWPNJwI/qebgpdZ+XbcoF9wXo/GiiH8fNID 9M1/PUbu5Jg9PYjXrmKkA7QevQGLAPSaUhKT+Oi2VOs8rBt7A0iqWM032wOoN3yM e/kA2Mu5CPWUL7Q0hDaAjEDHNLQk9vkyrvPruChWA0K7+D/Kd+5vuSgtgoQu5A7n bhOCfFg+mzmwvXuD5oMpX2A53k/VXr08YDPejjCKpYQfONJTCYjFUhr8POTnJ7i6 MZdZ7rqo8pimbZj4BZJgY2u+AM9E0WX/xP3sc5DMzNmHcygYza9ShFMgbPyQENKi 3rAsU6txqg5V1cGe0eteXMnpJ1A0xtCJ1Rfit+lxVvYDodt4hDGlFgUSndEoN3Tv ATHWFot18V2r7YjnPA58 =B0Ga -----END PGP SIGNATURE----- --GBtcUeff6dWpGqhxMOct2gvbIeNC079t4--