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:52:54 +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 1469091265 9084 80.91.229.3 (21 Jul 2016 08:54:25 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 21 Jul 2016 08:54:25 +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:54: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 1bQ9kD-0005FI-LM for geb-bug-gnu-emacs@m.gmane.org; Thu, 21 Jul 2016 10:54:13 +0200 Original-Received: from localhost ([::1]:39096 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bQ9kC-00069X-Mw for geb-bug-gnu-emacs@m.gmane.org; Thu, 21 Jul 2016 04:54:12 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:42632) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bQ9k6-00069H-JU for bug-gnu-emacs@gnu.org; Thu, 21 Jul 2016 04:54:07 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bQ9k2-0006QI-JA for bug-gnu-emacs@gnu.org; Thu, 21 Jul 2016 04:54:06 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:46956) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bQ9k2-0006QD-FQ for bug-gnu-emacs@gnu.org; Thu, 21 Jul 2016 04:54:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1bQ9k2-0006v8-7w for bug-gnu-emacs@gnu.org; Thu, 21 Jul 2016 04:54:02 -0400 X-Loop: help-debbugs@gnu.org In-Reply-To: Resent-From: Tino Calancha Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 21 Jul 2016 08:54: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.146909118426528 (code B ref 23936); Thu, 21 Jul 2016 08:54:02 +0000 Original-Received: (at 23936) by debbugs.gnu.org; 21 Jul 2016 08:53:04 +0000 Original-Received: from localhost ([127.0.0.1]:59293 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bQ9j5-0006to-QT for submit@debbugs.gnu.org; Thu, 21 Jul 2016 04:53:03 -0400 Original-Received: from mail-pa0-f67.google.com ([209.85.220.67]:33834) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bQ9j4-0006tM-R5 for 23936@debbugs.gnu.org; Thu, 21 Jul 2016 04:53:03 -0400 Original-Received: by mail-pa0-f67.google.com with SMTP id hh10so4907589pac.1 for <23936@debbugs.gnu.org>; Thu, 21 Jul 2016 01:53:02 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:date:to:subject:message-id:user-agent:mime-version; bh=nj4+yXF12VcIbIEFQcwRd2NarQO5wc4O16YXIqEYGT4=; b=LMe9FO9gJ6bKVTrzYWidLA+COWZNbctnKiGoUtiq5V03ctqEtCyxGBZpKl9XePVhoA VL6I9EpDQVzJDAu+EeV3OTbTDy2S1UoZewe+WiweZIyR67Bfu+3WJgr9o7AwGx8H+8yP qTmlixOKuM09ElaM/ylo1ex6acQYGmm84/47on0L0IrmQw9DDmowZfF/gkhpSZzpiF2F mHiCebCEDXyIHbQ66aaHpMrypCaJmHr4JlHxgH7cDKkqecqDb8XU2I4wl4G0BJjSUoES Ut9NILj7Sh0NJ4ThjPpy/46Vu0JGDKuOatGbjSZbDYkG2W/TT0usO5zFyP3gTQ8xh3h+ lEIw== 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:message-id:user-agent :mime-version; bh=nj4+yXF12VcIbIEFQcwRd2NarQO5wc4O16YXIqEYGT4=; b=Uu4LBkKRwbHQ+UGpnvHCOXXvJddqtQ6IqMisn8ko6otjwHbpYDyhBkImZquuKt0NlU 1Zg6JWcZ3ptGWcxwXm3k0qORDdu44zjkK9Ti0dVySIAy3w+HKkeCyFBaLQEdp1JNO+si lhoLGoQut8XzCSYwICf4LYuhcuyzqjXwAiiUFppVBgvqLCoXEh+Fk88u5car5dtEBo8a dqs22h73ox0YJroNBPj1r6LvjW/7oqeefsvzWI3bIV2/nxkwZQp/N4a/xeujHxlyUnE5 Kkq6APzjDUsgM4qnqYtI6DaozFxLOgKtvWWN5svDP8h8G3d3Wb2mYUsSjwMSV9ey2sQM q4uQ== X-Gm-Message-State: ALyK8tKBxvQp/WZWqWz3pnlEgpQxqB+qOiQZPY938UhnCCQE0Crxv2LQQXk45CjCc4+I9Q== X-Received: by 10.66.253.101 with SMTP id zz5mr12559055pac.32.1469091177164; Thu, 21 Jul 2016 01:52:57 -0700 (PDT) Original-Received: from calancha-pc ([103.5.140.156]) by smtp.gmail.com with ESMTPSA id l128sm4905309pfl.21.2016.07.21.01.52.55 for <23936@debbugs.gnu.org> (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 21 Jul 2016 01:52:56 -0700 (PDT) X-Google-Original-From: Tino Calancha X-X-Sender: calancha@calancha-pc 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:121369 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 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;