GNU bug report logs - #70105
30.0.50; Emacs should support EditorConfig out of the box

Previous Next

Package: emacs;

Reported by: Stefan Monnier <monnier <at> iro.umontreal.ca>

Date: Sun, 31 Mar 2024 13:45:01 UTC

Severity: normal

Found in version 30.0.50

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

Bug is archived. No further changes may be made.

Full log


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

From: Stefan Kangas <stefankangas <at> gmail.com>
To: Stefan Monnier <monnier <at> iro.umontreal.ca>
Cc: jcs090218 <at> gmail.com, bjorn.bidar <at> thaodan.de, Eli Zaretskii <eliz <at> gnu.org>,
 8slashes+git <at> gmail.com, 70105 <at> debbugs.gnu.org
Subject: Re: bug#70105: 30.0.50;
 Emacs should support EditorConfig out of the box
Date: Wed, 19 Jun 2024 16:52:56 +0000
Stefan Monnier <monnier <at> iro.umontreal.ca> 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




This bug report was last modified 330 days ago.

Previous Next


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