1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2026-03-14 02:42:46 -07:00
emacs/lisp/progmodes
Stefan Monnier 3a2a095dff Fix broken FOO-mode-indent-offset convention
Variable names to control indentation have never been
standardized, but over the years some conventions have naturally
arisen, mostly the use of `FOO-indent-offset`,
`FOO-basic-offset`, or `FOO-indent-level` for `FOO-mode`.

When the new TS modes were introduced, a mistake was made that
I failed to catch at the time, where those modes used
`FOO-mode-indent-offset` instead of the "standard" `FOO-indent-offset`.
In order to save packages like `editorconfig-mode` and `indent-bars-mode`
from having to cater to yet-another-convention, rename those
vars to what they should have been all along.

* lisp/editorconfig.el (editorconfig-indentation-alist): Remove the
ad-hoc entries for the deviating modes using `FOO-mode-indent-offset`.

* lisp/textmodes/toml-ts-mode.el (toml-ts-indent-offset):
* lisp/textmodes/mhtml-ts-mode.el (mhtml-ts-js-css-indent-offset)
(mhtml-ts--js-css-indent-offset):
* lisp/textmodes/html-ts-mode.el (html-ts-indent-offset):
* lisp/progmodes/typescript-ts-mode.el (typescript-ts-indent-offset):
* lisp/progmodes/php-ts-mode.el (php-ts-indent-offset)
(php-ts-js-css-indent-offset, php-ts-html-indent-offset):
* lisp/progmodes/json-ts-mode.el (json-ts-indent-offset):
* lisp/progmodes/java-ts-mode.el (java-ts-indent-offset)
(java-ts-method-chaining-indent-offset):
* lisp/progmodes/go-ts-mode.el (go-ts-indent-offset):
* lisp/progmodes/csharp-mode.el (csharp-ts-indent-offset):
* lisp/progmodes/cmake-ts-mode.el (cmake-ts-indent-offset):
* lisp/progmodes/c-ts-mode.el (c-ts-indent-offset):
Rename `FOO-mode-indent-offset` to `FOO-indent-offset`,
with obsolete alias.
2026-02-22 18:48:57 -05:00
..
antlr-mode.el ; Add 2026 to copyright years. 2026-01-01 12:54:34 +00:00
asm-mode.el ; Add 2026 to copyright years. 2026-01-01 12:54:34 +00:00
autoconf.el ; Add 2026 to copyright years. 2026-01-01 12:54:34 +00:00
bat-mode.el ; Add 2026 to copyright years. 2026-01-01 12:54:34 +00:00
bug-reference.el ; Add 2026 to copyright years. 2026-01-01 12:54:34 +00:00
c-ts-common.el ; Add 2026 to copyright years. 2026-01-01 12:54:34 +00:00
c-ts-mode.el Fix broken FOO-mode-indent-offset convention 2026-02-22 18:48:57 -05:00
cc-align.el ; Add 2026 to copyright years. 2026-01-01 12:54:34 +00:00
cc-awk.el ; Add 2026 to copyright years. 2026-01-01 12:54:34 +00:00
cc-bytecomp.el ; Add 2026 to copyright years. 2026-01-01 12:54:34 +00:00
cc-cmds.el ; Add 2026 to copyright years. 2026-01-01 12:54:34 +00:00
cc-defs.el ; Add 2026 to copyright years. 2026-01-01 12:54:34 +00:00
cc-engine.el ; Add 2026 to copyright years. 2026-01-01 12:54:34 +00:00
cc-fonts.el ; Add 2026 to copyright years. 2026-01-01 12:54:34 +00:00
cc-guess.el ; Add 2026 to copyright years. 2026-01-01 12:54:34 +00:00
cc-langs.el ; Add 2026 to copyright years. 2026-01-01 12:54:34 +00:00
cc-menus.el ; Add 2026 to copyright years. 2026-01-01 12:54:34 +00:00
cc-mode.el ; Add 2026 to copyright years. 2026-01-01 12:54:34 +00:00
cc-styles.el ; Add 2026 to copyright years. 2026-01-01 12:54:34 +00:00
cc-vars.el ; Add 2026 to copyright years. 2026-01-01 12:54:34 +00:00
cfengine.el ; Add 2026 to copyright years. 2026-01-01 12:54:34 +00:00
cl-font-lock.el ; Add 2026 to copyright years. 2026-01-01 12:54:34 +00:00
cmacexp.el ; Add 2026 to copyright years. 2026-01-01 12:54:34 +00:00
cmake-ts-mode.el Fix broken FOO-mode-indent-offset convention 2026-02-22 18:48:57 -05:00
compile.el Have default 'compile-command' run make in parallel 2026-01-25 12:26:19 +01:00
cperl-mode.el ; Add 2026 to copyright years. 2026-01-01 12:54:34 +00:00
cpp.el ; Add 2026 to copyright years. 2026-01-01 12:54:34 +00:00
csharp-mode.el Fix broken FOO-mode-indent-offset convention 2026-02-22 18:48:57 -05:00
cwarn.el ; Add 2026 to copyright years. 2026-01-01 12:54:34 +00:00
dcl-mode.el ; Add 2026 to copyright years. 2026-01-01 12:54:34 +00:00
dockerfile-ts-mode.el ; Add 2026 to copyright years. 2026-01-01 12:54:34 +00:00
ebnf-abn.el ; Add 2026 to copyright years. 2026-01-01 12:54:34 +00:00
ebnf-bnf.el ; Add 2026 to copyright years. 2026-01-01 12:54:34 +00:00
ebnf-dtd.el ; Add 2026 to copyright years. 2026-01-01 12:54:34 +00:00
ebnf-ebx.el ; Add 2026 to copyright years. 2026-01-01 12:54:34 +00:00
ebnf-iso.el ; Add 2026 to copyright years. 2026-01-01 12:54:34 +00:00
ebnf-otz.el ; Add 2026 to copyright years. 2026-01-01 12:54:34 +00:00
ebnf-yac.el ; Add 2026 to copyright years. 2026-01-01 12:54:34 +00:00
ebnf2ps.el ; Add 2026 to copyright years. 2026-01-01 12:54:34 +00:00
ebrowse.el ; Add 2026 to copyright years. 2026-01-01 12:54:34 +00:00
eglot.el Fix 'eglot-imenu' 2026-02-14 14:22:08 +02:00
elisp-mode.el elisp--highlight-function-argument: Handle special syntax correctly 2026-02-15 11:16:11 +00:00
elixir-ts-mode.el ; Add 2026 to copyright years. 2026-01-01 12:54:34 +00:00
erts-mode.el ; Add 2026 to copyright years. 2026-01-01 12:54:34 +00:00
etags-regen.el etags-regen--build-program-options: Expand the error message text 2026-02-07 02:07:30 +02:00
etags.el etags--xref-backend: Move the definition to autoloads 2026-02-07 02:06:52 +02:00
executable.el ; Add 2026 to copyright years. 2026-01-01 12:54:34 +00:00
f90.el ; Add 2026 to copyright years. 2026-01-01 12:54:34 +00:00
flymake-cc.el ; Add 2026 to copyright years. 2026-01-01 12:54:34 +00:00
flymake-proc.el ; Add 2026 to copyright years. 2026-01-01 12:54:34 +00:00
flymake.el Flymake: clarify :region in docstring of f-diagnostic-functions 2026-01-11 03:42:01 +00:00
fortran.el ; Add 2026 to copyright years. 2026-01-01 12:54:34 +00:00
gdb-mi.el Fix Emacs responsiveness when debugging many thread-exit events 2026-01-11 17:19:49 +02:00
glasses.el ; Add 2026 to copyright years. 2026-01-01 12:54:34 +00:00
go-ts-mode.el Fix broken FOO-mode-indent-offset convention 2026-02-22 18:48:57 -05:00
grep.el ; Remove redundant cl-lib runtime dependencies across lisp/ 2026-01-17 15:32:15 +02:00
gud.el ; Add 2026 to copyright years. 2026-01-01 12:54:34 +00:00
heex-ts-mode.el ; Add 2026 to copyright years. 2026-01-01 12:54:34 +00:00
hideif.el ; Add 2026 to copyright years. 2026-01-01 12:54:34 +00:00
hideshow.el hideshow: Use 'message' instead of 'user-error'. (Bug#80201) 2026-01-21 09:46:23 +02:00
icon.el ; Add 2026 to copyright years. 2026-01-01 12:54:34 +00:00
inf-lisp.el ; Add 2026 to copyright years. 2026-01-01 12:54:34 +00:00
java-ts-mode.el Fix broken FOO-mode-indent-offset convention 2026-02-22 18:48:57 -05:00
js.el ; Add 2026 to copyright years. 2026-01-01 12:54:34 +00:00
json-ts-mode.el Fix broken FOO-mode-indent-offset convention 2026-02-22 18:48:57 -05:00
ld-script.el ; Add 2026 to copyright years. 2026-01-01 12:54:34 +00:00
lua-mode.el Fontify 'table.create' in 'lua-mode' 2026-01-03 13:19:27 +02:00
lua-ts-mode.el ; Add 2026 to copyright years. 2026-01-01 12:54:34 +00:00
m4-mode.el Improve m4-mode font lock 2026-02-22 17:10:17 +01:00
make-mode.el make-mode.el: Avoid obsolete font-lock-*-face` variables 2026-02-11 15:35:03 -05:00
meta-mode.el ; Add 2026 to copyright years. 2026-01-01 12:54:34 +00:00
mixal-mode.el ; Add 2026 to copyright years. 2026-01-01 12:54:34 +00:00
modula2.el
octave.el ; Add 2026 to copyright years. 2026-01-01 12:54:34 +00:00
opascal.el ; Add 2026 to copyright years. 2026-01-01 12:54:34 +00:00
pascal.el ; Add 2026 to copyright years. 2026-01-01 12:54:34 +00:00
peg.el ; Add 2026 to copyright years. 2026-01-01 12:54:34 +00:00
perl-mode.el ; Add 2026 to copyright years. 2026-01-01 12:54:34 +00:00
php-ts-mode.el Fix broken FOO-mode-indent-offset convention 2026-02-22 18:48:57 -05:00
prog-mode.el ; Add 2026 to copyright years. 2026-01-01 12:54:34 +00:00
project.el Use git ls-files --deduplicate in project.el (bug#80409) 2026-02-20 02:12:22 +02:00
prolog.el ; Add 2026 to copyright years. 2026-01-01 12:54:34 +00:00
ps-mode.el ; Add 2026 to copyright years. 2026-01-01 12:54:34 +00:00
python.el Use a custom Pdb class in the Python shell 2026-02-21 16:51:28 +02:00
ruby-mode.el ; Add 2026 to copyright years. 2026-01-01 12:54:34 +00:00
ruby-ts-mode.el ; Add 2026 to copyright years. 2026-01-01 12:54:34 +00:00
rust-ts-mode.el Fix broken FOO-mode-indent-offset convention 2026-02-22 18:48:57 -05:00
scheme.el ; Add 2026 to copyright years. 2026-01-01 12:54:34 +00:00
sh-script.el ; Add 2026 to copyright years. 2026-01-01 12:54:34 +00:00
simula.el ; Add 2026 to copyright years. 2026-01-01 12:54:34 +00:00
sql.el Update SQLite font-lock rules 2026-01-15 10:56:45 +00:00
subword.el ; Add 2026 to copyright years. 2026-01-01 12:54:34 +00:00
tcl.el ; Add 2026 to copyright years. 2026-01-01 12:54:34 +00:00
typescript-ts-mode.el Fix broken FOO-mode-indent-offset convention 2026-02-22 18:48:57 -05:00
vera-mode.el ; Add 2026 to copyright years. 2026-01-01 12:54:34 +00:00
verilog-mode.el verilog-mode.el: Fix parameter replacements in AUTOINST. 2026-01-18 09:59:17 -05:00
vhdl-mode.el ; Add 2026 to copyright years. 2026-01-01 12:54:34 +00:00
which-func.el ; Add 2026 to copyright years. 2026-01-01 12:54:34 +00:00
xref.el Allow using xref-find-references without visiting a tags table 2026-02-06 05:56:52 +02:00
xscheme.el ; Add 2026 to copyright years. 2026-01-01 12:54:34 +00:00