From bf81706988f6b1b9d6e8033c8227f0129e04ef03 Mon Sep 17 00:00:00 2001 From: Stefan Kangas Date: Mon, 6 Nov 2023 08:51:59 +0100 Subject: [PATCH] Silence warning when requiring ruby-ts-mode * lisp/progmodes/ruby-ts-mode.el: Silence warning when requiring file without a treesitter grammar. --- lisp/progmodes/ruby-ts-mode.el | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lisp/progmodes/ruby-ts-mode.el b/lisp/progmodes/ruby-ts-mode.el index fabe5859779..4f85e1c63ff 100644 --- a/lisp/progmodes/ruby-ts-mode.el +++ b/lisp/progmodes/ruby-ts-mode.el @@ -25,7 +25,7 @@ ;;; Commentary: ;; This file defines ruby-ts-mode which is a major mode for editing -;; Ruby files that uses Tree Sitter to parse the language. More +;; Ruby files that uses Tree Sitter to parse the language. More ;; information about Tree Sitter can be found in the ELisp Info pages ;; as well as this website: https://tree-sitter.github.io/tree-sitter/ @@ -1198,7 +1198,7 @@ leading double colon is not added." (syntax-ppss-flush-cache (cl-loop for r in ranges minimize (car r)))))) -(if (treesit-ready-p 'ruby) +(if (treesit-ready-p 'ruby t) ;; Copied from ruby-mode.el. (add-to-list 'auto-mode-alist (cons (concat "\\(?:\\.\\(?:" -- 2.39.2