From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.devel Subject: Re: Variable-width font indentation Date: Sun, 11 Mar 2018 05:43:55 +0200 Message-ID: <83d10btgxw.fsf@gnu.org> References: <87inaiss6l.fsf@web.de> <83lgf5q73p.fsf@gnu.org> <4742f0ae-86b5-48f9-4601-4dbba9e6380d@gmail.com> <83bmfzreaq.fsf@gnu.org> <83lgf3przh.fsf@gnu.org> <42d0c18b-8d14-bfe2-8f09-112787e8b0b4@gmail.com> <83zi3io9tr.fsf@gnu.org> <859ec725-acc3-22e4-ca26-28108c3e5e26@gmail.com> <83sh9ao086.fsf@gnu.org> <83muzhodkx.fsf@gnu.org> <83r2otumg6.fsf@gnu.org> <015c9878-2955-5ef9-cb05-a066b59c085f@cs.ucla.edu> <83o9jxueu5.fsf@gnu.org> <83ina4uysg.fsf@gnu.org> <83ina3u2dt.fsf@gnu.org> Reply-To: Eli Zaretskii NNTP-Posting-Host: blaine.gmane.org X-Trace: blaine.gmane.org 1520739747 28951 195.159.176.226 (11 Mar 2018 03:42:27 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Sun, 11 Mar 2018 03:42:27 +0000 (UTC) Cc: cpitclaudel@gmail.com, eggert@cs.ucla.edu, emacs-devel@gnu.org To: James Cloos Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sun Mar 11 04:42:23 2018 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eursN-0007OX-9z for ged-emacs-devel@m.gmane.org; Sun, 11 Mar 2018 04:42:23 +0100 Original-Received: from localhost ([::1]:52899 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1euruQ-0004e6-90 for ged-emacs-devel@m.gmane.org; Sat, 10 Mar 2018 22:44:30 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:35981) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eurtt-0004du-5B for emacs-devel@gnu.org; Sat, 10 Mar 2018 22:43:57 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1eurtq-0007um-20 for emacs-devel@gnu.org; Sat, 10 Mar 2018 22:43:57 -0500 Original-Received: from fencepost.gnu.org ([2001:4830:134:3::e]:36363) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eurtp-0007ub-V9; Sat, 10 Mar 2018 22:43:54 -0500 Original-Received: from [176.228.60.248] (port=4378 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1eurtp-00021T-03; Sat, 10 Mar 2018 22:43:53 -0500 In-reply-to: (message from James Cloos on Sat, 10 Mar 2018 17:18:12 -0500) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2001:4830:134:3::e X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.org gmane.emacs.devel:223609 Archived-At: > From: James Cloos > Cc: eggert@cs.ucla.edu, cpitclaudel@gmail.com, emacs-devel@gnu.org > Date: Sat, 10 Mar 2018 17:18:12 -0500 > > >>>>> "EZ" == Eli Zaretskii writes: > > EZ> Then I really don't understand why you think it's a good start. I > EZ> think it's a step in the wrong direction, because it will make things > EZ> worse than they are now: what we have now makes sure the initial > EZ> whitespace changes in sync on all lines of the buffer, so that the > EZ> first non-whitespace characters on each line stay aligned. > > I have not re-compiled in a while, nor did I read the whole thread. > Perhaps things have progressed since the version I currently have. > > Consistent and not-too-small indenting is important. Basing indents on > the width of the fixed pitch space and tab stops on a multiple of that > would help, compared to what the version I have does. I don't think anything's happened in this regard lately. A tab was always rendered on GUI frames as a stretch whose width is an integral multiple of the space width of the font. Except in the Windows port, the space width is actually the width of the font glyph that displays the space character. So I'm not sure I understand what problems you describe. Can you provide a concrete example where the behavior you describe produces bad results?