From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Kenichi Handa Newsgroups: gmane.emacs.devel Subject: Re: problem of display property [Re: list-charset-chars and unicode-bmp] Date: Thu, 30 Jan 2003 13:26:43 +0900 (JST) Sender: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Message-ID: <200301300426.NAA18495@etlken.m17n.org> References: NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 (generated by SEMI 1.14.3 - "Ushinoya") Content-Type: text/plain; charset=US-ASCII X-Trace: main.gmane.org 1043900752 16513 80.91.224.249 (30 Jan 2003 04:25:52 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Thu, 30 Jan 2003 04:25:52 +0000 (UTC) Cc: jsbien@mimuw.edu.pl Return-path: Original-Received: from quimby.gnus.org ([80.91.224.244]) by main.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 18e6Gs-0004ID-00 for ; Thu, 30 Jan 2003 05:25:50 +0100 Original-Received: from monty-python.gnu.org ([199.232.76.173]) by quimby.gnus.org with esmtp (Exim 3.12 #1 (Debian)) id 18e6MM-0006Cb-00 for ; Thu, 30 Jan 2003 05:31:30 +0100 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.10.13) id 18e6IS-00021C-05 for emacs-devel@quimby.gnus.org; Wed, 29 Jan 2003 23:27:28 -0500 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.10.13) id 18e6I2-0001dB-00 for emacs-devel@gnu.org; Wed, 29 Jan 2003 23:27:02 -0500 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.10.13) id 18e6Hs-0001Fu-00 for emacs-devel@gnu.org; Wed, 29 Jan 2003 23:26:53 -0500 Original-Received: from tsukuba.m17n.org ([192.47.44.130]) by monty-python.gnu.org with esmtp (Exim 4.10.13) id 18e6Hq-0001Ae-00 for emacs-devel@gnu.org; Wed, 29 Jan 2003 23:26:50 -0500 Original-Received: from fs.m17n.org (fs.m17n.org [192.47.44.2])h0U4Qik06003; Thu, 30 Jan 2003 13:26:44 +0900 (JST) (envelope-from handa@m17n.org) Original-Received: from etlken.m17n.org (etlken.m17n.org [192.47.44.125]) h0U4QiR07328; Thu, 30 Jan 2003 13:26:44 +0900 (JST) Original-Received: (from handa@localhost) by etlken.m17n.org (8.8.8+Sun/3.7W-2001040620) id NAA18495; Thu, 30 Jan 2003 13:26:43 +0900 (JST) Original-To: eliz@is.elta.co.il In-reply-to: (message from Eli Zaretskii on Wed, 29 Jan 2003 16:27:05 +0200 (IST)) User-Agent: SEMI/1.14.3 (Ushinoya) FLIM/1.14.2 (Yagi-Nishiguchi) APEL/10.2 Emacs/21.2.92 (sparc-sun-solaris2.6) MULE/5.0 (SAKAKI) Original-cc: d.love@dl.ac.uk Original-cc: gerd.moellmann@t-online.de Original-cc: emacs-devel@gnu.org X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1b5 Precedence: list List-Id: Emacs development discussions. List-Help: List-Post: List-Subscribe: , List-Archive: List-Unsubscribe: , Errors-To: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Xref: main.gmane.org gmane.emacs.devel:11212 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:11212 In article , Eli Zaretskii writes: > On Wed, 29 Jan 2003, Kenichi Handa wrote: >> By the way, I found that current-column, move-to-column, >> etc. don't take display properties into acount. I vaguely >> remember that once there was a discussion about using >> display engine to calculte column numbers. > That discussion revealed a problem with this approach: sometimes you need > to compute columns in a portion of a buffer that isn't displayed, so it > doesn't appear in the glyph matrices. Of course we can't reuse the existing glyph matrics, but, was it the conclusion that we can't use `struct it' without a glyph matrics? For instance, it seems to me that doing this is possible. (1) call init_iterator with ROW == NULL (2) call reseat with POS == (line-beginning-position) (3) call move_it_to with TO_CHARPOS == (point) (4) it->hpos is the current column. --- Ken'ichi HANDA handa@m17n.org