Subject: Re: bug#36348: 26.2; Indentation problem with Delphi inline variables

From: Stefan Monnier <[email-masked]>
Date: Mon, 24 Jun 2019 09:45:31 -0400

> Indentation doesn't work properly when using inline variable
> introduced by Delphi 10.3 (using Emacs 26.2, opascal,
> opascal-indent-level is 3):
>
>    for i := 0 to str.Length - 1 do
>       Write (str.Chars[i]);
>
>    for var i := 0 to str.Length - 1 do
>               Write (str.Chars[i]);

Emacs comes with 2 Pascal modes: the `pascal-mode` and the
`opascal-mode`.  Since you're using Delphi, opascal-mode is indeed the
right choice, but I think we should try and consolidate the two modes,
so I'm curious to know if you've tried to use pascal-mode on your code
to see how its indentation code fares in comparison.

        Stefan