From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.devel Subject: Re: shell-mode: point left in the wrong place after output Date: Fri, 20 Jun 2008 09:55:35 -0400 Message-ID: References: <18523.1780.184643.414316@gargle.gargle.HOWL> <18523.9876.731216.495010@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 1213970165 27963 80.91.229.12 (20 Jun 2008 13:56:05 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 20 Jun 2008 13:56:05 +0000 (UTC) Cc: emacs-devel@gnu.org To: raman@users.sf.net Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Jun 20 15:56:46 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 1K9h6S-00082f-TC for ged-emacs-devel@m.gmane.org; Fri, 20 Jun 2008 15:56:37 +0200 Original-Received: from localhost ([127.0.0.1]:60163 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1K9h5e-0005UB-5o for ged-emacs-devel@m.gmane.org; Fri, 20 Jun 2008 09:55:46 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1K9h5Z-0005U6-KN for emacs-devel@gnu.org; Fri, 20 Jun 2008 09:55:41 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1K9h5W-0005Tu-2M for emacs-devel@gnu.org; Fri, 20 Jun 2008 09:55:40 -0400 Original-Received: from [199.232.76.173] (port=50541 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1K9h5V-0005Tr-Uc for emacs-devel@gnu.org; Fri, 20 Jun 2008 09:55:37 -0400 Original-Received: from ironport2-out.pppoe.ca ([206.248.154.182]:3721 helo=ironport2-out.teksavvy.com) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1K9h5V-0001TZ-Kx for emacs-devel@gnu.org; Fri, 20 Jun 2008 09:55:37 -0400 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AicFANBTW0jO+KWv/2dsb2JhbACBW64p X-IronPort-AV: E=Sophos;i="4.27,679,1204520400"; d="scan'208";a="23011945" Original-Received: from smtp.pppoe.ca (HELO smtp.teksavvy.com) ([65.39.196.238]) by ironport2-out.teksavvy.com with ESMTP; 20 Jun 2008 09:55:36 -0400 Original-Received: from pastel.home ([206.248.165.175]) by smtp.teksavvy.com (Internet Mail Server v1.0) with ESMTP id ATX39036; Fri, 20 Jun 2008 09:55:36 -0400 Original-Received: by pastel.home (Postfix, from userid 20848) id B6A017F05; Fri, 20 Jun 2008 09:55:35 -0400 (EDT) In-Reply-To: <18523.9876.731216.495010@gargle.gargle.HOWL> (T. V. Raman's message of "Thu, 19 Jun 2008 20:40:04 -0700") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.60 (gnu/linux) 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:99529 Archived-At: > I advice comint-output-filter to process the output -- but at > first check I didn't spot any reason why it should be breaking. The main change is that comint-output-filter does not use insert-before-markers any more. So if you use `save-excursion' around it, point will now stay in front of the insertion. 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 > -- > 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