From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Leo Newsgroups: gmane.emacs.devel Subject: `shell-command-on-region' behaviour changed Date: Tue, 06 Apr 2010 14:50:35 +0100 Organization: University of Cambridge Message-ID: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: dough.gmane.org 1270561930 4492 80.91.229.12 (6 Apr 2010 13:52:10 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Tue, 6 Apr 2010 13:52:10 +0000 (UTC) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Apr 06 15:52:08 2010 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1Nz9CJ-0001rG-U6 for ged-emacs-devel@m.gmane.org; Tue, 06 Apr 2010 15:52:08 +0200 Original-Received: from localhost ([127.0.0.1]:35241 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Nz9CJ-0004kk-DC for ged-emacs-devel@m.gmane.org; Tue, 06 Apr 2010 09:52:07 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Nz9B6-0002yi-4b for emacs-devel@gnu.org; Tue, 06 Apr 2010 09:50:52 -0400 Original-Received: from [140.186.70.92] (port=53632 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Nz9B4-0002w7-HN for emacs-devel@gnu.org; Tue, 06 Apr 2010 09:50:51 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1Nz9B3-0001GI-8O for emacs-devel@gnu.org; Tue, 06 Apr 2010 09:50:50 -0400 Original-Received: from lo.gmane.org ([80.91.229.12]:37550) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Nz9B2-0001G5-VQ for emacs-devel@gnu.org; Tue, 06 Apr 2010 09:50:49 -0400 Original-Received: from list by lo.gmane.org with local (Exim 4.69) (envelope-from ) id 1Nz9Az-00013e-Pk for emacs-devel@gnu.org; Tue, 06 Apr 2010 15:50:45 +0200 Original-Received: from smaug.linux.pwf.cam.ac.uk ([193.60.95.72]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 06 Apr 2010 15:50:45 +0200 Original-Received: from sdl.web by smaug.linux.pwf.cam.ac.uk with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 06 Apr 2010 15:50:45 +0200 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 28 Original-X-Complaints-To: usenet@dough.gmane.org X-Gmane-NNTP-Posting-Host: smaug.linux.pwf.cam.ac.uk User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.60 (gnu/linux) Cancel-Lock: sha1:TeHMLmqYEUf5lDBIceLOc/aU/mw= X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:123263 Archived-At: Hello all, I have noticed blank *Shell Command Output* buffer appears frequently for quite a while. I keep deleting it since it appears in almost every buffer switching in ido. This is due to shell-command-on-region no longer respects its well-documented and established behaviour of deleting that output buffer when there's no output. The document still says so by the way. I think the documented behaviour is better. `shell-command-on-region' and `shell-command' have more noninteractive uses than interactive ones. Many emacs packages authors rely on this behaviour by ignoring the output-buffer arg to shell-command. Due to this change packages like dired (its dired-do-shell-command) starts leaving a blank buffer. And the doc string already says *Shell Command Output* is shared if output buffer is unspecified. I am unclear about what use case the changed behaviour tries to cover. But the change will be better if it only affects non-programming use of shell-command/shell-command-on-region, i.e. by using a different output-buffer for interactive use. I only use M-! or M-| for simple shell scripting and I am only interested in the output for that moment at least for 99% of the cases. Leo