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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: address@hidden: Overlay string not displayed on text with `display'


From: YAMAMOTO Mitsuharu
Subject: Re: address@hidden: Overlay string not displayed on text with `display' property]
Date: Tue, 13 Jun 2006 11:17:21 +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, 12 Jun 2006 11:26:07 +0200, address@hidden (Kim F. Storm) said:

>> So it may be a question of specifically handling before-string and
>> after-string properties at the boundaries of display and
>> composition properties.

Yes, that's exactly what I need.  Maybe I've unconsciously
oversimplified the issue.

> It seems to work fine With the following patch (not trivial, but not
> extremely complex either):

Great!  Thanks for working on this.

There seems to be some problems with this patch.  Besides an apparent
typo (compute_stop_pos), some assertions are violated with the test
case you mentioned:

> ; emacs -Q -D
> (setq overlay (make-overlay 1 3))
> (overlay-put overlay 'before-string (propertize "BE" 'face 'bold))
> (overlay-put overlay 'after-string (propertize "AF" 'display 
>                        (propertize "XY" 'face 'underline)))
> (put-text-property 1 3 'display "DISP")

And crashed if the last one was changed to (put-text-property 2 3
'display "DISP"), though the case that overlay strings are not at
boundaries of display property was not what I intended.

                                     YAMAMOTO Mitsuharu
                                address@hidden




reply via email to

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