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 17:08:12 +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 1212739716 3773 80.91.229.12 (6 Jun 2008 08:08:36 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 6 Jun 2008 08:08:36 +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 10:09:18 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 1K4X0g-0003Kk-A7 for ged-emacs-devel@m.gmane.org; Fri, 06 Jun 2008 10:09:18 +0200 Original-Received: from localhost ([127.0.0.1]:49122 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1K4Wzt-0003P4-Ks for ged-emacs-devel@m.gmane.org; Fri, 06 Jun 2008 04:08:29 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1K4Wzo-0003OO-MM for emacs-devel@gnu.org; Fri, 06 Jun 2008 04:08:24 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1K4Wzm-0003NV-Hl for emacs-devel@gnu.org; Fri, 06 Jun 2008 04:08:23 -0400 Original-Received: from [199.232.76.173] (port=59652 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1K4Wzm-0003NL-2a for emacs-devel@gnu.org; Fri, 06 Jun 2008 04:08:22 -0400 Original-Received: from mx20.gnu.org ([199.232.41.8]:35742) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1K4Wzg-0002HF-0g; Fri, 06 Jun 2008 04:08:16 -0400 Original-Received: from tyo201.gate.nec.co.jp ([202.32.8.193]) by mx20.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1K4Wzf-0008Qu-4v; Fri, 06 Jun 2008 04:08:15 -0400 Original-Received: from relay21.aps.necel.com ([10.29.19.50]) by tyo201.gate.nec.co.jp (8.13.8/8.13.4) with ESMTP id m5688C2G024480; Fri, 6 Jun 2008 17:08:12 +0900 (JST) Original-Received: from relay21.aps.necel.com ([10.29.19.16] [10.29.19.16]) by relay21.aps.necel.com with ESMTP; Fri, 6 Jun 2008 17:08:12 +0900 Original-Received: from dhapc248.dev.necel.com ([10.114.112.215] [10.114.112.215]) by relay21.aps.necel.com with ESMTP; Fri, 6 Jun 2008 17:08:12 +0900 Original-Received: by dhapc248.dev.necel.com (Postfix, from userid 31295) id 51675468; Fri, 6 Jun 2008 17:08:12 +0900 (JST) System-Type: i686-pc-linux-gnu Blat: Foop In-Reply-To: (Miles Bader's message of "Fri, 06 Jun 2008 16:26:48 +0900") Original-Lines: 26 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:98503 Archived-At: BTW, I assume the case you're remembering probably has to do with trying to preserve column alignment across regions which using different faces. E.g. if the `region' face scales the text by 0.5 and you select some lines of code, then: * Using the global face for tab calculation would roughly preserve line-initial indendation (compared to the non-selected text) that uses tabs even though the text all shrinks greatly. Of course, non-line-initial column alignments will be completely screwed up, and even line-initial indendation will be wrong to the extent it uses spaces as well as tabs. * Using the tab's face for tab calculation would mean that line-initial indentation would shrink along with the text, but would remain correct (locally, not compared to the non-selected text). Non-line-initial column alignments would remain correct (locally). I suppose which of these is "correct" can be argued, but personally the latter seems the least objectionable to me, especially for displaying source code. -Miles -- Dawn, n. When men of reason go to bed.