From 69f2c71135f8bc89cf4d816fd5f4c2b0a0e30469 Mon Sep 17 00:00:00 2001 From: Theodor Thornhill Date: Sat, 17 Dec 2022 20:23:02 +0100 Subject: [PATCH] Fix treesit-query-validate problem with view-mode * lisp/treesit.el (treesit-query-validate): Move the (view-mode) into the correct scope. --- lisp/treesit.el | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lisp/treesit.el b/lisp/treesit.el index 068c443dc26..16e1a16dbf4 100644 --- a/lisp/treesit.el +++ b/lisp/treesit.el @@ -2037,8 +2037,8 @@ to the offending pattern and highlight the pattern." (goto-char (point-min)) (insert (format "%s: %d\n" message start)) (forward-char start))) - (pop-to-buffer buf))))) - (view-mode)) + (pop-to-buffer buf) + (view-mode)))))) ;;; Explorer -- 2.39.2