GNU bug report logs - #73285
30.0.90; editorconfig-indentation-alist missing modes

Previous Next

Package: emacs;

Reported by: Troy Brown <brownts <at> troybrown.dev>

Date: Sun, 15 Sep 2024 21:17:02 UTC

Severity: normal

Found in version 30.0.90

Full log


View this message in rfc822 format

From: Troy Brown <brownts <at> troybrown.dev>
To: Stefan Monnier <monnier <at> iro.umontreal.ca>
Cc: Eli Zaretskii <eliz <at> gnu.org>, 73285 <at> debbugs.gnu.org
Subject: bug#73285: 30.0.90; editorconfig-indentation-alist missing modes
Date: Tue, 17 Sep 2024 18:28:44 -0400
On Tue, Sep 17, 2024 at 9:16 AM Stefan Monnier <monnier <at> iro.umontreal.ca> wrote:
>
> >> Recently new modes were added to the EditorConfig on GitHub, but those
> >> modes have not made their way into Emacs' EditorConfig implementation.
>
> The two code branches aren't in sync, indeed.  I'll see if I can bring
> our up-to-date with the upstream code ASAP.
>
> > The variable listing the modes is a defcustom, so users can update it
> > themselves.  We will never be able to be up-to-date with all the modes
> > out there that are not part of Emacs.
>
> Indeed.  For this reason the code in Emacs (not yet upstream) introduced
> `editorconfig-indent-size-vars` which is supposed to be set by the major
> modes themselves.
>
> So we should arguably change `ada/gpr(-ts)-mode` to set
> `editorconfig-indent-size-vars`.
>

Ah, I was not aware of editorconfig-indent-size-vars.  I can update
the modes I maintain (ada-ts-mode, gpr-ts-mode) to use that instead.

Looking at editorconfig--default-indent-size-function, it looks like
if it also supported an "-ident" suffix, that would probably cover
ada-mode and gpr-mode as well.  Those modes are currently without a
maintainer, so might be good to either add them to
editorconfig-indentation-alist or to adjust the default function to
support the "-indent" suffix.




This bug report was last modified 274 days ago.

Previous Next


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