Commit da3b328d authored by Dmitry Gutov's avatar Dmitry Gutov
Browse files

* lisp/progmodes/ruby-mode.el (ruby-smie--indent-to-stmt): Use

`smie-backward-sexp' with token argument.
parent 8acb09ca
2013-11-08 Dmitry Gutov <dgutov@yandex.ru>
* progmodes/ruby-mode.el (ruby-smie--indent-to-stmt): Use
`smie-backward-sexp' with token argument.
2013-11-08 Michael Albinus <michael.albinus@gmx.de>
* net/tramp-sh.el (tramp-set-remote-path, tramp-get-ls-command):
......
......@@ -485,13 +485,8 @@ explicitly declared in magic comment."
(defun ruby-smie--indent-to-stmt ()
(save-excursion
(let (parent)
(while (not (or (eq (car parent) t)
(equal (nth 2 parent) ";")))
(setq parent (let (smie--parent) (smie-indent--parent)))
(when (numberp (nth 1 parent))
(goto-char (nth 1 parent))))
(cons 'column (smie-indent-virtual)))))
(smie-backward-sexp ";")
(cons 'column (smie-indent-virtual))))
(defun ruby-smie-rules (kind token)
(pcase (cons kind token)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment