From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Chong Yidong Newsgroups: gmane.emacs.devel Subject: Re: [raman@users.sf.net: shell-mode: cursor Point loses on long prompts:] Date: Tue, 24 Oct 2006 15:51:46 -0400 Message-ID: <871woxcx0t.fsf@stupidchicken.com> References: NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1161719530 3137 80.91.229.2 (24 Oct 2006 19:52:10 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 24 Oct 2006 19:52:10 +0000 (UTC) Cc: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Oct 24 21:52:03 2006 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1GcSJV-0000c1-O0 for ged-emacs-devel@m.gmane.org; Tue, 24 Oct 2006 21:51:54 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1GcSJV-0001jt-Bb for ged-emacs-devel@m.gmane.org; Tue, 24 Oct 2006 15:51:53 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1GcSJE-0001in-3Q for emacs-devel@gnu.org; Tue, 24 Oct 2006 15:51:36 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1GcSJA-0001gR-C6 for emacs-devel@gnu.org; Tue, 24 Oct 2006 15:51:35 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1GcSJA-0001gO-As for emacs-devel@gnu.org; Tue, 24 Oct 2006 15:51:32 -0400 Original-Received: from [18.19.1.138] (helo=cyd) by monty-python.gnu.org with esmtp (Exim 4.52) id 1GcSJ4-0001Ll-R3; Tue, 24 Oct 2006 15:51:26 -0400 Original-Received: by cyd (Postfix, from userid 1000) id CC67E4E427; Tue, 24 Oct 2006 15:51:46 -0400 (EDT) Original-To: rms@gnu.org In-Reply-To: (Richard Stallman's message of "Tue\, 24 Oct 2006 13\:43\:24 -0400") User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (gnu/linux) 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:61122 Archived-At: Richard Stallman writes: > [I sent this message twice but did not get a response.] I fixed this about two weeks ago. > It sounds like this is a bug in the field handling of line-move. > Would someone please investigate, then respond with the diagnosis? > > I am not sure whether it is better to fix this or leave it alone, > but we should figure out what's wrong before deciding that. > > From: "T. V. Raman" > Subject: shell-mode: cursor Point loses on long prompts: > To: emacs-devel@gnu.org > > I admit this is somewhat pathological --- but I've hit it a > couple of times when in directories that have long names (with > lots of white space chars in the dir name). > (you end up running into more and more of these as you rip CDs to > MP3) > > If you have bash showing the working directory, for instance my > PS1 is > > \t \h \W $ > > > then after executing commands like ls in such a directory, c-p no > longer moves point past the recently displayed prompt. > > Here is a test case, comprised the lines pasted from the shell > buffer, interspersed with comments: > > #cd to /tmp and make a bogus directory there: > mkdir 'a directory with a very long file name ' > 18:27:21 labrador tmp $ cd a\ \ \ \ \ directory\ \ \ \ \ \ \ \ \ with\ \ \ \ \ a\ \ \ \ \ very\ \ \ \ \ long\ \ \ \ \ file\ name\ / > 18:27:28 labrador a directory with a very long file name $ ls > 18:27:39 labrador a directory with a very long file name $ > > #execute ls, after the next prompt is displayed, pressing c-p > leaves point trapped after the prompt. Hitting C-c C-p moves > prompt correctly to the line where ls was executed. > > - -- > 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 > > > _______________________________________________ > Emacs-devel mailing list > Emacs-devel@gnu.org > http://lists.gnu.org/mailman/listinfo/emacs-devel > ---------- > > > > > _______________________________________________ > Emacs-devel mailing list > Emacs-devel@gnu.org > http://lists.gnu.org/mailman/listinfo/emacs-devel