From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "T. V. Raman" Newsgroups: gmane.emacs.devel Subject: Re: shell-mode: point left in the wrong place after output Date: Fri, 20 Jun 2008 19:43:19 -0700 Message-ID: <18524.27335.743914.168599@gargle.gargle.HOWL> References: <18523.1780.184643.414316@gargle.gargle.HOWL> <18523.9876.731216.495010@gargle.gargle.HOWL> Reply-To: raman@users.sf.net 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 1214016222 4172 80.91.229.12 (21 Jun 2008 02:43:42 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 21 Jun 2008 02:43:42 +0000 (UTC) Cc: raman@users.sf.net, emacs-devel@gnu.org To: monnier@iro.umontreal.ca Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sat Jun 21 04:44:26 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 1K9t5U-0002jq-5L for ged-emacs-devel@m.gmane.org; Sat, 21 Jun 2008 04:44:24 +0200 Original-Received: from localhost ([127.0.0.1]:57461 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1K9t4f-0003J1-6t for ged-emacs-devel@m.gmane.org; Fri, 20 Jun 2008 22:43:33 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1K9t4a-0003Iw-Bt for emacs-devel@gnu.org; Fri, 20 Jun 2008 22:43:28 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1K9t4X-0003Ib-To for emacs-devel@gnu.org; Fri, 20 Jun 2008 22:43:27 -0400 Original-Received: from [199.232.76.173] (port=50339 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1K9t4X-0003IY-OE for emacs-devel@gnu.org; Fri, 20 Jun 2008 22:43:25 -0400 Original-Received: from qmta04.emeryville.ca.mail.comcast.net ([76.96.30.40]:44782) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1K9t4X-0000FC-9v for emacs-devel@gnu.org; Fri, 20 Jun 2008 22:43:25 -0400 Original-Received: from OMTA02.emeryville.ca.mail.comcast.net ([76.96.30.19]) by QMTA04.emeryville.ca.mail.comcast.net with comcast id gBYw1Z0010QkzPwA41Au00; Sat, 21 Jun 2008 02:43:21 +0000 Original-Received: from localhost ([71.202.191.236]) by OMTA02.emeryville.ca.mail.comcast.net with comcast id gSjK1Z00E56Ur8v8NSjLHW; Sat, 21 Jun 2008 02:43:20 +0000 X-Authority-Analysis: v=1.0 c=1 a=4SQFwn16HScA:10 a=iixBNJWoJHsA:10 a=2z1OXlWFAAAA:8 a=bg9MmQfNGqfo2Jpwa78A:9 a=WZZVDXgSitVcRkK2U8x3OMcQnx8A:4 a=5o1NfpFvE1MA:10 a=MSl-tDqOz04A:10 a=bc-At0-sGGwA:10 Original-Received: by localhost (Postfix, from userid 1000) id BE56612A41A8; Fri, 20 Jun 2008 19:43:19 -0700 (PDT) In-Reply-To: X-Mailer: VM 8.1.0-devo-509 under Emacs 23.0.60.5 (i686-pc-linux-gnu) x-attribution: tvr 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:99576 Archived-At: thanks for the tip, I definitely think this is the problem. >>>>> "Stefan" == Stefan Monnier writes: >> I advice comint-output-filter to process the output -- but >> at first check I didn't spot any reason why it should be >> breaking. Stefan> Stefan> The main change is that comint-output-filter does not Stefan> use insert-before-markers any more. So if you use Stefan> `save-excursion' around it, point will now stay in Stefan> front of the insertion. Stefan> Stefan> Stefan> Stefan Stefan> Stefan> >>>>>> "Stefan" == Stefan Monnier >>>>>> writes: >>>> This is using the latest CVS snapshot. Stefan> I don't know what you mean by "CVS snapshot", but Stefan> I'll assume you mean that you recently updated your Stefan> CVS check out. Stefan> >>>> It looks like point gets left at the front of the >>>> inserted outputfrom frm a shell command, rther than at >>>> the end. Stefan> >>>> Test: Stefan> >>>> See output below: echo foo foo Stefan> Stefan> I tried: Stefan> Stefan> emacs -Q M-x shell-mode RET echo foo RET Stefan> Stefan> and it worked just fine, with point ending right Stefan> after the prompt. Can you provide a more precise Stefan> recipe? Stefan> Stefan> Stefan> Stefan Stefan> >> -- > Best Regards, --raman Stefan> Stefan> >> Email: raman@users.sf.net WWW: >> http://emacspeak.sf.net/raman/ AIM: emacspeak GTalk: >> tv.raman.tv@gmail.com PGP: >> http://emacspeak.sf.net/raman/raman-almaden.asc Google: >> tv+raman IRC: irc://irc.freenode.net/#emacs -- Best Regards, --raman Email: raman@users.sf.net WWW: http://emacspeak.sf.net/raman/ AIM: emacspeak GTalk: tv.raman.tv@gmail.com PGP: http://emacspeak.sf.net/raman/raman-almaden.asc Google: tv+raman IRC: irc://irc.freenode.net/#emacs