From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Richard Stallman Newsgroups: gmane.emacs.devel Subject: Re: Incorrect TAB width Date: Tue, 14 Jun 2005 18:31:44 -0400 Message-ID: References: <20050612132253.GB82470@memo.frmug.org> <20050613191014.GB99682@memo.frmug.org> Reply-To: rms@gnu.org NNTP-Posting-Host: main.gmane.org X-Trace: sea.gmane.org 1118789284 13202 80.91.229.2 (14 Jun 2005 22:48:04 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 14 Jun 2005 22:48:04 +0000 (UTC) Cc: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Jun 15 00:48:03 2005 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1DiKBk-0007Ta-Po for ged-emacs-devel@m.gmane.org; Wed, 15 Jun 2005 00:47:21 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1DiKGq-0007Dy-EM for ged-emacs-devel@m.gmane.org; Tue, 14 Jun 2005 18:52:36 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1DiKD0-0005N8-8E for emacs-devel@gnu.org; Tue, 14 Jun 2005 18:48:38 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1DiKCi-0005Dc-DP for emacs-devel@gnu.org; Tue, 14 Jun 2005 18:48:23 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1DiKCh-0005AO-T3 for emacs-devel@gnu.org; Tue, 14 Jun 2005 18:48:19 -0400 Original-Received: from [199.232.76.164] (helo=fencepost.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.34) id 1DiJy2-00048U-Of for emacs-devel@gnu.org; Tue, 14 Jun 2005 18:33:10 -0400 Original-Received: from rms by fencepost.gnu.org with local (Exim 4.34) id 1DiJwe-0008PG-0V; Tue, 14 Jun 2005 18:31:44 -0400 Original-To: Bertrand Petit In-reply-to: <20050613191014.GB99682@memo.frmug.org> (message from Bertrand Petit on Mon, 13 Jun 2005 21:10:14 +0200) 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:38842 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:38842 We can arrange for a private access to my font server if it may help you. It would not be feasible for me to access it, but maybe someone else here can. It seems so. The tabulation width calculation method was reported on the 27th of December, 2004, by Kenichi Handa: Tab width is calculated as this (x_produce_glyphs): int tab_width = it->tab_width * FRAME_COLUMN_WIDTH (it->f); and, x_new_font sets the column width (i.e. the canonical character width) of a frame as this: FRAME_COLUMN_WIDTH (f) = FONT_WIDTH (FRAME_FONT (f)); and FONT_WIDTH is defined as this: #define FONT_WIDTH(f) ((f)->max_bounds.width) As I thought, it is not using the width of tab in the font. However, I wonder if the problem is that the width of canonical character width of the font does not equal the width of a space?