From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: =?UTF-8?Q?Cl=c3=a9ment_Pit-Claudel?= Newsgroups: gmane.emacs.devel Subject: Re: Variable-width font indentation Date: Tue, 6 Mar 2018 14:59:21 -0500 Message-ID: References: <87inaiss6l.fsf@web.de> <6FCF6ACA-4F29-4B6B-BE9D-D7130C6E9495@gnu.org> <87fu5moe4c.fsf@web.de> <877eqyocro.fsf@web.de> <83zi3uz4nb.fsf@gnu.org> <0b1dd3fa-e0b0-ed20-a256-dd92d1c1826f@dancol.org> <8bc3c4c7-dfc7-987a-95e7-bd309e2326c6@cs.ucla.edu> <03118DC0-39DA-4AB5-980E-A33809B9A5EE@raeburn.org> <83vaeas8uz.fsf@gnu.org> <83lgf6s3aa.fsf@gnu.org> <838tb5rxoe.fsf@gnu.org> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Trace: blaine.gmane.org 1520366285 29033 195.159.176.226 (6 Mar 2018 19:58:05 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Tue, 6 Mar 2018 19:58:05 +0000 (UTC) User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.6.0 Cc: eggert@cs.ucla.edu, emacs-devel@gnu.org To: Eli Zaretskii Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Mar 06 20:58:00 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 1etIie-0005xW-U8 for ged-emacs-devel@m.gmane.org; Tue, 06 Mar 2018 20:57:53 +0100 Original-Received: from localhost ([::1]:57841 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1etIkh-0004YT-Jc for ged-emacs-devel@m.gmane.org; Tue, 06 Mar 2018 14:59:59 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:33995) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1etIkA-0004Jd-MN for emacs-devel@gnu.org; Tue, 06 Mar 2018 14:59:27 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1etIk7-0006vW-LO for emacs-devel@gnu.org; Tue, 06 Mar 2018 14:59:26 -0500 Original-Received: from mail-it0-x235.google.com ([2607:f8b0:4001:c0b::235]:37935) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1etIk7-0006vO-Et; Tue, 06 Mar 2018 14:59:23 -0500 Original-Received: by mail-it0-x235.google.com with SMTP id j7so361386ita.3; Tue, 06 Mar 2018 11:59:23 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=0P7wlU09bfp/g7subTqqX7N3FXuHkp0wzgWF5+mU7hA=; b=lmzL2HMzJN2i00fh7LbI+NCspwibxSSYKkDAvub2y1H2QdqAVnE7CLloUHl3bfMLTL Jr7zmxsRoYPTtwATnX5Z+XDd9HH/lLlWC4Nsa5uuxtaQjZKCLdpURRbX+J7oNQX78cKx qjFNhq05qEfi6Hgj9x2LKROUUoNzKBepyL0LsxFY5FdM59mDI20t8iVtC0xwccDJkmXL ylJIrJVIsT9cc+L4dlDje6lELr2ixUDb8PW547Ejn1801d2d0AN5pxYIZptdsAeYPNSN bGEvKWgfoksvDBiAJuf88NRJBARcHH9rjwE6Zi316zlMIgbMOS8AOSgAkIlngQyiv8ya jCuA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=0P7wlU09bfp/g7subTqqX7N3FXuHkp0wzgWF5+mU7hA=; b=LJ0vHHol51rbARaXle1h8c0NV2Yfan5724L+YlMGq4w4FCDpmBHLZ04BRQ8sWKP3eT wG1uPC7uV1frLI0aJNf+6p/Tiuzy116O+LJh50aL3h0lDCva4q2ynFihTqF/nxjKMb8r ARnC/ri/XlOxk0G0xkYQ8V4uEUnWBVn2ud/VSU5CjrXs2U4ByBfIBeb77/xU02HiLR/A HOsPeydab2yFqK3qfL+jWkp8wKjVAsLoMe9pewT7Sqe+fo/X1DIldN1c8yikdEtTOZTu FvkjQKCha+bRSmu1UPv6Pdaz6yDN1iF0QOlPDjcRs5p+dxJZ7PzNPFi9i1e/o1VeFili OlZQ== X-Gm-Message-State: AElRT7FIJWqPAWDj6uXoxJznYv6e2EQ209iNLa7gPfM7r9b1hYWUVYAx eiHaKDek36qGPcGJCGp9g8c= X-Google-Smtp-Source: AG47ELsHKZ2Kf/nCKxDghXDDzrZD2yV20IiJroBKFcFsVEI0ZcK2VC70fWHA4l8bwz+eZDCmtyHAWg== X-Received: by 10.36.63.66 with SMTP id d63mr19087609ita.91.1520366362537; Tue, 06 Mar 2018 11:59:22 -0800 (PST) Original-Received: from [18.26.2.123] (26-2-123.dynamic.csail.mit.edu. [18.26.2.123]) by smtp.gmail.com with ESMTPSA id 202sm4344037itu.8.2018.03.06.11.59.21 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 06 Mar 2018 11:59:22 -0800 (PST) In-Reply-To: <838tb5rxoe.fsf@gnu.org> Content-Language: en-GB X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2607:f8b0:4001:c0b::235 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:223362 Archived-At: On 2018-03-06 11:11, Eli Zaretskii wrote: > I think I'm still missing something, because I don't understand why we > need to invent/use a strategy different from what we do now in code > indentation. [...] All the rest is already in place, > right? I think I know where the misunderstanding is coming from. We're thinking of two unrelated things: * Paul and I have been discussing an language-agnostic heuristic to preserve alignment when changing from monospace to variable-pitch faces. This intends to preserve the original indentation of the code, by inferring what it would have been if the logic originally used to indent the document had been aware of variable-pitch faces. * You're describing a language-specific way to get a nice-looking variable-pitch rendering of a document; your way is to reindent the document, essentially. Does this make sense?