emacs-diffs
[Top][All Lists]
Advanced

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

master bf81706988f: Silence warning when requiring ruby-ts-mode


From: Stefan Kangas
Subject: master bf81706988f: Silence warning when requiring ruby-ts-mode
Date: Mon, 6 Nov 2023 02:52:33 -0500 (EST)

branch: master
commit bf81706988f6b1b9d6e8033c8227f0129e04ef03
Author: Stefan Kangas <stefankangas@gmail.com>
Commit: Stefan Kangas <stefankangas@gmail.com>

    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 "\\(?:\\.\\(?:"



reply via email to

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