projects
/
emacs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d560dc5
)
(treesit-query-validate): Fix reusing the output buffer
author
Dmitry Gutov
<dgutov@yandex.ru>
Sat, 18 Feb 2023 21:52:47 +0000
(23:52 +0200)
committer
Dmitry Gutov
<dgutov@yandex.ru>
Sat, 18 Feb 2023 21:53:11 +0000
(23:53 +0200)
* lisp/treesit.el (treesit-query-validate): Fix the "Buffer is
read-only" error when an output buffer already exists.
lisp/treesit.el
patch
|
blob
|
history
diff --git
a/lisp/treesit.el
b/lisp/treesit.el
index 09531b838a1e4b60fa1768ebb4e6ba0426c362d6..b71b5b486d53cac6b9a9c316d2bd3020fe9594f6 100644
(file)
--- a/
lisp/treesit.el
+++ b/
lisp/treesit.el
@@
-2380,7
+2380,8
@@
to the offending pattern and highlight the pattern."
(with-current-buffer buf
(let* ((data (cdr err))
(message (nth 0 data))
- (start (nth 1 data)))
+ (start (nth 1 data))
+ (inhibit-read-only t))
(erase-buffer)
(insert (treesit-query-expand query))
(goto-char start)