From: Eli Zaretskii Date: Thu, 5 Jan 2023 06:40:07 +0000 (+0200) Subject: Make 'toml-ts-mode' optional X-Git-Tag: emacs-29.0.90~835 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=83ce7c861e1d02092a0affa95283566f65bd07d1;p=emacs.git Make 'toml-ts-mode' optional * etc/NEWS: Reflect the fact that 'toml-ts-mode' is optional. * lisp/textmodes/toml-ts-mode.el (auto-mode-alist): Don't autoload the addition of 'toml-ts-mode'. (Bug#60559) --- diff --git a/etc/NEWS b/etc/NEWS index 91e470306c7..4f88aa82cd9 100644 --- a/etc/NEWS +++ b/etc/NEWS @@ -3251,9 +3251,8 @@ extension is ".cmake". +++ *** New major mode 'toml-ts-mode'. -A major mode based on the tree-sitter library for editing files -written in TOML, a format for writing configuration files. It is -auto-enabled for files with the ".toml" extension. +An optional major mode based on the tree-sitter library for editing +files written in TOML, a format for writing configuration files. +++ *** New major mode 'go-ts-mode'. diff --git a/lisp/textmodes/toml-ts-mode.el b/lisp/textmodes/toml-ts-mode.el index 1b68632f58c..2430c5f3e76 100644 --- a/lisp/textmodes/toml-ts-mode.el +++ b/lisp/textmodes/toml-ts-mode.el @@ -117,7 +117,6 @@ Return nil if there is no name or if NODE is not a defun node." (or (treesit-node-text (treesit-node-child node 1) t) "Root table")))) -;;;###autoload (add-to-list 'auto-mode-alist '("\\.toml\\'" . toml-ts-mode)) ;;;###autoload