From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stephen Berman Newsgroups: gmane.emacs.devel Subject: Re: shell-mode: point left in the wrong place after output Date: Fri, 20 Jun 2008 10:15:33 +0200 Message-ID: <878wx0plne.fsf@escher.local.home> References: <18523.1780.184643.414316@gargle.gargle.HOWL> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1213949779 21910 80.91.229.12 (20 Jun 2008 08:16:19 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 20 Jun 2008 08:16:19 +0000 (UTC) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Jun 20 10:17:03 2008 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.50) id 1K9bne-0005yJ-Ax for ged-emacs-devel@m.gmane.org; Fri, 20 Jun 2008 10:16:50 +0200 Original-Received: from localhost ([127.0.0.1]:39740 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1K9bmp-0004y3-5O for ged-emacs-devel@m.gmane.org; Fri, 20 Jun 2008 04:15:59 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1K9bmh-0004vY-1d for emacs-devel@gnu.org; Fri, 20 Jun 2008 04:15:51 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1K9bme-0004to-Dm for emacs-devel@gnu.org; Fri, 20 Jun 2008 04:15:50 -0400 Original-Received: from [199.232.76.173] (port=41325 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1K9bme-0004si-7v for emacs-devel@gnu.org; Fri, 20 Jun 2008 04:15:48 -0400 Original-Received: from mx20.gnu.org ([199.232.41.8]:39547) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1K9bmc-0005nb-Qx for emacs-devel@gnu.org; Fri, 20 Jun 2008 04:15:47 -0400 Original-Received: from main.gmane.org ([80.91.229.2] helo=ciao.gmane.org) by mx20.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1K9bma-0002qR-D5 for emacs-devel@gnu.org; Fri, 20 Jun 2008 04:15:44 -0400 Original-Received: from list by ciao.gmane.org with local (Exim 4.43) id 1K9bmX-0000mc-Kc for emacs-devel@gnu.org; Fri, 20 Jun 2008 08:15:41 +0000 Original-Received: from i5387e942.versanet.de ([83.135.233.66]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 20 Jun 2008 08:15:41 +0000 Original-Received: from stephen.berman by i5387e942.versanet.de with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 20 Jun 2008 08:15:41 +0000 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 31 Original-X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: i5387e942.versanet.de User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.60 (gnu/linux) X-detected-kernel: by mx20.gnu.org: Linux 2.6, seldom 2.4 (older, 4) X-detected-kernel: by monty-python.gnu.org: Genre and OS details not recognized. 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:99509 Archived-At: On Thu, 19 Jun 2008 22:06:53 -0400 Stefan Monnier wrote: >> This is using the latest CVS snapshot. > > I don't know what you mean by "CVS snapshot", but I'll assume you mean > that you recently updated your CVS check out. > >> It looks like point gets left at the front of the inserted >> outputfrom frm a shell command, rther than at the end. > >> Test: > >> See output below: >> echo foo >> foo > > I tried: > > emacs -Q > M-x shell-mode RET > echo foo RET > > and it worked just fine, with point ending right after the prompt. > Can you provide a more precise recipe? It happens with `C-u M-! echo foo'. But IIUC this is supposed to happen: in shell-command the mark is set before the output and after the output is inserted point returns to the mark. I suppose this is to facilitate editing the shell command output? Steve Berman