projects
/
emacs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c0fe6c7
)
Make treesit-query-validate create a read-only buffer
author
Jostein Kjønigsen
<jostein@kjonigsen.net>
Mon, 12 Dec 2022 07:42:33 +0000
(08:42 +0100)
committer
Yuan 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
patch
|
blob
|
history
diff --git
a/lisp/treesit.el
b/lisp/treesit.el
index 2ca4f1c7ddc59b747be45bfd6e0d23fb007e2db6..f176664bfde89e96627562c0b2221f465247d710 100644
(file)
--- 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