summaryrefslogtreecommitdiff
path: root/rust-mode-tests.el
diff options
context:
space:
mode:
authorMiodrag Milenkovic <miodrag.milenkovic@gmail.com>2019-03-01 12:55:35 -0500
committerMiodrag Milenkovic <miodrag.milenkovic@gmail.com>2019-03-01 12:55:35 -0500
commit497d47679ad0349b43b744c9ef4ac16a610c0779 (patch)
tree41be55f64dfa06e8611f8385b73c343554e3e9b2 /rust-mode-tests.el
parentc1059d6e8bdc6413cc7a05edd1b44205acc3bc15 (diff)
downloadrust-mode-497d47679ad0349b43b744c9ef4ac16a610c0779.tar.gz
Reverted back to font-lock-fontify-buffer
because emacs 24 doesn't know about font-lock-ensure
Diffstat (limited to 'rust-mode-tests.el')
-rw-r--r--rust-mode-tests.el12
1 files changed, 6 insertions, 6 deletions
diff --git a/rust-mode-tests.el b/rust-mode-tests.el
index 70603e3..72a9e4e 100644
--- a/rust-mode-tests.el
+++ b/rust-mode-tests.el
@@ -1234,7 +1234,7 @@ fn test4();")
(with-temp-buffer
(rust-mode)
(insert str)
- (font-lock-ensure)
+ (font-lock-fontify-buffer)
(buffer-string)))
(defun rust-test-group-str-by-face (str)
@@ -1503,7 +1503,7 @@ this_is_not_a_string();)"
1......................500......................50
\"#;
")
- (font-lock-ensure)
+ (font-lock-fontify-buffer)
(goto-char 530)
(insert "#")
;; We have now closed the raw string. Check that the whole string is
@@ -1880,7 +1880,7 @@ fn indented_already() {
\n // The previous line already has its spaces
}
")
- (font-lock-ensure)
+ (font-lock-fontify-buffer)
(goto-line 11)
(move-to-column 0)
(indent-for-tab-command)
@@ -2115,7 +2115,7 @@ fn main() {
(with-temp-buffer
(rust-mode)
(insert content)
- (font-lock-ensure)
+ (font-lock-fontify-buffer)
(dolist (pair pairs)
(let* ((open-pos (nth 0 pair))
(close-pos (nth 1 pair)))
@@ -2148,7 +2148,7 @@ fn main() {
(ert-deftest rust-test-two-character-quotes-in-a-row ()
(with-temp-buffer
(rust-mode)
- (font-lock-ensure)
+ (font-lock-fontify-buffer)
(insert "'\\n','a', fn")
(font-lock-after-change-function 1 12 0)
@@ -3116,7 +3116,7 @@ impl Two<'a> {
(with-temp-buffer
(rust-mode)
(insert original)
- (font-lock-ensure)
+ (font-lock-fontify-buffer)
(goto-char point-pos)
(deactivate-mark)