From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Sebastian Tennant Newsgroups: gmane.emacs.bugs Subject: bug#1973: Bug in simple.el (Emacs version 22.2.1) Date: Thu, 22 Jan 2009 18:07:03 +0000 Message-ID: References: <63k9n3fx.fsf@vps203.linuxvps.org> Reply-To: Sebastian Tennant , 1973@emacsbugs.donarmstrong.com NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1232648653 12699 80.91.229.12 (22 Jan 2009 18:24:13 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 22 Jan 2009 18:24:13 +0000 (UTC) To: bug-gnu-emacs@gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Thu Jan 22 19:25:24 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 1LQ4Ea-0000Qe-BJ for geb-bug-gnu-emacs@m.gmane.org; Thu, 22 Jan 2009 19:24:56 +0100 Original-Received: from localhost ([127.0.0.1]:55672 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LQ4DI-0002Zq-Uj for geb-bug-gnu-emacs@m.gmane.org; Thu, 22 Jan 2009 13:23:36 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1LQ4DF-0002Zl-Hb for bug-gnu-emacs@gnu.org; Thu, 22 Jan 2009 13:23:33 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1LQ4DD-0002ZO-5r for bug-gnu-emacs@gnu.org; Thu, 22 Jan 2009 13:23:32 -0500 Original-Received: from [199.232.76.173] (port=34832 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LQ4DC-0002ZK-Rf for bug-gnu-emacs@gnu.org; Thu, 22 Jan 2009 13:23:30 -0500 Original-Received: from rzlab.ucr.edu ([138.23.92.77]:47767) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1LQ4DC-0006nM-BU for bug-gnu-emacs@gnu.org; Thu, 22 Jan 2009 13: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 n0MINSgw029432; Thu, 22 Jan 2009 10:23:28 -0800 Original-Received: (from debbugs@localhost) by rzlab.ucr.edu (8.13.8/8.13.8/Submit) id n0MIF3OX027199; Thu, 22 Jan 2009 10:15:03 -0800 X-Loop: owner@emacsbugs.donarmstrong.com Resent-From: Sebastian Tennant Original-Sender: news Resent-To: bug-submit-list@donarmstrong.com Resent-CC: Emacs Bugs Resent-Date: Thu, 22 Jan 2009 18: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 submit@emacsbugs.donarmstrong.com id=B.123264754225880 (code B ref -1); Thu, 22 Jan 2009 18:15:03 +0000 Original-Received: (at submit) by emacsbugs.donarmstrong.com; 22 Jan 2009 18:05:42 +0000 X-Spam-Bayes: score:0.5 Bayes not run. spammytokens:Tokens not available. hammytokens:Tokens not available. Original-Received: from lists.gnu.org (lists.gnu.org [199.232.76.165]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id n0MI5VgM025874 for ; Thu, 22 Jan 2009 10:05:34 -0800 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1LQ3vm-0006Yh-SX for bug-gnu-emacs@gnu.org; Thu, 22 Jan 2009 13:05:30 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1LQ3vl-0006W8-4Z for bug-gnu-emacs@gnu.org; Thu, 22 Jan 2009 13:05:30 -0500 Original-Received: from [199.232.76.173] (port=54596 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LQ3vk-0006Vn-Vu for bug-gnu-emacs@gnu.org; Thu, 22 Jan 2009 13:05:29 -0500 Original-Received: from main.gmane.org ([80.91.229.2]:39695 helo=ciao.gmane.org) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1LQ3vj-0003tC-Ro for bug-gnu-emacs@gnu.org; Thu, 22 Jan 2009 13:05:28 -0500 Original-Received: from list by ciao.gmane.org with local (Exim 4.43) id 1LQ3vi-0007a2-NP for bug-gnu-emacs@gnu.org; Thu, 22 Jan 2009 18:05:26 +0000 Original-Received: from vps203.linuxvps.org ([91.186.7.203]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 22 Jan 2009 18:05:26 +0000 Original-Received: from sebyte by vps203.linuxvps.org with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 22 Jan 2009 18:05:26 +0000 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 47 Original-X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: vps203.linuxvps.org User-Agent: Gnus/5.110011 (No Gnus v0.11) Emacs/22.2 (gnu/linux) Cancel-Lock: sha1:6KQBtPXrpajBNgn5wu8eiMEVqe0= X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6, seldom 2.4 (older, 4) X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 3) Resent-Date: Thu, 22 Jan 2009 13:23:32 -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:24389 Archived-At: Quoth "Stefan Monnier" : >> 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. So the shell mode used in interactive shells (started with M-x shell) is enhanced somehow to handle ^Ms? Note that Kevin Rodgers does not observe the same behaviour: http://article.gmane.org/gmane.emacs.bugs/24348 >>> 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. I use it for commands that take a while to complete, so that I can continue doing other things and/or watch what's going on. I expect the buffer to behave/look/feel as much like an ordinary shell as possible. Perhaps this is not typical. I don't know. >> 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. Noted (and agreed) Sebastian -- Emacs' AlsaPlayer - Music Without Jolts Lightweight, full-featured and mindful of your idyllic happiness. http://home.gna.org/eap