GNU bug report logs - #72808
30.0.90; editorconfig doesn't set tab_width to a default value

Previous Next

Package: emacs;

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

Date: Sun, 25 Aug 2024 19:28:01 UTC

Severity: normal

Tags: wontfix

Merged with 72790

Found in version 30.0.90

Done: Eli Zaretskii <eliz <at> gnu.org>

Bug is archived. No further changes may be made.

Full log


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

From: Damien Cassou <damien <at> cassou.me>
To: Stefan Monnier <monnier <at> iro.umontreal.ca>
Cc: bug-gnu-emacs <at> gnu.org, Jay Kamat <jaygkamat <at> gmail.com>,
 10sr <8.slashes <at> gmail.com>
Subject: Re: 30.0.90; editorconfig doesn't set tab_width to a default value
Date: Sun, 25 Aug 2024 22:23:14 +0200
Hi Stefan,

Stefan Monnier <monnier <at> iro.umontreal.ca> writes:
>> when a .editorconfig file assigns a value for "indent_size" and no
>> value for "tab_width", I expect "tab_width" to default to the value of
>> "indent_size" as described in the documentation [1]. Unfortunately,
>
> Yes, I consciously disagreed with the standard here.  IMO, this better
> reflects Emacs's habitual behavior, so it makes more sense for Emacs users.
>
> Indeed, you can already get the "missing" behavior  by setting
> `indent_size` to `tab` and then setting `tab_width` to the desired
> indentation size.

The problem is that the .editorconfig file can be shared across users of
different editors for a given project. Emacs disagreeing with the
standard means that Emacs users will now have to explain to their
colleagues why they are introducing a change in a .editorconfig file
that the standard says is unnecessary. This is putting me, at least, in
an uncomfortable position with non-Emacs users in my team. Additionally,
if other editors disagree with the standard for other reasons, we may
quickly reach a situation where no content of .editorconfig will suit
everyone.

-- 
Damien Cassou

"Success is the ability to go from one failure to another without
losing enthusiasm." --Winston Churchill




This bug report was last modified 203 days ago.

Previous Next


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