[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Can't put cursor after wrapped overlay string with `cursor' property
From: |
Kim F. Storm |
Subject: |
Re: Can't put cursor after wrapped overlay string with `cursor' property |
Date: |
Fri, 02 Jun 2006 11:10:52 +0200 |
User-agent: |
Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (gnu/linux) |
YAMAMOTO Mitsuharu <address@hidden> writes:
>>>>>> On Mon, 29 May 2006 09:54:24 +0900, YAMAMOTO Mitsuharu <address@hidden>
>>>>>> said:
>
>> But now I see some strange behavior if the overlay is placed at the
>> end of line.
>
>> emacs -Q -D
>> (setq overlay (make-overlay 1 1))
>> (setq str (make-string 100 ?a))
>> (overlay-put overlay 'before-string str)
>> M-<
>> RET
>> C-p --> The cursor at the previous position doesn't get erased.
>> C-l --> The cursor is displayed at the vertical center position.
>
> The following change seems to work for me. Could someone check if
> this is correct?
Yes, this is a good change. Please install.
Thanks for debugging this.
>
> YAMAMOTO Mitsuharu
> address@hidden
>
> Index: src/xdisp.c
> ===================================================================
> RCS file: /cvsroot/emacs/emacs/src/xdisp.c,v
> retrieving revision 1.1101
> diff -c -r1.1101 xdisp.c
> *** src/xdisp.c 28 May 2006 20:19:07 -0000 1.1101
> --- src/xdisp.c 2 Jun 2006 08:00:17 -0000
> ***************
> *** 11777,11783 ****
>
> /* If we reached the end of the line, and end was from a string,
> cursor is not on this line. */
> ! if (glyph == end)
> return 0;
> }
>
> --- 11779,11785 ----
>
> /* If we reached the end of the line, and end was from a string,
> cursor is not on this line. */
> ! if (glyph == end && row->continued_p)
> return 0;
> }
--
Kim F. Storm <address@hidden> http://www.cua.dk