From: Stefan Kangas Date: Mon, 6 Nov 2023 07:51:59 +0000 (+0100) Subject: Silence warning when requiring ruby-ts-mode X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=bf81706988f6b1b9d6e8033c8227f0129e04ef03;p=emacs.git Silence warning when requiring ruby-ts-mode * lisp/progmodes/ruby-ts-mode.el: Silence warning when requiring file without a treesitter grammar. --- 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 "\\(?:\\.\\(?:"