Subject: bug#70105: 30.0.50; Emacs should support EditorConfig out of the box

From: Stefan Kangas <[email-masked]>
Date: Wed, 19 Jun 2024 16:52:56 +0000

Stefan Monnier <[email-masked]> writes:

> The settings come from a `.editorconfig` or `.dir-locals.el` file and
> apply to some other file.  "nearest" here is the distance between the
> file where the settings were found and where they apply.
>
> E.g. a setting from `/foo/bar/baz/.editorconfig` should take priority
> over a setting from `/foo/bar/.dir-locals.el` because it's closer to
> `/foo/bar/baz/mydir/myfile.agda`.
>
> Not sure you state it more clearly (short of writing out a long
> explanation like I've just done, which doesn't seem warranted).

Which one takes precedence if they are equally near?

In other words, when you have:

    /foo/bar/.dir-locals.el
    /foo/bar/.editorconfig