From: Yuan Fu Date: Sat, 4 Jan 2025 05:39:32 +0000 (-0800) Subject: ; Fix typo in treesit-explore-mode X-Git-Tag: archive/raspbian/1%30.1+1-3+rpi1^2~2^2~20^2~139 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=55f43f5b220ed3cc49141257918e51e403dd85ac;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. --- diff --git a/lisp/treesit.el b/lisp/treesit.el index d788edf7ffc..2887521110b 100644 --- a/lisp/treesit.el +++ b/lisp/treesit.el @@ -3601,7 +3601,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)))