From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.bugs Subject: bug#22679: 25.0.91; ibuffer-do-shell-command-pipe truncate output Date: Wed, 13 Jul 2016 11:27:32 -0400 Message-ID: References: <7oa66k9es.fsf@fencepost.gnu.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1468423797 9391 80.91.229.3 (13 Jul 2016 15:29:57 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 13 Jul 2016 15:29:57 +0000 (UTC) Cc: Tino Calancha , 22679@debbugs.gnu.org To: Glenn Morris Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Wed Jul 13 17:29:46 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 1bNM6a-0000Wu-9I for geb-bug-gnu-emacs@m.gmane.org; Wed, 13 Jul 2016 17:29:44 +0200 Original-Received: from localhost ([::1]:48413 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bNM6W-00026X-Cw for geb-bug-gnu-emacs@m.gmane.org; Wed, 13 Jul 2016 11:29:40 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:36314) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bNM51-00082d-3o for bug-gnu-emacs@gnu.org; Wed, 13 Jul 2016 11:28:08 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bNM4w-0008Ml-LW for bug-gnu-emacs@gnu.org; Wed, 13 Jul 2016 11:28:05 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:37656) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bNM4w-0008Mf-I1 for bug-gnu-emacs@gnu.org; Wed, 13 Jul 2016 11:28:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1bNM4w-0004V3-8H for bug-gnu-emacs@gnu.org; Wed, 13 Jul 2016 11:28:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Stefan Monnier Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 13 Jul 2016 15:28:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 22679 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch Original-Received: via spool by 22679-submit@debbugs.gnu.org id=B22679.146842365917267 (code B ref 22679); Wed, 13 Jul 2016 15:28:02 +0000 Original-Received: (at 22679) by debbugs.gnu.org; 13 Jul 2016 15:27:39 +0000 Original-Received: from localhost ([127.0.0.1]:49993 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bNM4Z-0004UR-ER for submit@debbugs.gnu.org; Wed, 13 Jul 2016 11:27:39 -0400 Original-Received: from ironport2-out.teksavvy.com ([206.248.154.181]:57190) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bNM4X-0004UE-Ug for 22679@debbugs.gnu.org; Wed, 13 Jul 2016 11:27:38 -0400 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: A0A2FgA731xV/3mcpUVcgxCEAoVVu0CEfoJNBAICgTw6EwEBAQEBAQGBCkEFg10BAQMBViMFCwsOJhIUGA0kiDcIzyMBAQEBAQEEAQEBAR6LOoUFB4QtBbM/gUUjhBQigngBAQE X-IPAS-Result: A0A2FgA731xV/3mcpUVcgxCEAoVVu0CEfoJNBAICgTw6EwEBAQEBAQGBCkEFg10BAQMBViMFCwsOJhIUGA0kiDcIzyMBAQEBAQEEAQEBAR6LOoUFB4QtBbM/gUUjhBQigngBAQE X-IronPort-AV: E=Sophos;i="5.13,465,1427774400"; d="scan'208";a="247769208" Original-Received: from 69-165-156-121.dsl.teksavvy.com (HELO pastel.home) ([69.165.156.121]) by ironport2-out.teksavvy.com with ESMTP; 13 Jul 2016 11:27:32 -0400 Original-Received: by pastel.home (Postfix, from userid 20848) id 16ECE64CB1; Wed, 13 Jul 2016 11:27:32 -0400 (EDT) In-Reply-To: <7oa66k9es.fsf@fencepost.gnu.org> (Glenn Morris's message of "Sat, 09 Jul 2016 13:28:59 -0400") 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:121009 Archived-At: > You could ask on emacs-devel (though that is often unproductive). > Frankly my own preference would be to change the function so that it > does not erase the output buffer, and change the callers instead; but > that may be totally unfeasible. shell-command is designed for interactive use. In 90% of the cases, Elisp code that uses shell-command would be just as well, if not better, served by start/call-process. Maybe the better change is to create a new function (partly extracted from shell-command) which would be halfway between shell-command and start-process: i.e. designed for use from Elisp, but specifically tailored to running shell code rather than some other executable. Then use that function in shell-command and ibuffer-do-shell-command-pipe. >> Of course the priority is to make the command works as it should. >> If i need to fix this i think i would find less resistance if my patch >> just modify the offending command, possibly with an ugly code. If the new function is well designed, the new ibuffer-do-shell-command-pipe code shouldn't be ugly. Stefan