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 #95 received at 70105 <at> debbugs.gnu.org (full text, mbox):

From: Stefan Monnier <monnier <at> iro.umontreal.ca>
To: Stefan Kangas <stefankangas <at> gmail.com>
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 15:56:40 -0400
>>> In other words, when you have:
>>>
>>>     /foo/bar/.dir-locals.el
>>>     /foo/bar/.editorconfig
>>
>> `.dir-locals.el` should take precedence in that case.
>
> How does this read?
>
>     When both @file{.editorconfig} and @code{.dir-locals.el} files are found
>     and they both set the same settings, the nearest file takes precedence.
>     If they are equally close, @file{.dir-locals.el} takes precedence.

Doesn't this risk suggesting that the settings from only one of the two
files will be used?

Here's my current text:

    When both @file{.editorconfig} and @file{.dir-locals.el} files are
    found, their settings are combined, and in case of a conflict, the
    setting coming from the closest file takes precedence.
    If they are equally close, @file{.dir-locals.el} takes precedence.


- Stefan





This bug report was last modified 329 days ago.

Previous Next


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