[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Variable-width font indentation

From: Daniel Colascione
Subject: Re: Variable-width font indentation
Date: Mon, 5 Mar 2018 14:53:02 -0800
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.6.0

On 03/05/2018 02:30 PM, Paul Eggert wrote:
On 03/05/2018 12:28 PM, Clément Pit-Claudel wrote:
Applying this strategy to all lines doesn't work, unfortunately: it indents the `pr ()' and `printf (' lines differently, because the `in' of `int main' and the `vo' of `void' occupy different widths.

True, but that's a feature not a defect. The code is easier to read if every region is indented individually, as opposed to using exactly the same indenting everywhere in the buffer.

In non-lineup styles (e.g., the Linux kernel), different blocks with the same notional indentation actually having different offsets from the left margin would be very unusual.

reply via email to

[Prev in Thread] Current Thread [Next in Thread]