|
From: | Dmitry Gutov |
Subject: | Re: Variable-width font indentation |
Date: | Tue, 6 Mar 2018 17:15:29 +0200 |
User-agent: | Mozilla/5.0 (X11; Linux x86_64; rv:59.0) Gecko/20100101 Thunderbird/59.0 |
On 3/5/18 9:49 PM, Paul Eggert wrote:
On 03/05/2018 11:32 AM, address@hidden wrote:1: void foo(int a, 2: int b) 3: { 4: ... How is any generic indentation system supposed to know that the "i" on line 2 is supposed to line up with the "i" on line 1?It assumes the input is fixed-width, and that leading white space is intended to indent with respect to previous lines. Although it'd be some work to get Emacs to do this, I don't offhand see any algorithmic problem here.
If the way whitespace at bol is rendered depends on indentation code, will the mean that while scrolling a buffer the display engine will have to call indentation code?
[Prev in Thread] | Current Thread | [Next in Thread] |