Re: Can't display help-echo in overlay string with composition.
On Wed, 31 May 2006 12:13:52 +0900 (JST), YAMAMOTO Mitsuharu [EMAIL PROTECTED] 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 [EMAIL PROTECTED] 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 - 1.1101 --- src/xdisp.c 2 Jun 2006 08:00:17 - *** *** 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; } ___ emacs-pretest-bug mailing list emacs-pretest-bug@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-pretest-bug
Re: Can't display help-echo in overlay string with composition.
YAMAMOTO Mitsuharu [EMAIL PROTECTED] writes: On Wed, 31 May 2006 12:13:52 +0900 (JST), YAMAMOTO Mitsuharu [EMAIL PROTECTED] 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 [EMAIL PROTECTED] 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 - 1.1101 --- src/xdisp.c 2 Jun 2006 08:00:17 - *** *** 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 [EMAIL PROTECTED] http://www.cua.dk ___ emacs-pretest-bug mailing list emacs-pretest-bug@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-pretest-bug
Can't display help-echo in overlay string with composition.
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. YAMAMOTO Mitsuharu [EMAIL PROTECTED] In GNU Emacs 22.0.50.1 (sparc-sun-solaris2.8, X toolkit, Xaw3d scroll bars) of 2006-05-31 on church X server distributor `ATT Laboratories Cambridge', version 11.0.3332 configured using `configure '--x-libraries=/usr/local/lib' 'CFLAGS=-g -O2 -mv8 -DSYNC_INPUT'' Important settings: value of $LC_ALL: nil value of $LC_COLLATE: nil value of $LC_CTYPE: nil value of $LC_MESSAGES: nil value of $LC_MONETARY: nil value of $LC_NUMERIC: nil value of $LC_TIME: nil value of $LANG: ja locale-coding-system: japanese-iso-8bit default-enable-multibyte-characters: t Major mode: Lisp Interaction Minor modes in effect: tooltip-mode: t tool-bar-mode: t mouse-wheel-mode: t menu-bar-mode: t file-name-shadow-mode: t global-font-lock-mode: t font-lock-mode: t blink-cursor-mode: t unify-8859-on-encoding-mode: t utf-translate-cjk-mode: t auto-compression-mode: t line-number-mode: t ___ emacs-pretest-bug mailing list emacs-pretest-bug@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-pretest-bug