1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2026-03-12 09:51:05 -07:00
emacs/lisp/textmodes
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
..
artist.el ; Add 2026 to copyright years. 2026-01-01 12:54:34 +00:00
bib-mode.el ; Add 2026 to copyright years. 2026-01-01 12:54:34 +00:00
bibtex-style.el ; Add 2026 to copyright years. 2026-01-01 12:54:34 +00:00
bibtex.el ; Add 2026 to copyright years. 2026-01-01 12:54:34 +00:00
conf-mode.el ; Add 2026 to copyright years. 2026-01-01 12:54:34 +00:00
css-mode.el ; Add 2026 to copyright years. 2026-01-01 12:54:34 +00:00
dns-mode.el ; Add 2026 to copyright years. 2026-01-01 12:54:34 +00:00
emacs-authors-mode.el ; Add 2026 to copyright years. 2026-01-01 12:54:34 +00:00
emacs-news-mode.el ; Remove redundant cl-lib runtime dependencies across lisp/ 2026-01-17 15:32:15 +02:00
enriched.el ; Add 2026 to copyright years. 2026-01-01 12:54:34 +00:00
fill.el ; Add 2026 to copyright years. 2026-01-01 12:54:34 +00:00
flyspell.el ; Add 2026 to copyright years. 2026-01-01 12:54:34 +00:00
glyphless-mode.el ; Add 2026 to copyright years. 2026-01-01 12:54:34 +00:00
html-ts-mode.el Fix broken FOO-mode-indent-offset convention 2026-02-22 18:48:57 -05:00
ispell.el ; Improve docs for last change. 2026-01-14 18:48:56 +00:00
less-css-mode.el ; Add 2026 to copyright years. 2026-01-01 12:54:34 +00:00
makeinfo.el ; Add 2026 to copyright years. 2026-01-01 12:54:34 +00:00
markdown-ts-mode.el ; Use 'treesit-declare-unavailable-functions' in markdown-ts-mode. 2026-02-22 10:46:01 +02:00
mhtml-mode.el ; Add 2026 to copyright years. 2026-01-01 12:54:34 +00:00
mhtml-ts-mode.el Fix broken FOO-mode-indent-offset convention 2026-02-22 18:48:57 -05:00
nroff-mode.el ; Add 2026 to copyright years. 2026-01-01 12:54:34 +00:00
page-ext.el ; Fix last change 2026-02-14 13:59:26 +02:00
page.el ; Add 2026 to copyright years. 2026-01-01 12:54:34 +00:00
paragraphs.el ; Add 2026 to copyright years. 2026-01-01 12:54:34 +00:00
picture.el Support cons cell for 'line-spacing' 2026-01-24 13:32:44 +02:00
pixel-fill.el ; Add 2026 to copyright years. 2026-01-01 12:54:34 +00:00
po.el ; Add 2026 to copyright years. 2026-01-01 12:54:34 +00:00
refbib.el ; Add 2026 to copyright years. 2026-01-01 12:54:34 +00:00
refer.el ; Add 2026 to copyright years. 2026-01-01 12:54:34 +00:00
refill.el ; Add 2026 to copyright years. 2026-01-01 12:54:34 +00:00
reftex-auc.el ; Remove redundant cl-lib runtime dependencies across lisp/ 2026-01-17 15:32:15 +02:00
reftex-cite.el ; Add 2026 to copyright years. 2026-01-01 12:54:34 +00:00
reftex-dcr.el ; Remove redundant cl-lib runtime dependencies across lisp/ 2026-01-17 15:32:15 +02:00
reftex-global.el ; Remove redundant cl-lib runtime dependencies across lisp/ 2026-01-17 15:32:15 +02:00
reftex-index.el ; Add 2026 to copyright years. 2026-01-01 12:54:34 +00:00
reftex-parse.el ; Add 2026 to copyright years. 2026-01-01 12:54:34 +00:00
reftex-ref.el ; Add 2026 to copyright years. 2026-01-01 12:54:34 +00:00
reftex-sel.el ; Remove redundant cl-lib runtime dependencies across lisp/ 2026-01-17 15:32:15 +02:00
reftex-toc.el ; Add 2026 to copyright years. 2026-01-01 12:54:34 +00:00
reftex-vars.el ; Don't mark some symbols as links 2026-01-01 16:12:43 +01:00
reftex.el ; Add 2026 to copyright years. 2026-01-01 12:54:34 +00:00
remember.el ; Add 2026 to copyright years. 2026-01-01 12:54:34 +00:00
rst.el ; Add 2026 to copyright years. 2026-01-01 12:54:34 +00:00
sgml-mode.el sgml-mode.el: Prefer forward-sexp over forward-list 2026-01-13 10:18:46 -05:00
string-edit.el ; Add 2026 to copyright years. 2026-01-01 12:54:34 +00:00
table.el ; Add 2026 to copyright years. 2026-01-01 12:54:34 +00:00
tex-mode.el ; Add 2026 to copyright years. 2026-01-01 12:54:34 +00:00
texinfmt.el ; Add 2026 to copyright years. 2026-01-01 12:54:34 +00:00
texinfo.el ; Add 2026 to copyright years. 2026-01-01 12:54:34 +00:00
texnfo-upd.el ; Add 2026 to copyright years. 2026-01-01 12:54:34 +00:00
text-mode.el New minor mode center-line-mode 2026-01-17 14:33:35 +02:00
tildify.el ; Add 2026 to copyright years. 2026-01-01 12:54:34 +00:00
toml-ts-mode.el Fix broken FOO-mode-indent-offset convention 2026-02-22 18:48:57 -05:00
two-column.el ; Add 2026 to copyright years. 2026-01-01 12:54:34 +00:00
underline.el ; Add 2026 to copyright years. 2026-01-01 12:54:34 +00:00
word-wrap-mode.el ; Add 2026 to copyright years. 2026-01-01 12:54:34 +00:00
yaml-ts-mode.el (yaml-ts-mode-yamllint-options): Use a list of strings 2026-02-04 11:03:57 -05:00