diff options
| author | Miodrag Milenkovic <miodrag.milenkovic@gmail.com> | 2019-03-01 12:34:29 -0500 |
|---|---|---|
| committer | Miodrag Milenkovic <miodrag.milenkovic@gmail.com> | 2019-03-01 12:34:29 -0500 |
| commit | 198c777c2ba58e94a6b035c286c660669a7ce2a9 (patch) | |
| tree | 876bb8e2da8aee62abacd6996ca3fac2cd91de2c /rust-mode-tests.el | |
| parent | e2e713eaafde203a1767048400058d3b7fe5d41a (diff) | |
| download | rust-mode-198c777c2ba58e94a6b035c286c660669a7ce2a9.tar.gz | |
Replaced font-lock-fontify-buffer with font-lock-ensure
Diffstat (limited to 'rust-mode-tests.el')
| -rw-r--r-- | rust-mode-tests.el | 12 |
1 files 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) |
