unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Stefan Monnier via "Bug reports for GNU Emacs, the Swiss army knife of text editors" <bug-gnu-emacs@gnu.org>
To: Damien Cassou <damien@cassou.me>
Cc: 72808@debbugs.gnu.org, jaygkamat@gmail.com, 8.slashes@gmail.com
Subject: bug#72808: 30.0.90; editorconfig doesn't set tab_width to a default value
Date: Sun, 25 Aug 2024 15:25:56 -0400	[thread overview]
Message-ID: <jwvv7zo9zpb.fsf-monnier+emacs@gnu.org> (raw)
In-Reply-To: <pmg-aquar-1261481-87le0mrqpn.fsf@cassou.me> (Damien Cassou's message of "Sat, 24 Aug 2024 15:32:52 +0200")

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

> Possible workarounds:
>
> 1. One can use MELPA's version of editorconfig instead of the builtin
>    one; or
> 2. One can explicitly set "tab_width" in .editorconfig

Indeed, you can already get the "missing" behavior  by setting
`indent_size` to `tab` and then setting `tab_width` to the desired
indentation size.






       reply	other threads:[~2024-08-25 19:25 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <pmg-aquar-1261481-87le0mrqpn.fsf@cassou.me>
2024-08-25 19:25 ` Stefan Monnier via Bug reports for GNU Emacs, the Swiss army knife of text editors [this message]
2024-08-25 20:23   ` bug#72808: 30.0.90; editorconfig doesn't set tab_width to a default value Damien Cassou
2024-09-07  7:27     ` Eli Zaretskii
2024-09-08 11:25       ` Stefan Monnier via Bug reports for GNU Emacs, the Swiss army knife of text editors
2024-09-21  9:07         ` Eli Zaretskii

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=jwvv7zo9zpb.fsf-monnier+emacs@gnu.org \
    --to=bug-gnu-emacs@gnu.org \
    --cc=72808@debbugs.gnu.org \
    --cc=8.slashes@gmail.com \
    --cc=damien@cassou.me \
    --cc=jaygkamat@gmail.com \
    --cc=monnier@iro.umontreal.ca \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).