From: Yuan Fu Date: Sat, 4 Jan 2025 05:39:32 +0000 (-0800) Subject: ; Fix typo in treesit-explore-mode X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=1120ccab3f20e7f8e1d01d9ce3e96b5a80c9dbc9;p=emacs.git ; Fix typo in treesit-explore-mode * lisp/treesit.el (treesit-explore-mode): We added the hook to kill-buffer-hook, so make sure to remove it from kill-buffer-hook, not post-command-hook. (cherry picked from commit 55f43f5b220ed3cc49141257918e51e403dd85ac) --- diff --git a/lisp/treesit.el b/lisp/treesit.el index c57d0edd050..90100d3bb10 100644 --- a/lisp/treesit.el +++ b/lisp/treesit.el @@ -4086,7 +4086,7 @@ window." ;; Turn off explore mode. (remove-hook 'post-command-hook #'treesit--explorer-post-command t) - (remove-hook 'post-command-hook + (remove-hook 'kill-buffer-hook #'treesit--explorer-kill-explorer-buffer t) (treesit--explorer-kill-explorer-buffer)))