projects
/
emacs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
291763f
)
Revert "Silence warning when requiring ruby-ts-mode"
author
Stefan Kangas
<stefankangas@gmail.com>
Sat, 30 Dec 2023 00:06:41 +0000
(
01:06
+0100)
committer
Stefan Kangas
<stefankangas@gmail.com>
Sat, 30 Dec 2023 00:09:19 +0000
(
01:09
+0100)
This reverts commit
bf81706988f6b1b9d6e8033c8227f0129e04ef03
.
We deliberately don't silence these warnings, so that a user who loads
the mode without having the grammar installed sees the warning and
realizes the problem in time to fix it.
lisp/progmodes/ruby-ts-mode.el
patch
|
blob
|
history
diff --git
a/lisp/progmodes/ruby-ts-mode.el
b/lisp/progmodes/ruby-ts-mode.el
index 284880a0a363c3fc5550c0eaf5b1ec5f2607c162..c7e0b8f49add40b092ff9df8a11c68ea4a30e629 100644
(file)
--- a/
lisp/progmodes/ruby-ts-mode.el
+++ b/
lisp/progmodes/ruby-ts-mode.el
@@
-1206,7
+1206,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
t
)
+(if (treesit-ready-p 'ruby)
;; Copied from ruby-mode.el.
(add-to-list 'auto-mode-alist
(cons (concat "\\(?:\\.\\(?:"