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 08:18:01 -0500 Message-ID: <5e3a9807-476d-7e2c-cb2f-2470b8c20a23@gmail.com> 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> <8b94336f-1bb4-84ab-263b-af5ba40bfca4@cs.ucla.edu> <673d6612-f0d4-5d34-c6ee-a276dbba3068@cs.ucla.edu> <087fdedd-a7c5-f7f6-f3a5-b1700fb6e516@gmail.com> <1ebcaf39-fc03-b178-d45b-e99bf3e94172@cs.ucla.edu> <58111853-4042-8838-55df-488a6458fed7@dancol.org> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Trace: blaine.gmane.org 1520342227 17814 195.159.176.226 (6 Mar 2018 13:17:07 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Tue, 6 Mar 2018 13:17:07 +0000 (UTC) User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.6.0 To: Daniel Colascione , Paul Eggert , emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Mar 06 14:17:02 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 1etCSW-0002Ud-8w for ged-emacs-devel@m.gmane.org; Tue, 06 Mar 2018 14:16:48 +0100 Original-Received: from localhost ([::1]:55681 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1etCUY-0003kD-Oq for ged-emacs-devel@m.gmane.org; Tue, 06 Mar 2018 08:18:54 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:47155) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1etCTn-0003ji-W1 for emacs-devel@gnu.org; Tue, 06 Mar 2018 08:18:13 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1etCTk-00058m-5M for emacs-devel@gnu.org; Tue, 06 Mar 2018 08:18:07 -0500 Original-Received: from mail-qk0-x230.google.com ([2607:f8b0:400d:c09::230]:43798) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1etCTk-00058V-0c for emacs-devel@gnu.org; Tue, 06 Mar 2018 08:18:04 -0500 Original-Received: by mail-qk0-x230.google.com with SMTP id j4so24743604qke.10 for ; Tue, 06 Mar 2018 05:18:03 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=subject:to:references:from:message-id:date:user-agent:mime-version :in-reply-to:content-language:content-transfer-encoding; bh=TUZb1OP0ughgaHF6zWFb6pSgjqXJ8huzuTSulZdWVHc=; b=BWCIZACbUMPCW5p04odG75YwF4j2c9NLfVp5Nvr6bS4FgaRyuoz/MBYLvpi7gFtvoo tdn55Vspm2+bXwp734+yPEQU/CVntNl9lytPOrJgmTxFhYRqwZJZsi6MUShpsKv3GmIe 0yA+n2xOFmK1XB83abYwV6RhqCc3s3ruteOL0Ke7DXh3FwFWGYg/LBd5Upf9SbIdjiqi ubcps/xQKF8EdNlyUrSdRFaNtat5rW1VG9AFzRNmoGipl9mbjpABUBljhncIPQsn9zc6 0j4n5p7knEOrJPa9LXD7LC9HbNz/5/Z+IDcTArcJutf/2l5kFyQCOd5wmap48YgtSrLZ TrRg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=TUZb1OP0ughgaHF6zWFb6pSgjqXJ8huzuTSulZdWVHc=; b=kMIqIzqD+ijT7y22T7IBdRPgMn4jgiNTy+TudS2RyK3Kd+ZUkLrlUrYQi6x1qLG/4H 9XBFvN9FUo2TNe3lcCihbT67KFPLOdY1QvRb7BD7qRLE8SDqQA7P8ZLAfUa5jSYmwCTR KfimH/482ahEu0o5USdqfU3+LAxP3Gj2Bm46OYegqhEGYkyERyNpH8hgTmd6xpFBIseS sPo7XlU4ac+DtvHoGJFaUZzLgaT/hDiAnsvA8EEV9itIk2b4+BY/6NqnGZYiIrAAxlIf 5TIDq+MmYho/DxNGSARwg7UdtBY9Q3XZxojWNJ9rUg72vPVFU8ItTqq/15SKQuHnr0V4 ICaA== X-Gm-Message-State: AElRT7G8YIQcefALbTanZlZuZWh8IFzrfcxNoiX8cc7T+L8g8MC3OuQI +vVpyK7XEhOphngEVFhasLrZlS+m X-Google-Smtp-Source: AG47ELtH6rxFuzCOg6h72gHSCCtTnNeB7iaz3nkpBVPW/ayB6Y1OYtnLqzXlyCVpFbRHbEX6e31dkQ== X-Received: by 10.233.216.68 with SMTP id u65mr27644434qkf.39.1520342283352; Tue, 06 Mar 2018 05:18:03 -0800 (PST) Original-Received: from ?IPv6:2601:184:4180:66e7:2829:cb05:cef:e671? ([2601:184:4180:66e7:2829:cb05:cef:e671]) by smtp.gmail.com with ESMTPSA id e68sm1200262qtb.80.2018.03.06.05.18.02 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 06 Mar 2018 05:18:02 -0800 (PST) In-Reply-To: <58111853-4042-8838-55df-488a6458fed7@dancol.org> Content-Language: en-GB X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2607:f8b0:400d:c09::230 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:223324 Archived-At: On 2018-03-06 00:48, Daniel Colascione wrote: > I'd rather whitelist modes where the indentation machinery can > reliably provide robust alignment-versus-indentation information. Do you think that'll be enough? What do we do when we open a file that's already indented in a way that doesn't match what our own indentation function would do? Or do you mean that we need a new "indentation analyzer" for each new mode that tags spaces as "alignment" spaces vs "indentation" spaces? One more tricky case, from playing with this a bit more: in OCaml, it's not entirely uncommon to see this: match o with | None -> 0 (* Note the extra spaces to line up the arrows *) | Some x -> x + 1 Clément.