]> git.eshelyaron.com Git - emacs.git/commitdiff
Make treesit-query-validate create a read-only buffer
authorJostein Kjønigsen <jostein@kjonigsen.net>
Mon, 12 Dec 2022 07:42:33 +0000 (08:42 +0100)
committerYuan Fu <casouri@gmail.com>
Mon, 12 Dec 2022 23:08:55 +0000 (15:08 -0800)
* lisp/treesit.el: use view-mode for generated validation buffer.

lisp/treesit.el

index 2ca4f1c7ddc59b747be45bfd6e0d23fb007e2db6..f176664bfde89e96627562c0b2221f465247d710 100644 (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