emacs-pretest-bug
[Top][All Lists]
Advanced

[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: YAMAMOTO Mitsuharu
Subject: Re: Can't put cursor after wrapped overlay string with `cursor' property
Date: Fri, 02 Jun 2006 17:06:09 +0900
User-agent: Wanderlust/2.14.0 (Africa) SEMI/1.14.6 (Maruoka) FLIM/1.14.6 (Marutamachi) APEL/10.6 Emacs/22.0.50 (sparc-sun-solaris2.8) MULE/5.0 (SAKAKI)

>>>>> 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?

                                     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;
      }
  




reply via email to

[Prev in Thread] Current Thread [Next in Thread]