unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* bug#73285: 30.0.90; editorconfig-indentation-alist missing modes
@ 2024-09-15 21:16 Troy Brown
  2024-09-16 11:53 ` Eli Zaretskii
  0 siblings, 1 reply; 4+ messages in thread
From: Troy Brown @ 2024-09-15 21:16 UTC (permalink / raw)
  To: 73285; +Cc: Stefan Monnier

Recently new modes were added to the EditorConfig on GitHub, but those
modes have not made their way into Emacs' EditorConfig implementation.
I'd appreciate if the following modes could be added to the Emacs
version:
  - ada-mode
  - ada-ts-mode
  - gpr-mode
  - gpr-ts-mode

See this commit for details:
 - https://github.com/editorconfig/editorconfig-emacs/commit/7c7b1f81f8fac654791fa2b04da55edced2cef33





^ permalink raw reply	[flat|nested] 4+ messages in thread

* bug#73285: 30.0.90; editorconfig-indentation-alist missing modes
  2024-09-15 21:16 bug#73285: 30.0.90; editorconfig-indentation-alist missing modes Troy Brown
@ 2024-09-16 11:53 ` Eli Zaretskii
  2024-09-17 13:16   ` Stefan Monnier via Bug reports for GNU Emacs, the Swiss army knife of text editors
  0 siblings, 1 reply; 4+ messages in thread
From: Eli Zaretskii @ 2024-09-16 11:53 UTC (permalink / raw)
  To: Troy Brown; +Cc: 73285, monnier

> Cc: Stefan Monnier <monnier@iro.umontreal.ca>
> From: Troy Brown <brownts@troybrown.dev>
> Date: Sun, 15 Sep 2024 17:16:08 -0400
> 
> Recently new modes were added to the EditorConfig on GitHub, but those
> modes have not made their way into Emacs' EditorConfig implementation.
> I'd appreciate if the following modes could be added to the Emacs
> version:
>   - ada-mode
>   - ada-ts-mode
>   - gpr-mode
>   - gpr-ts-mode

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.

Stefan, any suggestions or comments?





^ permalink raw reply	[flat|nested] 4+ messages in thread

* bug#73285: 30.0.90; editorconfig-indentation-alist missing modes
  2024-09-16 11:53 ` Eli Zaretskii
@ 2024-09-17 13:16   ` Stefan Monnier via Bug reports for GNU Emacs, the Swiss army knife of text editors
  2024-09-17 22:28     ` Troy Brown
  0 siblings, 1 reply; 4+ messages in thread
From: Stefan Monnier via Bug reports for GNU Emacs, the Swiss army knife of text editors @ 2024-09-17 13:16 UTC (permalink / raw)
  To: Eli Zaretskii; +Cc: 73285, Troy Brown

>> 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`.


        Stefan






^ permalink raw reply	[flat|nested] 4+ messages in thread

* bug#73285: 30.0.90; editorconfig-indentation-alist missing modes
  2024-09-17 13:16   ` Stefan Monnier via Bug reports for GNU Emacs, the Swiss army knife of text editors
@ 2024-09-17 22:28     ` Troy Brown
  0 siblings, 0 replies; 4+ messages in thread
From: Troy Brown @ 2024-09-17 22:28 UTC (permalink / raw)
  To: Stefan Monnier; +Cc: Eli Zaretskii, 73285

On Tue, Sep 17, 2024 at 9:16 AM Stefan Monnier <monnier@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.





^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2024-09-17 22:28 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-09-15 21:16 bug#73285: 30.0.90; editorconfig-indentation-alist missing modes Troy Brown
2024-09-16 11:53 ` Eli Zaretskii
2024-09-17 13:16   ` Stefan Monnier via Bug reports for GNU Emacs, the Swiss army knife of text editors
2024-09-17 22:28     ` Troy Brown

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).