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: Unfortunate pixel width of one TAB Date: Thu, 30 Dec 2004 21:35:58 +0900 (JST) Message-ID: <200412301235.VAA28775@etlken.m17n.org> References: <41B331A7.2010406@iue.tuwien.ac.at> <200412271326.WAA20143@etlken.m17n.org> <200412290132.KAA24755@etlken.m17n.org> NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 (generated by SEMI 1.14.3 - "Ushinoya") Content-Type: text/plain; charset=US-ASCII X-Trace: sea.gmane.org 1104426864 30702 80.91.229.6 (30 Dec 2004 17:14:24 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Thu, 30 Dec 2004 17:14:24 +0000 (UTC) Cc: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Dec 30 18:14:10 2004 Return-path: Original-Received: from mail-relay.eunet.no ([193.71.71.242]) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1Ck33m-0001cs-00 for ; Thu, 30 Dec 2004 17:21:58 +0100 Original-Received: from lists.gnu.org (lists.gnu.org [199.232.76.165]) by mail-relay.eunet.no (8.13.1/8.13.1/GN) with ESMTP id iBUEecZR078918 for ; Thu, 30 Dec 2004 15:40:39 +0100 (CET) (envelope-from emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org) Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1Ck1Zz-0007gw-7a for ged-emacs-devel@m.gmane.org; Thu, 30 Dec 2004 09:47:07 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.33) id 1Ck0F4-0005go-Ah for emacs-devel@gnu.org; Thu, 30 Dec 2004 08:21:26 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.33) id 1Cjzsv-0003KO-Lx for emacs-devel@gnu.org; Thu, 30 Dec 2004 07:58:34 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1Cjzk6-0001Yf-GV for emacs-devel@gnu.org; Thu, 30 Dec 2004 07:49:26 -0500 Original-Received: from [192.47.44.130] (helo=tsukuba.m17n.org) by monty-python.gnu.org with esmtp (TLSv1:DES-CBC3-SHA:168) (Exim 4.34) id 1CjzX7-0002wZ-Fz; Thu, 30 Dec 2004 07:36:02 -0500 Original-Received: from fs.m17n.org (fs.m17n.org [192.47.44.2]) by tsukuba.m17n.org (8.12.3/8.12.3/Debian-7.1) with ESMTP id iBUCZxY7022140; Thu, 30 Dec 2004 21:35:59 +0900 Original-Received: from etlken.m17n.org (etlken.m17n.org [192.47.44.125]) by fs.m17n.org (8.11.6p2/8.11.6) with ESMTP id iBUCZwq11577; Thu, 30 Dec 2004 21:35:58 +0900 (JST) Original-Received: (from handa@localhost) by etlken.m17n.org (8.8.8+Sun/3.7W-2001040620) id VAA28775; Thu, 30 Dec 2004 21:35:58 +0900 (JST) Original-To: rms@gnu.org In-reply-to: (message from Richard Stallman on Wed, 29 Dec 2004 15:46:54 -0500) User-Agent: SEMI/1.14.3 (Ushinoya) FLIM/1.14.2 (Yagi-Nishiguchi) APEL/10.2 Emacs/21.3.50 (sparc-sun-solaris2.6) MULE/5.0 (SAKAKI) 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: main.gmane.org gmane.emacs.devel:31609 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:31609 Richard Stallman writes: >> (2) Make a new macro FONT_SPACE_WIDTH that returns the width >> of space glyph of the font of the frame. We can make a new >> member `space_width' in the struct frame and make x_new_font >> sets it value. >> (3) Calculate tab width based on FONT_SPACE_WIDTH. >> That might be good. Or we could do this without changing FONT_WIDTH. >> That means do just 2 and 3, not 1. >> But, shouldn't we postpone such a change until the next >> release? >> This is a bug fix. We should do it now. > Ok, I'll work on it. Please wait for a while. > Please reply to this when it is done. I've just installed these changes for X: (1) Set FRAME_COLUMN_WIDTH to the average with of a font. average width is got from AVERAGE_WIDTH font property. If the property doesn't exist, calculate the average of SPC to TILDA (perhaps there exists a better method). (2) Set FRAME_SPACE_WIDTH (new macro) to the space width of the frame's font, and use it for calculating tab width. Similar change will be necessary for the other platforms. --- Ken'ichi HANDA handa@m17n.org