GNU bug report logs - #36348
26.2; Indentation problem with Delphi inline variables

Previous Next

Package: emacs;

Reported by: Pascal Quesseveur <pquessev <at> gmail.com>

Date: Mon, 24 Jun 2019 07:39:02 UTC

Severity: minor

Found in version 26.2

Done: Stefan Monnier <monnier <at> iro.umontreal.ca>

Bug is archived. No further changes may be made.

Full log


Message #8 received at 36348 <at> debbugs.gnu.org (full text, mbox):

From: Stefan Monnier <monnier <at> iro.umontreal.ca>
To: Pascal Quesseveur <pquessev <at> gmail.com>
Cc: 36348 <at> debbugs.gnu.org
Subject: Re: bug#36348: 26.2; Indentation problem with Delphi inline variables
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





This bug report was last modified 5 years and 309 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.