From: Jostein Kjønigsen Date: Mon, 12 Dec 2022 07:42:33 +0000 (+0100) Subject: Make treesit-query-validate create a read-only buffer X-Git-Tag: emacs-29.0.90~1211 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=4bccb7b211e;p=emacs.git Make treesit-query-validate create a read-only buffer * lisp/treesit.el: use view-mode for generated validation buffer. --- 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