`smie-backward-sexp' with token argument.
+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):
(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)