Make treesit-query-validate create a read-only buffer

* lisp/treesit.el: use view-mode for generated validation buffer.
This commit is contained in:
Jostein Kjønigsen 2022-12-12 08:42:33 +01:00 committed by Yuan Fu
parent c0fe6c72ce
commit 4bccb7b211
No known key found for this signature in database
GPG key ID: 56E19BC57664A442

View file

@ -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