From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Miles Bader Newsgroups: gmane.emacs.devel Subject: Re: tab widths with a remapped default face Date: Fri, 06 Jun 2008 16:26:48 +0900 Message-ID: References: <6163snp2bo.fsf@fencepost.gnu.org> Reply-To: Miles Bader NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1212737242 28121 80.91.229.12 (6 Jun 2008 07:27:22 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 6 Jun 2008 07:27:22 +0000 (UTC) Cc: emacs-devel@gnu.org To: Stefan Monnier Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Jun 06 09:28:04 2008 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1K4WMj-0006Jj-2v for ged-emacs-devel@m.gmane.org; Fri, 06 Jun 2008 09:28:01 +0200 Original-Received: from localhost ([127.0.0.1]:54509 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1K4WLw-00033R-Cd for ged-emacs-devel@m.gmane.org; Fri, 06 Jun 2008 03:27:12 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1K4WLq-00032c-8G for emacs-devel@gnu.org; Fri, 06 Jun 2008 03:27:06 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1K4WLm-00032D-Lw for emacs-devel@gnu.org; Fri, 06 Jun 2008 03:27:04 -0400 Original-Received: from [199.232.76.173] (port=55760 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1K4WLm-00032A-DE for emacs-devel@gnu.org; Fri, 06 Jun 2008 03:27:02 -0400 Original-Received: from mx20.gnu.org ([199.232.41.8]:31943) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1K4WLh-00064z-Hw; Fri, 06 Jun 2008 03:26:57 -0400 Original-Received: from tyo202.gate.nec.co.jp ([202.32.8.206]) by mx20.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1K4WLd-0004tA-VH; Fri, 06 Jun 2008 03:26:54 -0400 Original-Received: from relay21.aps.necel.com ([10.29.19.50]) by tyo202.gate.nec.co.jp (8.13.8/8.13.4) with ESMTP id m567Qn0i000421; Fri, 6 Jun 2008 16:26:49 +0900 (JST) Original-Received: from relay31.aps.necel.com ([10.29.19.24] [10.29.19.24]) by relay21.aps.necel.com with ESMTP; Fri, 6 Jun 2008 16:26:49 +0900 Original-Received: from dhapc248.dev.necel.com ([10.114.112.215] [10.114.112.215]) by relay31.aps.necel.com with ESMTP; Fri, 6 Jun 2008 16:26:49 +0900 Original-Received: by dhapc248.dev.necel.com (Postfix, from userid 31295) id 27123468; Fri, 6 Jun 2008 16:26:49 +0900 (JST) System-Type: i686-pc-linux-gnu Blat: Foop In-Reply-To: (Stefan Monnier's message of "Fri, 06 Jun 2008 01:53:59 -0400") Original-Lines: 25 X-detected-kernel: by mx20.gnu.org: Solaris 8 (1) X-detected-kernel: by monty-python.gnu.org: Linux 2.6, seldom 2.4 (older, 4) 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:98500 Archived-At: Stefan Monnier writes: > IIUC your patch changes the TAB size to depend on the face applied to > the TAB. The current code was consciously not doing that, IIRC, tho > I can't quite remember the reason for it. > > Could we make it use the space_width of the font used for the > default face? It would be a bit more code, not sure if it would be a speed problem or not. Using the TAB face for tab-width calculation seems much likely to preserve the local integrity of indentation (using the default face means that mixed space and tab indentation will often not be the same as space-only indentation). It seems a bit more intuitive to me as well. However, if there is a significant case where using the default face for calculations is better, it would be good to know it, but it seems a bit silly to make decisions based on vague recollections. -Miles -- Absurdity, n. A statement or belief manifestly inconsistent with one's own opinion.