summaryrefslogtreecommitdiff
path: root/rust-mode-tests.el
diff options
context:
space:
mode:
authorMicah Chalmer <micah@micahchalmer.net>2015-02-06 22:16:33 -0500
committerMicah Chalmer <micah@micahchalmer.net>2015-02-06 22:16:33 -0500
commit6b57bbf52530acdfdd9cc4b6c2ec198d0ac57e22 (patch)
treee837ef406514270ee1a5cb6a8834daad3766b7ad /rust-mode-tests.el
parentd2c6d6c3b1a4fb711528535574c9e035ac1482b2 (diff)
downloadrust-mode-6b57bbf52530acdfdd9cc4b6c2ec198d0ac57e22.tar.gz
Make features (and their tests) work on emacs 23
Diffstat (limited to 'rust-mode-tests.el')
-rw-r--r--rust-mode-tests.el6
1 files changed, 5 insertions, 1 deletions
diff --git a/rust-mode-tests.el b/rust-mode-tests.el
index a0e27b0..347dcd2 100644
--- a/rust-mode-tests.el
+++ b/rust-mode-tests.el
@@ -289,7 +289,11 @@ very very very long string
(rust-test-manip-code
deindented
1
- (lambda () (indent-region 1 (buffer-size)))
+ (lambda ()
+ ;; The indentation will fial in some cases if the syntax properties are
+ ;; not set. This only happens when font-lock fontifies the buffer.
+ (font-lock-fontify-buffer)
+ (indent-region 1 (buffer-size)))
indented)))