emacs-diffs
[Top][All Lists]
Advanced

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

emacs-29 56cd810b9d1: Don’t signal warning when loading go-ts-mode.el w


From: Yuan Fu
Subject: emacs-29 56cd810b9d1: Don’t signal warning when loading go-ts-mode.el without grammar
Date: Wed, 1 Mar 2023 17:37:26 -0500 (EST)

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

    Don’t signal warning when loading go-ts-mode.el without grammar
    
    * lisp/progmodes/go-ts-mode.el: Add a QUIET flag to the call of
    treesit-ready-p, so that it doesn't signal a warning if
    go-mod (tree-sitter grammar) is not available.
---
 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 e8f93d14744..6043c86ac93 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)
+(if (treesit-ready-p 'gomod t)
     (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]