Skip to content

Commit 198c777

Browse files
committed
Replaced font-lock-fontify-buffer with font-lock-ensure
1 parent e2e713e commit 198c777

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-fontify-buffer)
1237+
(font-lock-ensure)
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-fontify-buffer)
1506+
(font-lock-ensure)
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-fontify-buffer)
1883+
(font-lock-ensure)
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-fontify-buffer)
2118+
(font-lock-ensure)
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-fontify-buffer)
2151+
(font-lock-ensure)
21522152
(insert "'\\n','a', fn")
21532153
(font-lock-after-change-function 1 12 0)
21542154

@@ -3108,7 +3108,7 @@ impl Two<'a> {
31083108
(with-temp-buffer
31093109
(rust-mode)
31103110
(insert original)
3111-
(font-lock-fontify-buffer)
3111+
(font-lock-ensure)
31123112

31133113
(goto-char point-pos)
31143114
(deactivate-mark)

0 commit comments

Comments
 (0)