From 4bccb7b211e465310a34493dea8a66ce395956fc Mon Sep 17 00:00:00 2001 From: =?utf8?q?Jostein=20Kj=C3=B8nigsen?= Date: Mon, 12 Dec 2022 08:42:33 +0100 Subject: [PATCH] Make treesit-query-validate create a read-only buffer * lisp/treesit.el: use view-mode for generated validation buffer. --- lisp/treesit.el | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lisp/treesit.el b/lisp/treesit.el index 2ca4f1c7ddc..f176664bfde 100644 --- a/lisp/treesit.el +++ b/lisp/treesit.el @@ -1835,7 +1835,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)))))) + (pop-to-buffer buf))))) + (view-mode)) ;;; Explorer -- 2.39.2