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#1973: Bug in simple.el (Emacs version 22.2.1) Date: Thu, 22 Jan 2009 10:09:55 -0500 Message-ID: References: <63k9n3fx.fsf@vps203.linuxvps.org> Reply-To: Stefan Monnier , 1973@emacsbugs.donarmstrong.com NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1232637845 4479 80.91.229.12 (22 Jan 2009 15:24:05 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 22 Jan 2009 15:24:05 +0000 (UTC) Cc: bug-gnu-emacs@gnu.org, 1973@emacsbugs.donarmstrong.com To: "Sebastian Tennant" Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Thu Jan 22 16:25:16 2009 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1LQ1QP-0008Ci-No for geb-bug-gnu-emacs@m.gmane.org; Thu, 22 Jan 2009 16:24:58 +0100 Original-Received: from localhost ([127.0.0.1]:36584 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LQ1P7-00047h-Sd for geb-bug-gnu-emacs@m.gmane.org; Thu, 22 Jan 2009 10:23:37 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1LQ1P3-00047S-Mj for bug-gnu-emacs@gnu.org; Thu, 22 Jan 2009 10:23:33 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1LQ1P0-00047G-SX for bug-gnu-emacs@gnu.org; Thu, 22 Jan 2009 10:23:33 -0500 Original-Received: from [199.232.76.173] (port=52722 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LQ1P0-00047D-Pm for bug-gnu-emacs@gnu.org; Thu, 22 Jan 2009 10:23:30 -0500 Original-Received: from rzlab.ucr.edu ([138.23.92.77]:53924) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1LQ1P0-0001H6-B2 for bug-gnu-emacs@gnu.org; Thu, 22 Jan 2009 10:23:30 -0500 Original-Received: from rzlab.ucr.edu (rzlab.ucr.edu [127.0.0.1]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id n0MFNSoC016800; Thu, 22 Jan 2009 07:23:28 -0800 Original-Received: (from debbugs@localhost) by rzlab.ucr.edu (8.13.8/8.13.8/Submit) id n0MFF3vL014518; Thu, 22 Jan 2009 07:15:03 -0800 X-Loop: owner@emacsbugs.donarmstrong.com Resent-From: "Stefan Monnier" Resent-To: bug-submit-list@donarmstrong.com Resent-CC: Emacs Bugs Resent-Date: Thu, 22 Jan 2009 15:15:03 +0000 Resent-Message-ID: Resent-Sender: owner@emacsbugs.donarmstrong.com X-Emacs-PR-Message: followup 1973 X-Emacs-PR-Package: emacs X-Emacs-PR-Keywords: Original-Received: via spool by 1973-submit@emacsbugs.donarmstrong.com id=B1973.123263702414384 (code B ref 1973); Thu, 22 Jan 2009 15:15:03 +0000 Original-Received: (at 1973) by emacsbugs.donarmstrong.com; 22 Jan 2009 15:10:24 +0000 X-Spam-Bayes: score:0.5 Bayes not run. spammytokens:Tokens not available. hammytokens:Tokens not available. Original-Received: from mail.g-wis.com (mail.g-wis.com [204.250.154.18]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id n0MFAGgX013982 for <1973@emacsbugs.donarmstrong.com>; Thu, 22 Jan 2009 07:10:17 -0800 thread-index: Acl8o4TMSeSNbR2mQ7ePnQ+wRXHAtQ== X-Received-From-Address: 69.38.23.210 X-Envelope-From: monnier@iro.umontreal.ca X-Envelope-To: sebyte@smolny.plus.com, bug-gnu-emacs@gnu.org, monnier@iro.umontreal.ca, 1973@emacsbugs.donarmstrong.com Original-Received: from ceviche.home ([69.38.23.210]) by mail.g-wis.com with Microsoft SMTPSVC(6.0.3790.3959); Thu, 22 Jan 2009 07:10:09 -0800 Original-Received: by ceviche.home (Postfix, from userid 20848) id 3E6C6B400C; Thu, 22 Jan 2009 10:09:55 -0500 (EST) Content-Class: urn:content-classes:message Importance: normal Priority: normal X-MimeOLE: Produced By Microsoft MimeOLE V6.00.3790.4325 In-Reply-To: (Sebastian Tennant's messageof "Thu, 22 Jan 2009 08:45:41 +0000") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.60 (gnu/linux) X-OriginalArrivalTime: 22 Jan 2009 15:10:09.0797 (UTC) FILETIME=[844DBB50:01C97CA3] X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 3) Resent-Date: Thu, 22 Jan 2009 10:23:33 -0500 X-BeenThere: bug-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:24388 Archived-At: >>> Asynchronous commands called via shell-command, for example: >>> (shell-command "apt-get update &") >>> fill the buffer *Async Shell Command Output* with Ctrl-Ms, which I'm >>> sure is not what's intended. >> >>> My patch (attached) fixes this by using make-comint-in-buffer, rather >>> than start-process, to call the asynchronous process. >> >> Such a feature would be good, indeed. > Sorry Stefan, I'm not sure what feature it is you are refering to. The feature of interpreting ^M in the output. > There seems to be a bug within shell mode that prevents it from handling > Ctrl-Ms properly. It's not a bug. shell-command just runs a command and gives you the output of the command. Some commands presume the output is displayed by some kind of terminal and will use terminal commands like ^M (or even ANSI color escape sequences), whereas shell-command was not designed for this purpose. >> I'm not sure that just using make-comint-in-buffer is good enough. >> Maybe we should provide a new command instead, along the lines of >> comint-run, or maybe even change comint-run so that it accepts a shell >> command rather than an executable name. > Why? Because I'm not sure in what kinds of circumstances people use shell-command with an "&" at the end. > In any case, I suspect we should extend rather than alter, comint mode > being the basis for dozens of other 'interpreter modes'. `comint-run' is a command (i.e. for interactive use). I do see that it is occasionally misused from Elisp code (which should use make-comint instead), so we should be somewhat careful indeed when changing it. Stefan