]> git.eshelyaron.com Git - emacs.git/commit
Make c-ts-mode-set-style's effect local (bug#61245)
authorYuan Fu <casouri@gmail.com>
Sat, 4 Feb 2023 02:35:33 +0000 (18:35 -0800)
committerYuan Fu <casouri@gmail.com>
Sat, 4 Feb 2023 23:33:26 +0000 (15:33 -0800)
commitb80f36b88c76b8f8ce3f2e6f9bd56aa2ccbe7b39
tree1e4a8f660ce45e3e267778badf76362174f2835c
parent671e5d9fad5852165f4e63992c91cd6f8c715004
Make c-ts-mode-set-style's effect local (bug#61245)

Now c-ts-mode-set-style's effect is local, and there is a new function
c-ts-mode-set-global-style that changes the global setting.

* lisp/progmodes/c-ts-mode.el:
(c-ts-mode--indent-style-setter): Use c-ts-mode-set-style.
(c-ts-mode-indent-style)
(c-ts-mode--prompt-for-style): Minor change in docstring.
(c-ts-mode-set-global-style): New function (from c-ts-mode-set-style).
(c-ts-mode-set-local-style): Remove function (became c-ts-mode-set-style).
(c-ts-mode-set-style): Renamed from c-ts-mode-set-local-style.
* test/lisp/progmodes/c-ts-mode-resources/indent-bsd.erts:
* test/lisp/progmodes/c-ts-mode-resources/indent.erts: Use
c-ts-mode-set-style.
lisp/progmodes/c-ts-mode.el
test/lisp/progmodes/c-ts-mode-resources/indent-bsd.erts
test/lisp/progmodes/c-ts-mode-resources/indent.erts