From: Stefan Monnier <monnier@iro.umontreal.ca>
To: Pascal Quesseveur <pquessev@gmail.com>
Cc: 36348@debbugs.gnu.org
Subject: bug#36348: 26.2; Indentation problem with Delphi inline variables
Date: Mon, 24 Jun 2019 09:45:31 -0400 [thread overview]
Message-ID: <jwvblynyu9x.fsf-monnier+emacs@gnu.org> (raw)
In-Reply-To: <83k1db8mbj.fsf@gmail.com> (Pascal Quesseveur's message of "Mon, 24 Jun 2019 09:38:40 +0200")
> 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
next prev parent reply other threads:[~2019-06-24 13:45 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-06-24 7:38 bug#36348: 26.2; Indentation problem with Delphi inline variables Pascal Quesseveur
2019-06-24 13:45 ` Stefan Monnier [this message]
2019-07-22 17:12 ` Stefan Monnier
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=jwvblynyu9x.fsf-monnier+emacs@gnu.org \
--to=monnier@iro.umontreal.ca \
--cc=36348@debbugs.gnu.org \
--cc=pquessev@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.