branch: externals/matlab-mode
commit 60e6793d79980768b1fc449fd211a1e47c2d1dc8
Author: John Ciolfi <[email protected]>
Commit: John Ciolfi <[email protected]>

    t-utils.el: update t-utils-test-indent to use a temp buffer
---
 tests/t-utils.el | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/tests/t-utils.el b/tests/t-utils.el
index b28b155f64..8e3500354e 100644
--- a/tests/t-utils.el
+++ b/tests/t-utils.el
@@ -571,10 +571,10 @@ See `t-utils--test-indent-type' for LINE-MANIPULATOR."
            lang-file-major-mode)
 
       ;; Indent lang-file
-      (save-excursion
+      (with-temp-buffer
         (let ((start-time (current-time)))
+          (t-utils--insert-file-for-test lang-file)
           (message "START: %s <indent-region> %s" test-name lang-file)
-          (find-file lang-file)
           (setq lang-file-major-mode major-mode)
           (indent-region (point-min) (point-max))
           (t-utils-trim)

Reply via email to