Fix rust-align-to-expr-after-brace, closes #11239.

forward-to-word is undefined, and so Emacs would throw errors in
rust-align-to-expr-after-brace. This change yields the expected
behavior discussed in the issue.
This commit is contained in:
John Louis Walker 2013-12-31 14:19:36 -05:00
parent 5ff7b28373
commit 8271ba8239
1 changed files with 3 additions and 1 deletions

View File

@ -54,7 +54,9 @@
;; We don't want to indent out to the open bracket if the
;; open bracket ends the line
(when (not (looking-at "[[:blank:]]*\\(?://.*\\)?$"))
(when (looking-at "[[:space:]]") (forward-to-word 1))
(when (looking-at "[[:space:]]")
(forward-word 1)
(backward-word 1))
(current-column))))
(defun rust-mode-indent-line ()