unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* bug#73991: EditorConfig bundled with Emacs 30 does not set tab-width
@ 2024-10-24 17:49 Kenta USAMI
  2024-10-24 18:05 ` Eli Zaretskii
  2024-10-24 19:56 ` Stefan Monnier via Bug reports for GNU Emacs, the Swiss army knife of text editors
  0 siblings, 2 replies; 13+ messages in thread
From: Kenta USAMI @ 2024-10-24 17:49 UTC (permalink / raw)
  To: 73991

[-- Attachment #1: Type: text/plain, Size: 1603 bytes --]

I use Emacs 30.0.91 and editorconfig-mode.

Emacs version is follows:
> This is GNU Emacs 30.0.91 (build 1, aarch64-apple-darwin23.6.0, NS
>  appkit-2487.70 Version 14.7 (Build 23H124)) of 2024-10-22

I have an .editorconfig file like this:

# .editorconfig
root = true

[*.js]
indent_size = 4
indent_style = tab
# .editorconfig ends here

When I open a *.js file in the same directory, the tab-width variable is
not set.

In the editorconfig of Emacs 28.2 and NonGNU-devel ELPA 2024-Jul-28 version
installed on another machine, when I add (debug-on-variable-change
'tab-width), I get a stack trace like this:

Debugger entered--setting tab-width in buffer test.js to 4:
  debug--implement-debug-watch(tab-width 4 set #<buffer test.js>)
  editorconfig-set-indentation("tab" "4" "4")
  editorconfig-set-local-variables(#<hash-table eql 3/65 0x15612d120fc3>)
  editorconfig--advice-find-file-noselect(#<subr find-file-noselect>
"/home/tadsan/poc-emacs30-editorconfig/test.js")
  apply(editorconfig--advice-find-file-noselect #<subr find-file-noselect>
"/home/tadsan/poc-emacs30-editorconfig/test.js")
  find-file-noselect("/home/tadsan/poc-emacs30-editorconfig/test.js")
  command-line-1(("-l" "init.el" "test.js"))
  command-line()
  normal-top-level()

Emacs version is follows:
> GNU Emacs 28.2 (build 2, x86_64-pc-linux-gnu) of 2023-05-14, modified by
Debian

In Emacs 30.0.91, the debugger does not respond when watching the variable.

The files I used to check the operation are below:
https://github.com/zonuexe/poc-emacs30-editorconfig

Thank you in advance for your work on the Emacs 30 release.

[-- Attachment #2: Type: text/html, Size: 2176 bytes --]

^ permalink raw reply	[flat|nested] 13+ messages in thread

end of thread, other threads:[~2024-10-26 16:20 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-10-24 17:49 bug#73991: EditorConfig bundled with Emacs 30 does not set tab-width Kenta USAMI
2024-10-24 18:05 ` Eli Zaretskii
2024-10-24 19:56 ` Stefan Monnier via Bug reports for GNU Emacs, the Swiss army knife of text editors
2024-10-25  3:44   ` Kenta USAMI
2024-10-25  7:37     ` Eli Zaretskii
2024-10-25  9:07       ` Kenta USAMI
2024-10-25 10:18         ` Eli Zaretskii
2024-10-25 10:49           ` Kenta USAMI
2024-10-25 17:27         ` Stefan Monnier via Bug reports for GNU Emacs, the Swiss army knife of text editors
2024-10-25 17:25     ` Stefan Monnier via Bug reports for GNU Emacs, the Swiss army knife of text editors
2024-10-26 15:20       ` Stefan Monnier via Bug reports for GNU Emacs, the Swiss army knife of text editors
2024-10-26 16:20         ` Kenta USAMI
2024-10-25  6:18   ` Eli Zaretskii

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