emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

emacs-29 83ce7c861e: Make 'toml-ts-mode' optional


From: Eli Zaretskii
Subject: emacs-29 83ce7c861e: Make 'toml-ts-mode' optional
Date: Thu, 5 Jan 2023 01:40:48 -0500 (EST)

branch: emacs-29
commit 83ce7c861e1d02092a0affa95283566f65bd07d1
Author: Eli Zaretskii <eliz@gnu.org>
Commit: Eli Zaretskii <eliz@gnu.org>

    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)
---
 etc/NEWS                       | 5 ++---
 lisp/textmodes/toml-ts-mode.el | 1 -
 2 files changed, 2 insertions(+), 4 deletions(-)

diff --git a/etc/NEWS b/etc/NEWS
index 91e470306c..4f88aa82cd 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 1b68632f58..2430c5f3e7 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



reply via email to

[Prev in Thread] Current Thread [Next in Thread]