[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: address@hidden: shell-mode: cursor Point loses on long prompts:]
From: |
Chong Yidong |
Subject: |
Re: address@hidden: shell-mode: cursor Point loses on long prompts:] |
Date: |
Wed, 18 Oct 2006 00:59:30 -0400 |
User-agent: |
Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (gnu/linux) |
Richard Stallman <address@hidden> 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.