From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: YAMAMOTO Mitsuharu Newsgroups: gmane.emacs.devel Subject: Re: problems on inline input on Mac Date: Fri, 28 Jul 2006 14:19:03 +0900 Organization: Faculty of Science, Chiba University Message-ID: References: <20060728.125820.34684979.kazu@iij.ad.jp> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 (generated by SEMI 1.14.6 - "Maruoka") Content-Type: text/plain; charset=ISO-2022-JP X-Trace: sea.gmane.org 1154063966 19066 80.91.229.2 (28 Jul 2006 05:19:26 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Fri, 28 Jul 2006 05:19:26 +0000 (UTC) Cc: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Jul 28 07:19:24 2006 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1G6Kkt-0004DK-51 for ged-emacs-devel@m.gmane.org; Fri, 28 Jul 2006 07:19:23 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1G6Kks-0006Zg-Hh for ged-emacs-devel@m.gmane.org; Fri, 28 Jul 2006 01:19:22 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1G6Kke-0006WS-Oz for emacs-devel@gnu.org; Fri, 28 Jul 2006 01:19:08 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1G6Kkc-0006W7-Mk for emacs-devel@gnu.org; Fri, 28 Jul 2006 01:19:07 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1G6Kkc-0006W4-Ds for emacs-devel@gnu.org; Fri, 28 Jul 2006 01:19:06 -0400 Original-Received: from [133.82.132.2] (helo=mathmail.math.s.chiba-u.ac.jp) by monty-python.gnu.org with esmtp (Exim 4.52) id 1G6KmX-0003Al-25 for emacs-devel@gnu.org; Fri, 28 Jul 2006 01:21:05 -0400 Original-Received: from church.math.s.chiba-u.ac.jp (church [133.82.132.36]) by mathmail.math.s.chiba-u.ac.jp (Postfix) with ESMTP id DBEB32C87; Fri, 28 Jul 2006 14:19:03 +0900 (JST) Original-To: Kazu Yamamoto (=?ISO-2022-JP?B?GyRCOzNLXE9CSScbKEI=?=) In-Reply-To: <20060728.125820.34684979.kazu@iij.ad.jp> 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) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:57714 Archived-At: >>>>> On Fri, 28 Jul 2006 12:58:20 +0900 (JST), Kazu Yamamoto (山本和彦) said: > Other inline input mechanisms (like "tamago") makes use of buffer > itself. I guess many people agree that this approach is good. It would be helpful to think the TSM support (including inline input support) on Mac corresponds to the XIM support on X11 rather than Emacs-level input methods such as tamago and leim. Then I think you'll naturally understand its behavior. > Unfortunately, the inline input of Mac makes use of overlay instead > of buffer. This approach causes some problems: > * Even if the target buffer is read-only, we can input Hiragana and > Kanji. Read-only errors occur just after we complete strings (ie > inserting the completed strings from the overlay to the buffer). The use of overlay strings is intentional and has some reasons. * Since TSM support corresponds to XIM, it is natural not to change the buffer contents until the user confirms the text. * Some keyboard layouts require to show unconfirmed (preedit) text even when we input some ASCII characters such as "`". There may be some key binding including "`" that is also allowed to operate on read-only buffers. Moreover, you cannot tell in general not only whether the target buffer is read-only but also which is the target buffer at the stage of passing input events to TSM using SendEventToEventTarget in XTread_socket. > * Since Hiragana and Kanji are hold in an overlay, text properties > of the buffer is not inherited during input. Of course, after > completing strings, the properties are inherited by the strings. They are inherited from those just after the (empty) overlay. You cannot tell whether the user wants to inherit them from those before or after it. > So, I would like to ask to change the implementation of inline input > on Mac from using overlay to using direct buffer. I've made some email exchanges with Hashimoto-san (the author of "inline-patch") on the above issues in Japanese. I will send you some of them if he agrees. YAMAMOTO Mitsuharu mituharu@math.s.chiba-u.ac.jp