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: Wed, 18 Oct 2006 00:59:30 -0400 Message-ID: <87pscq43t9.fsf@furball.mit.edu> References: NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1161147941 16586 80.91.229.2 (18 Oct 2006 05:05:41 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Wed, 18 Oct 2006 05:05:41 +0000 (UTC) Cc: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Oct 18 07:05:39 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 1Ga3cV-0003Sg-Cc for ged-emacs-devel@m.gmane.org; Wed, 18 Oct 2006 07:05:36 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Ga3cU-0003kq-8v for ged-emacs-devel@m.gmane.org; Wed, 18 Oct 2006 01:05:34 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Ga3Wz-0008VM-Qx for emacs-devel@gnu.org; Wed, 18 Oct 2006 00:59:54 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Ga3Wx-0008TH-Sg for emacs-devel@gnu.org; Wed, 18 Oct 2006 00:59:52 -0400 Original-Received: from [18.72.1.2] (helo=south-station-annex.mit.edu) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA:32) (Exim 4.52) id 1Ga3Ww-0002ao-Dm; Wed, 18 Oct 2006 00:59:51 -0400 Original-Received: from grand-central-station.mit.edu (GRAND-CENTRAL-STATION.MIT.EDU [18.7.21.82]) by south-station-annex.mit.edu (8.13.6/8.9.2) with ESMTP id k9I4xmNL022360; Wed, 18 Oct 2006 00:59:48 -0400 (EDT) Original-Received: from outgoing-legacy.mit.edu (OUTGOING-LEGACY.MIT.EDU [18.7.22.104]) by grand-central-station.mit.edu (8.13.6/8.9.2) with ESMTP id k9I4xmGQ001763; Wed, 18 Oct 2006 00:59:48 -0400 (EDT) Original-Received: from furball.mit.edu (SYDNEYPACIFIC-FIVE.MIT.EDU [18.95.5.5]) ) by outgoing-legacy.mit.edu (8.13.6/8.12.4) with ESMTP id k9I4xVxK007895; Wed, 18 Oct 2006 00:59:31 -0400 (EDT) Original-Received: from cyd by furball.mit.edu with local (Exim 3.36 #1 (Debian)) id 1Ga3Wc-0000mp-00; Wed, 18 Oct 2006 00:59:30 -0400 Original-To: rms@gnu.org In-Reply-To: (Richard Stallman's message of "Tue\, 10 Oct 2006 12\:47\:19 -0400") User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (gnu/linux) X-Spam-Score: 1.217 X-Scanned-By: MIMEDefang 2.42 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:60860 Archived-At: Richard Stallman writes: > It sounds like this is a bug in the field handling of line-move. > Would someone please investigate, then respond with the diagnosis? The trouble is that line-move-1 calls `beginning-of-line', then (vertical-motion -1). On field on a continued line, this doesn't move far enough, and we return to the original position when trying to return to the old column. I installed a hack to work around this. > 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.