emacs-diffs
[Top][All Lists]
Advanced

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

emacs-29 da8e4b6fe43: Revert previous change in go-ts-mode.el


From: Yuan Fu
Subject: emacs-29 da8e4b6fe43: Revert previous change in go-ts-mode.el
Date: Fri, 3 Mar 2023 17:01:18 -0500 (EST)

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

    Revert previous change in go-ts-mode.el
    
    Reverts 59365f928565f1be551b1697b9246b00cb87a9b7 and
    56cd810b9d1a4d537bee5a2fd954d6e0d346631a.
    
    Reverting because the use of treesit-ready-p is very much intentional.
    
    * lisp/progmodes/go-ts-mode.el (treesit-ready-p): Revert change.
---
 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 fbe085a2c6c..e8f93d14744 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-language-available-p 'gomod)
+(if (treesit-ready-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]