From xemacs-m  Wed Mar 26 16:28:07 1997
Received: from altair.xemacs.org (steve@xemacs.miranova.com [206.190.83.19])
	by xemacs.org (8.8.5/8.8.5) with ESMTP id QAA05655
	for <xemacs-beta@xemacs.org>; Wed, 26 Mar 1997 16:28:06 -0600 (CST)
Received: (from steve@localhost)
	by altair.xemacs.org (8.8.5/8.8.5) id OAA07724;
	Wed, 26 Mar 1997 14:39:32 -0800
Mail-Copies-To: never
To: xemacs-beta@xemacs.org
Subject: Re: canna-use-color (was Re: error with 20.1)
References: <199703251655.IAA15026@mharnois.workgroup.net> <m2u3lzml5d.fsf@altair.xemacs.org> <87sp1j1q3u.fsf_-_@sbt.net> <ryslo7bnl7p.fsf@skywalk.jsys.co.jp>
X-Url: http://www.miranova.com/%7Esteve/
X-Face: #!T9!#9s-3o8)*uHlX{Ug[xW7E7Wr!*L46-OxqMu\xz23v|R9q}lH?cRS{rCNe^'[`^sr5"
 f8*@r4ipO6Jl!:Ccq<xoV[Qz2u8<8-+Vwf2gzJ44lf_/y9OaQ`@#Q65{U4/TC)i2`~/M&QI$X>p:9I
 OSS'2{-)-4wBnVeg0S\O4Al@)uC[pD|+
X-Attribution: sb
From: Steven L Baur <steve@miranova.com>
In-Reply-To: Kazuyuki IENAGA's message of 26 Mar 1997 16:52:58 +0900
Mime-Version: 1.0 (generated by tm-edit 7.106)
Content-Type: text/plain; charset=US-ASCII
Date: 26 Mar 1997 14:39:29 -0800
Message-ID: <m24tdyi8gu.fsf@altair.xemacs.org>
Lines: 31
X-Mailer: Gnus v5.4.37/XEmacs 20.1(beta10)

Kazuyuki IENAGA writes:

> The x-get-resource problem could be solved by applying this patch, but 
> there's another problem in src/extents.c.

> lisp/prim/overlay.el calls make-extent in src/extents.c and when I
> convert Japanese-Hiragana to Kanji, XEmacs reports:

> Signaling: (args-out-of-range #<buffer "*scratch*"> 2 11)
>   make-extent(2 11 #<buffer "*scratch*">)
>   make-overlay(2 11 nil t)
>   canna:henkan-attr-on(2 11)
                           ^^
>   canna:insert-preedit()
>   canna:display-candidates(0)
>   canna:functional-insert-command2(?\  1)
>   canna-functional-insert-command(1)
>   call-interactively(canna-functional-insert-command)

Actually, I think the problem is in the undocumented variable
canna-henkan-revlen (the source of the marked 11 above).  As far as I
can tell, it is counting the length of a string of Japanese text in
bytes of internal storage and the function canna:insert-preedit is
using this number as a buffer position.  This is guaranteed to lose in 
XEmacs.

 ...
Thanks for the patch, I applied it to 20.1-b10.
-- 
steve@miranova.com baur
Unsolicited commercial e-mail will be billed at $250/message.

