[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
emacs-29 69f2c71135 4/4: Fix treesit-query-validate problem with view-mo
From: |
Yuan Fu |
Subject: |
emacs-29 69f2c71135 4/4: Fix treesit-query-validate problem with view-mode |
Date: |
Sat, 17 Dec 2022 18:34:06 -0500 (EST) |
branch: emacs-29
commit 69f2c71135f8bc89cf4d816fd5f4c2b0a0e30469
Author: Theodor Thornhill <theo@thornhill.no>
Commit: Yuan Fu <casouri@gmail.com>
Fix treesit-query-validate problem with view-mode
* lisp/treesit.el (treesit-query-validate): Move the (view-mode) into
the correct scope.
---
lisp/treesit.el | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/lisp/treesit.el b/lisp/treesit.el
index 068c443dc2..16e1a16dbf 100644
--- a/lisp/treesit.el
+++ b/lisp/treesit.el
@@ -2037,8 +2037,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)))))
- (view-mode))
+ (pop-to-buffer buf)
+ (view-mode))))))
;;; Explorer