Skip to content

Commit 497d476

Browse files
committed
Reverted back to font-lock-fontify-buffer
because emacs 24 doesn't know about font-lock-ensure
1 parent c1059d6 commit 497d476

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

rust-mode-tests.el

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1234,7 +1234,7 @@ fn test4();")
12341234
(with-temp-buffer
12351235
(rust-mode)
12361236
(insert str)
1237-
(font-lock-ensure)
1237+
(font-lock-fontify-buffer)
12381238
(buffer-string)))
12391239

12401240
(defun rust-test-group-str-by-face (str)
@@ -1503,7 +1503,7 @@ this_is_not_a_string();)"
15031503
1......................500......................50
15041504
\"#;
15051505
")
1506-
(font-lock-ensure)
1506+
(font-lock-fontify-buffer)
15071507
(goto-char 530)
15081508
(insert "#")
15091509
;; We have now closed the raw string. Check that the whole string is
@@ -1880,7 +1880,7 @@ fn indented_already() {
18801880
\n // The previous line already has its spaces
18811881
}
18821882
")
1883-
(font-lock-ensure)
1883+
(font-lock-fontify-buffer)
18841884
(goto-line 11)
18851885
(move-to-column 0)
18861886
(indent-for-tab-command)
@@ -2115,7 +2115,7 @@ fn main() {
21152115
(with-temp-buffer
21162116
(rust-mode)
21172117
(insert content)
2118-
(font-lock-ensure)
2118+
(font-lock-fontify-buffer)
21192119
(dolist (pair pairs)
21202120
(let* ((open-pos (nth 0 pair))
21212121
(close-pos (nth 1 pair)))
@@ -2148,7 +2148,7 @@ fn main() {
21482148
(ert-deftest rust-test-two-character-quotes-in-a-row ()
21492149
(with-temp-buffer
21502150
(rust-mode)
2151-
(font-lock-ensure)
2151+
(font-lock-fontify-buffer)
21522152
(insert "'\\n','a', fn")
21532153
(font-lock-after-change-function 1 12 0)
21542154

@@ -3116,7 +3116,7 @@ impl Two<'a> {
31163116
(with-temp-buffer
31173117
(rust-mode)
31183118
(insert original)
3119-
(font-lock-ensure)
3119+
(font-lock-fontify-buffer)
31203120

31213121
(goto-char point-pos)
31223122
(deactivate-mark)

0 commit comments

Comments
 (0)