emacs-diffs
[Top][All Lists]
Advanced

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

emacs-29 59365f92856: * lisp/progmodes/go-ts-mode.el: Use treesit-langua


From: Yuan Fu
Subject: emacs-29 59365f92856: * lisp/progmodes/go-ts-mode.el: Use treesit-language-available-p.
Date: Wed, 1 Mar 2023 17:39:24 -0500 (EST)

branch: emacs-29
commit 59365f928565f1be551b1697b9246b00cb87a9b7
Author: Yuan Fu <casouri@gmail.com>
Commit: Yuan Fu <casouri@gmail.com>

    * lisp/progmodes/go-ts-mode.el: Use treesit-language-available-p.
    
    treesit-ready-p does more checks than language grammar availability.
---
 lisp/progmodes/go-ts-mode.el | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lisp/progmodes/go-ts-mode.el b/lisp/progmodes/go-ts-mode.el
index 6043c86ac93..fbe085a2c6c 100644
--- a/lisp/progmodes/go-ts-mode.el
+++ b/lisp/progmodes/go-ts-mode.el
@@ -393,7 +393,7 @@ what the parent of the node would be if it were a node."
 
     (treesit-major-mode-setup)))
 
-(if (treesit-ready-p 'gomod t)
+(if (treesit-language-available-p 'gomod)
     (add-to-list 'auto-mode-alist '("/go\\.mod\\'" . go-mod-ts-mode)))
 
 (provide 'go-ts-mode)



reply via email to

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