[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Can't display help-echo in overlay string with composition.
From: |
YAMAMOTO Mitsuharu |
Subject: |
Re: Can't display help-echo in overlay string with composition. |
Date: |
Fri, 02 Jun 2006 17:08:11 +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 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?
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;
}
- Re: Can't display help-echo in overlay string with composition.,
YAMAMOTO Mitsuharu <=