From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Michael Mauger Newsgroups: gmane.emacs.devel Subject: Re: current-column and display (space :align-to) properties Date: Wed, 11 Jan 2006 16:57:38 +0000 (UTC) Message-ID: References: NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1137006674 6266 80.91.229.2 (11 Jan 2006 19:11:14 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Wed, 11 Jan 2006 19:11:14 +0000 (UTC) Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Jan 11 20:11:05 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 1EwlN4-0003yj-Vl for ged-emacs-devel@m.gmane.org; Wed, 11 Jan 2006 20:10:59 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1EwlP7-0001Pl-Go for ged-emacs-devel@m.gmane.org; Wed, 11 Jan 2006 14:13:05 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1EwjUC-00088B-UH for emacs-devel@gnu.org; Wed, 11 Jan 2006 12:10:13 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1EwjUA-00087f-Tn for emacs-devel@gnu.org; Wed, 11 Jan 2006 12:10:12 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1EwjKj-00062S-2X for emacs-devel@gnu.org; Wed, 11 Jan 2006 12:00:25 -0500 Original-Received: from [80.91.229.2] (helo=ciao.gmane.org) by monty-python.gnu.org with esmtp (TLS-1.0:RSA_AES_128_CBC_SHA:16) (Exim 4.34) id 1EwjNN-00038e-Sa for emacs-devel@gnu.org; Wed, 11 Jan 2006 12:03:10 -0500 Original-Received: from list by ciao.gmane.org with local (Exim 4.43) id 1EwjIV-0001Ot-JQ for emacs-devel@gnu.org; Wed, 11 Jan 2006 17:58:08 +0100 Original-Received: from na6mk2fw02.fidelity.com ([192.223.243.6]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 11 Jan 2006 17:58:07 +0100 Original-Received: from mmaug by na6mk2fw02.fidelity.com with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 11 Jan 2006 17:58:07 +0100 X-Injected-Via-Gmane: http://gmane.org/ Original-To: emacs-devel@gnu.org Original-Lines: 31 Original-X-Complaints-To: usenet@sea.gmane.org X-Gmane-NNTP-Posting-Host: main.gmane.org User-Agent: Loom/3.14 (http://gmane.org/) X-Loom-IP: 192.223.243.6 (Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; JFV; IE 6.0 SP1 (FID r3.0); .NET CLR 1.0.3705; .NET CLR 1.1.4322)) 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:48936 Archived-At: Richard M. Stallman writes: > > Along the lines of a question that arose a couple of weeks ago re: counting > before and after properties when calculating current-column, should the > space :align-to and :width properties be reflected in current-column? > > I think this is part of the to-do item to write a version > of current-column that takes account of pixel widths. > Actually, on Dec 22nd, during a discussion with Drew titled "current-column and invisible text", you said: > I think that is a bug. I see two possible meaningful ways to handle > an overlay before-string: either ignore it, or count its contents. > The latter seems more correct. > > Would someone like to look at this bug, and ack? I think a basic solution to this (report integer column number with no accounting for font widths) is needed now (before the release) since many of the display properties are new and cause inconsistent behavior in some basic functions. I've looked at the code, and understand where the changes are needed, but am not very comfortable with Emacs internals. I'll take a look and see if I can puzzle my way thru but my time for it is limited. -- Michael