projects
/
emacs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0d3b651
)
ruby-toggle-block: Fix in ruby-ts-mode
author
Dmitry Gutov
<dgutov@yandex.ru>
Thu, 19 Jan 2023 15:42:05 +0000
(17:42 +0200)
committer
Dmitry Gutov
<dgutov@yandex.ru>
Thu, 19 Jan 2023 17:44:10 +0000
(19:44 +0200)
* lisp/progmodes/ruby-mode.el (ruby-toggle-block): Make it work
with ruby-ts-mode. ruby-forward-sexp checks ruby-use-smie.
lisp/progmodes/ruby-mode.el
patch
|
blob
|
history
diff --git
a/lisp/progmodes/ruby-mode.el
b/lisp/progmodes/ruby-mode.el
index 2e8d335f1518b559e77ae3bd45c2eb90ea594581..2de7395f7659ac5deb6a65624ff9b68e856d0b75 100644
(file)
--- a/
lisp/progmodes/ruby-mode.el
+++ b/
lisp/progmodes/ruby-mode.el
@@
-1927,7
+1927,7
@@
If the result is do-end block, it will always be multiline."
(end-of-line)
(unless
(if (and (re-search-backward "\\(?:[^#]\\)\\({\\)\\|\\(\\_<do\\_>\\)")
- (
progn
+ (
let ((ruby-use-smie (and ruby-use-smie (consp smie-grammar))))
(goto-char (or (match-beginning 1) (match-beginning 2)))
(setq beg (point))
(with-suppressed-warnings ((obsolete ruby-forward-sexp))