From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: "Stefan Monnier" Newsgroups: gmane.emacs.devel Subject: Re: problem of display property [Re: list-charset-chars and unicode-bmp] Date: Thu, 30 Jan 2003 15:26:20 -0500 Sender: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Message-ID: <200301302026.h0UKQKY22623@rum.cs.yale.edu> References: <200301300426.NAA18495@etlken.m17n.org> <1438-Thu30Jan2003220712+0200-eliz@is.elta.co.il> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: main.gmane.org 1043958657 5167 80.91.224.249 (30 Jan 2003 20:30:57 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Thu, 30 Jan 2003 20:30:57 +0000 (UTC) Cc: handa@m17n.org Return-path: Original-Received: from quimby.gnus.org ([80.91.224.244]) by main.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 18eLK7-0001JL-00 for ; Thu, 30 Jan 2003 21:30:11 +0100 Original-Received: from monty-python.gnu.org ([199.232.76.173]) by quimby.gnus.org with esmtp (Exim 3.12 #1 (Debian)) id 18eLPv-0006vL-00 for ; Thu, 30 Jan 2003 21:36:11 +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 18eLJ5-0003aO-06 for emacs-devel@quimby.gnus.org; Thu, 30 Jan 2003 15:29:07 -0500 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.10.13) id 18eLIP-0002aq-00 for emacs-devel@gnu.org; Thu, 30 Jan 2003 15:28:25 -0500 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.10.13) id 18eLHx-0001pJ-00 for emacs-devel@gnu.org; Thu, 30 Jan 2003 15:28:01 -0500 Original-Received: from rum.cs.yale.edu ([128.36.229.169]) by monty-python.gnu.org with esmtp (Exim 4.10.13) id 18eLGS-0000Ux-00 for emacs-devel@gnu.org; Thu, 30 Jan 2003 15:26:24 -0500 Original-Received: (from monnier@localhost) by rum.cs.yale.edu (8.11.6/8.11.6) id h0UKQKY22623; Thu, 30 Jan 2003 15:26:20 -0500 X-Mailer: exmh version 2.4 06/23/2000 with nmh-1.0.4 Original-To: "Eli Zaretskii" Original-cc: jsbien@mimuw.edu.pl 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:11232 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:11232 > > Date: Thu, 30 Jan 2003 13:26:43 +0900 (JST) > > From: Kenichi Handa > > > > was it the conclusion that we can't use `struct it' without > > a glyph matrics? > > I don't think so. > > > 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. > > I'm not sure; does this really work? Including some unusual > situations like display tables, overlays/text properties, and other > calamities that affect how text is displayed? I don't think it's too bad. The one concrete case where I know that current-column purposefully does not try to reproduce the behavior of the display is that current-column does *not* ignore text that's invisible but represented by an ellipsis. We'll probably need some tweaking to get the iterator to do that correctly. AFAIK, this is only done so as to get meaningful results when current-column (and move-to-column) is called from within such "ellipsisified" text, so maybe we can take care of it without doing anything special in the iterator itself. Anybody knows of another such issue ? Stefan