From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Tino Calancha Newsgroups: gmane.emacs.bugs Subject: bug#23936: 25.1.50; shell-command shell-command-on-region doc fix Date: Thu, 21 Jul 2016 17:48:36 +0900 (JST) Message-ID: References: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; format=flowed; charset=US-ASCII X-Trace: ger.gmane.org 1469091100 6389 80.91.229.3 (21 Jul 2016 08:51:40 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 21 Jul 2016 08:51:40 +0000 (UTC) To: 23936@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Thu Jul 21 10:51:28 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 1bQ9hK-0003fn-Jq for geb-bug-gnu-emacs@m.gmane.org; Thu, 21 Jul 2016 10:51:14 +0200 Original-Received: from localhost ([::1]:39094 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bQ9hJ-0005vP-LU for geb-bug-gnu-emacs@m.gmane.org; Thu, 21 Jul 2016 04:51:13 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:42123) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bQ9hD-0005v6-D2 for bug-gnu-emacs@gnu.org; Thu, 21 Jul 2016 04:51:08 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bQ9h8-0005ls-B9 for bug-gnu-emacs@gnu.org; Thu, 21 Jul 2016 04:51:06 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:46952) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bQ9h8-0005lo-7A for bug-gnu-emacs@gnu.org; Thu, 21 Jul 2016 04:51:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1bQ9h8-0006qr-27 for bug-gnu-emacs@gnu.org; Thu, 21 Jul 2016 04:51:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Tino Calancha Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 21 Jul 2016 08:51:02 +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: Original-Received: via spool by 23936-submit@debbugs.gnu.org id=B23936.146909105526324 (code B ref 23936); Thu, 21 Jul 2016 08:51:02 +0000 Original-Received: (at 23936) by debbugs.gnu.org; 21 Jul 2016 08:50:55 +0000 Original-Received: from localhost ([127.0.0.1]:59288 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bQ9h1-0006qV-B0 for submit@debbugs.gnu.org; Thu, 21 Jul 2016 04:50:55 -0400 Original-Received: from mail-pa0-f68.google.com ([209.85.220.68]:36478) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bQ9gy-0006qF-V8 for 23936@debbugs.gnu.org; Thu, 21 Jul 2016 04:50:53 -0400 Original-Received: by mail-pa0-f68.google.com with SMTP id ez1so4865028pab.3 for <23936@debbugs.gnu.org>; Thu, 21 Jul 2016 01:50:52 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:date:to:subject:in-reply-to:message-id:references:user-agent :mime-version; bh=nj4+yXF12VcIbIEFQcwRd2NarQO5wc4O16YXIqEYGT4=; b=uEotbMuPcE6Rk1TZHDa5vif6rLk0DImbzfEYrgzrJ87z6LvW39YpS5+OnUdp4utEnr AMF+u3IzcHeLOqBJ5Nil6W8wpmd9o58MSg95q58Vr+HO017E1fFYOZdgBFy7md/7a8qO 6je/AyBTvyEJIqzRKO4Ih0Jwon7sTClJnLzixsygdJaG8SJM1czxd/BdzctTtDr03X4P XRxMSE756MYgcONGYDrSFqPXvsROYU7p1Xr11TOM26Ds5k1jOVAvgfuPVPrkZZiwM6mu rA4ykf8Kmt1/l4AA3cRdN+G1Y045ZhPEuzNHvpUBuITnheSREMRLxgl91YK5Y5ksdl53 d/ng== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:date:to:subject:in-reply-to:message-id :references:user-agent:mime-version; bh=nj4+yXF12VcIbIEFQcwRd2NarQO5wc4O16YXIqEYGT4=; b=blroNgt5afKt2mbjaJpydPRudONOYXD0w1vMEgWuYTYh/51Paof3uCLvKY23NAXZ8V Kj7AWmf0Ol7OScj7Y5WhOPd0UJPv1Qwdq9CE9O8P59tDHKWYQ7+8i8Im5AI9laVVWm3l W/li93117YtZN4n+qJsYAkwG7ww+WJdSeAcrYhwtfnV5PkRgLdoVh9ZRpUReGQVRn12l ETcR+PdILiJbRtWFZ6TljGOf9V+fYbyfP2kAIXszO3Ybcz4xUYFHPLACZNUrTi2efduu nasJ+/fEO2pfz3VcpTRVtKYOAuYgKgpTTAus6dPT781vy7WyScCqxqOxcMtqetdAgRLF V59A== X-Gm-Message-State: ALyK8tJg0d92PezbSiACyzbJQgkOLpPEOJarMRUCD4G+EuUz+2FYr6+jyb4Qr4pKMTi6Ug== X-Received: by 10.66.161.225 with SMTP id xv1mr67441171pab.20.1469091046803; Thu, 21 Jul 2016 01:50:46 -0700 (PDT) Original-Received: from calancha-pc ([103.5.140.156]) by smtp.gmail.com with ESMTPSA id yv9sm10286434pab.0.2016.07.21.01.50.45 for <23936@debbugs.gnu.org> (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 21 Jul 2016 01:50:45 -0700 (PDT) X-Google-Original-From: Tino Calancha X-X-Sender: calancha@calancha-pc In-Reply-To: User-Agent: Alpine 2.20 (DEB 67 2015-01-07) 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:121368 Archived-At: There is another wrong sentence in the doc strings for shell-command[-on-region] The output buffer is not deleted: the code killing that buffer was commented: ;; It is rude to delete a buffer which the command is not using. ;; Don't kill: there might be useful info in the undo-log. ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; >From 33e7bb2c459ffdf918ccbad4693c641d09349178 Mon Sep 17 00:00:00 2001 From: Tino Calancha Date: Thu, 21 Jul 2016 17:35:17 +0900 Subject: [PATCH] Doc string fixes * lisp/simple.el (shell-command, shell-command-on-region): These commands never delete the buffer '*Shell-Command Output*'; update their doc strings (Bug#23936). --- lisp/simple.el | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/lisp/simple.el b/lisp/simple.el index 51c9100..e91b6e0 100644 --- a/lisp/simple.el +++ b/lisp/simple.el @@ -3288,9 +3288,6 @@ shell-command in the current buffer\", a message about the error goes at the end of the output. -If there is no output, or if output is inserted in the current buffer, -then `*Shell Command Output*' is deleted. - If the optional third argument ERROR-BUFFER is non-nil, it is a buffer or buffer name to which to direct the command's standard error output. If it is nil, error output is mingled with regular output. @@ -3535,9 +3532,7 @@ shell-command-on-region The output is available in that buffer in both cases. If there is output and an error, a message about the error -appears at the end of the output. If there is no output, or if -output is inserted in the current buffer, the buffer `*Shell -Command Output*' is deleted. +appears at the end of the output. Optional fourth arg OUTPUT-BUFFER specifies where to put the command's output. If the value is a buffer or buffer name, -- 2.8.1 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;