From: Theodor Thornhill Date: Sat, 17 Dec 2022 19:23:02 +0000 (+0100) Subject: Fix treesit-query-validate problem with view-mode X-Git-Tag: emacs-29.0.90~1093 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=69f2c71135f8bc89cf4d816fd5f4c2b0a0e30469;p=emacs.git Fix treesit-query-validate problem with view-mode * lisp/treesit.el (treesit-query-validate): Move the (view-mode) into the correct scope. --- 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