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

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

Re: Can't display help-echo in overlay string with composition.


From: Kim F. Storm
Subject: Re: Can't display help-echo in overlay string with composition.
Date: Fri, 02 Jun 2006 10:39:20 +0200
User-agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (gnu/linux)

YAMAMOTO Mitsuharu <address@hidden> writes:

>>>>>> On Wed, 31 May 2006 12:13:52 +0900 (JST), YAMAMOTO Mitsuharu 
>>>>>> <address@hidden> said:
>
>> "Arg out of range 0,0" repeatedly occurs when trying to display
>> help-echo string in an overlay string with composition.
>
>>  1. emacs -Q -D
>>  2. (overlay-put (make-overlay 1 1) 'before-string
>>                  (propertize (compose-string "ab") 'help-echo "ab"))
>>  3. Move the mouse pointer to the beginning of buffer.
>
> The following change seems to work for me.  Could someone check if
> this is correct?

Looks like the right thing to do.  Pls. 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
> ***************
> *** 6238,6243 ****
> --- 6238,6245 ----
>     it->position = (STRINGP (it->string)
>                 ? it->current.string_pos
>                 : it->current.pos);
> +   if (STRINGP (it->string))
> +     it->object = it->string;
>     return 1;
>   }

-- 
Kim F. Storm <address@hidden> http://www.cua.dk





reply via email to

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