branch: elpa/rust-mode
commit 198c777c2ba58e94a6b035c286c660669a7ce2a9
Author: Miodrag Milenkovic <[email protected]>
Commit: Miodrag Milenkovic <[email protected]>
Replaced font-lock-fontify-buffer with font-lock-ensure
---
rust-mode-tests.el | 12 ++++++------
1 file changed, 6 insertions(+), 6 deletions(-)
diff --git a/rust-mode-tests.el b/rust-mode-tests.el
index a5fea28..42d2dad 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-fontify-buffer)
+ (font-lock-ensure)
(buffer-string)))
(defun rust-test-group-str-by-face (str)
@@ -1503,7 +1503,7 @@ this_is_not_a_string();)"
1......................500......................50
\"#;
")
- (font-lock-fontify-buffer)
+ (font-lock-ensure)
(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-fontify-buffer)
+ (font-lock-ensure)
(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-fontify-buffer)
+ (font-lock-ensure)
(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-fontify-buffer)
+ (font-lock-ensure)
(insert "'\\n','a', fn")
(font-lock-after-change-function 1 12 0)
@@ -3108,7 +3108,7 @@ impl Two<'a> {
(with-temp-buffer
(rust-mode)
(insert original)
- (font-lock-fontify-buffer)
+ (font-lock-ensure)
(goto-char point-pos)
(deactivate-mark)