From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Kenichi Handa Newsgroups: gmane.emacs.devel Subject: Re: composition bug Date: Wed, 17 Sep 2008 14:34:08 +0900 Message-ID: References: <87hc8rn3ws.fsf@cyd.mit.edu> <87r67u3k52.fsf@elegiac.orebokech.com> <87iqt53mk7.fsf@elegiac.orebokech.com> <87zlmcxsq1.fsf@elegiac.orebokech.com> <87zlm86191.fsf@elegiac.orebokech.com> <87prn457u2.fsf@elegiac.orebokech.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 (generated by SEMI 1.14.3 - "Ushinoya") Content-Type: text/plain; charset=US-ASCII X-Trace: ger.gmane.org 1221629678 16819 80.91.229.12 (17 Sep 2008 05:34:38 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 17 Sep 2008 05:34:38 +0000 (UTC) Cc: cyd@stupidchicken.com, emacs-devel@gnu.org To: Romain Francoise Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Sep 17 07:35:34 2008 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1KfphI-0004bP-8b for ged-emacs-devel@m.gmane.org; Wed, 17 Sep 2008 07:35:28 +0200 Original-Received: from localhost ([127.0.0.1]:46422 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KfpgG-0000xR-U8 for ged-emacs-devel@m.gmane.org; Wed, 17 Sep 2008 01:34:25 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Kfpg8-0000wo-E1 for emacs-devel@gnu.org; Wed, 17 Sep 2008 01:34:16 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Kfpg5-0000wC-Sr for emacs-devel@gnu.org; Wed, 17 Sep 2008 01:34:15 -0400 Original-Received: from [199.232.76.173] (port=41529 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Kfpg5-0000w7-HU for emacs-devel@gnu.org; Wed, 17 Sep 2008 01:34:13 -0400 Original-Received: from mx1.aist.go.jp ([150.29.246.133]:51773) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1Kfpg4-0004ts-UJ for emacs-devel@gnu.org; Wed, 17 Sep 2008 01:34:13 -0400 Original-Received: from rqsmtp1.aist.go.jp (rqsmtp1.aist.go.jp [150.29.254.115]) by mx1.aist.go.jp with ESMTP id m8H5Y9ZG022537; Wed, 17 Sep 2008 14:34:09 +0900 (JST) env-from (handa@m17n.org) Original-Received: from smtp3.aist.go.jp by rqsmtp1.aist.go.jp with ESMTP id m8H5Y9Kk029034; Wed, 17 Sep 2008 14:34:09 +0900 (JST) env-from (handa@m17n.org) Original-Received: by smtp3.aist.go.jp with ESMTP id m8H5Y8fO027234; Wed, 17 Sep 2008 14:34:08 +0900 (JST) env-from (handa@m17n.org) Original-Received: from handa by etlken.m17n.org with local (Exim 4.69) (envelope-from ) id 1Kfpg0-0006HF-PF; Wed, 17 Sep 2008 14:34:08 +0900 In-reply-to: <87prn457u2.fsf@elegiac.orebokech.com> (message from Romain Francoise on Tue, 16 Sep 2008 19:17:09 +0200) User-Agent: SEMI/1.14.3 (Ushinoya) FLIM/1.14.2 (Yagi-Nishiguchi) APEL/10.2 Emacs/23.0.60 (i686-pc-linux-gnu) MULE/6.0 (HANACHIRUSATO) X-detected-operating-system: by monty-python.gnu.org: Solaris 9 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:103912 Archived-At: In article <87prn457u2.fsf@elegiac.orebokech.com>, Romain Francoise writes: > Kenichi Handa writes: > > Hmmm, it seems that there's a pattern. What does this > > return when the point is 1, 256, 414: > > ESC : (find-composition (point) (point-max) RET > (255 256 [[# 1617] 0 [0 0 1617 1617 0 1 6 15 -12 [0 0 6]]]) > (412 414 [[# 3732 3765] 1 [0 1 3732 3732 8 1 8 9 0 nil] [0 1 3765 3765 0 -7 2 13 -10 nil]]) > (419 420 [[# 8205] 2 [0 0 8205 8205 6 0 0 0 0 [0 0 6]]]) Ok, so, C-n at the beginning of HELLO moves the point to the end of first composition, and the 2nd C-n moves the point to the end of 2nd composition. But, the 3rd C-n doesn't follows that pattern. Please run Emacs under gdb as below: M-x gdb RET /usr/local/work/emacs/src/emacs RET |-----------------------------|-> please adjust for your case (gdb) br composite.c:1432 (gdb) run -Q Then visit HELLO file by the Emacs running under gdb, and type C-n. Emacs should stop at the break point. Then, please find why the point moves to 256 by running the code one line by line. --- Kenichi Handa handa@ni.aist.go.jp